Solved

Added to Cart Flow (ATC metric) pricing event

  • 20 February 2024
  • 5 replies
  • 20 views

Badge +4

Hey

One of my ATC flows is pulling across the pricing as per below - I copied the event (highlighted where the cursor is hovering) does anyone know why it’s appearing like this?

 

Price: <span class=money>240.00 AED</span>

 

Thanks so much

icon

Best answer by kaila.lawrence 21 February 2024, 22:01

View original

5 replies

Userlevel 4
Badge +23

Hey @stephanie_bloomdollar! To confirm, the Added to Cart metric is working properly, it’s just the price that isn’t appearing correctly?

Badge +4

Yes that’s correct just the price isn’t showing. Thanks

Userlevel 4
Badge +23

Gotcha! Easy fix then -- in your tag, replace default with safe and that should clear it up! 

 

{{ event.Price|safe }}

Badge +4

Ok great thanks so much - just so I understand do you know why it needs replacing with safe? Thank you!

Userlevel 4
Badge +23

Sure thing! So adding a "safe" filter to that variable will remove any HTML that is being attached to the data. Sometimes the HTML around the price will also get pulled in from the web tracking snippet, and this filter is way easier than changing the HTML on your site. 

Reply