Conditional logic with conversion codes

Stephen14
New Member
9 0 0

I'm trying to add conditional logic to one of my conversion codes because it seems to be triggering on the thank you page AND also on the order status page after checking out. What Liquid function do I need to include for this IF statement? 

I'm assuming it would be something like:

{% if page.url == '/checkout/thank_you/' %}
CONVERSION CODE
{% endif %}

Would this even work with the inclusion of the store ID number and the randomized numbers? EX: [STORE ID]/checkout/[RANDOM NUMBERS]/thank_you

0 Likes