Articles on: Getting Started

How to add order info to Shopify conversions?

Shopify makes it possible to use order information to enrich conversion events. You can modify the conversion code you install in Shopify to include order number and/or order price.

Add order number


If you'd like to attach the order number as a comment to your conversion event, use the following:

<script>
window.cg_conversion = "{{ order_number }}";
</script>

Add order price


If you'd like to attach the order price as a value to your conversion event, use the following:

<script>
window.cg_conversion = {{ total_price | money_without_currency }};
</script>

Add order number and price


If you'd like to attach both order number and price to your conversion event, use the following:

<script>
window.cg_conversion = { comment: "{{ order_number }}", value: {{ total_price | money_without_currency }} };
</script>

Updated on: 24/02/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!