Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, I received instructions to install tracking pixels on a thank you page. It sounds simple, but there are 2 different pixels - one should fire only when the customer is new and the other when the customer is returning.
Can we get the status of the customer on thank you page and fire pixel based on new/returning?
Try this one
{% if checkout.customer.orders_count <= 1 %}
// fire smth for new customer
{% else %}
// fire smth for returning customer
{% endif %}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025