Integrations

  1. Home
  2. Docs
  3. Integrations
  4. Shopify Integration
  5. Ecommerce Tracking for Shopify

Ecommerce Tracking for Shopify

Tracking your transactions in WhatConverts from your Shopify Store is a quick and easy addition to get the most from your WhatConverts account and your marketing. After adding your WhatConverts Tracking Code, you can start tracking your transactions in just two steps!

Add Transaction Tracking Code to Shopify

1Go to your Shopify Admin page. Select “Settings” from the bottom left menu. In the Settings menu, select “Checkout“.

Checkout Settings of a Shopify Page

2Under the Order Processing section, paste the following under Additional Scripts:

<script src="//scripts.iconnode.com/#####.js"></script>
{% if first_time_accessed %}
<script type="text/javascript">
//<![CDATA[
var total_price = {{ checkout.total_price }}*.01;
var tax_price = {{ checkout.tax_price }}*.01;
var shipping_price = {{ checkout.shipping_price }}*.01;
wc_transaction_ypbib
(
'{{ checkout.order_id }}',
total_price,
tax_price,
shipping_price,
{
'Email Address': '{{ checkout.email }}'
});
//]]>
</script>
{% endif %}

Replace “#####” with your WhatConverts Profile ID. Click “Save“.