How to add conversion code in shopify

While working with google team, I auditing various Google Adwords and Google Analytics account for Shopify businesses, noticed too many customers are not getting accurate data. In most of the cases this is happening due to incorrect implementation of tracking code. That’s why, I am writing this blog. Just follow the instruction, hope you can do it without any other help from others.

Shopify Ecommerce

Steps to add conversion tracking code on order confirmation page.

  1.  Login with admin.
  2. Go to Settings. 
  3. Go to Checkout
  4.  Search for Order Processing section
  5. Paste the conversion code in the Additional Content & Scripts box and click on the ‘Apply these settings’ button that’s right below (as shown in the sample below)

Dynamic Conversion value in shopify:

 Total value: {{ total_price | money_without_currency | remove: “,” }}

Subtotal value: {{ subtotal_price | money_without_currency | remove: “,” }}

Conversion Code: Replace ‘99999999’ with conversion id and ‘xxxxxxxxxxxx’ with conversion label of your conversion code.

{% if first_time_accessed %}
  <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = 999999999;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "xxxxxxxxxxxx";
    var google_conversion_value = {{ subtotal_price | money_without_currency | remove: ","}};
    var google_conversion_currency = "USD";
    var google_remarketing_only = false;
    /* ]]> */
   <script type="text/javascript" src="//">
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//{{ subtotal_price | money_without_currency | remove: ","}}&currency_code=USD&label=xxxxxxxxxxxx&guid=ON&script=0"/>
{% endif %}
Shopify Conversion Tracking checkout
Shopify Conversion Tracking checkout

2 thoughts on “How to add conversion code in shopify

  1. Just want to say your article is as surprising. The clearness in your post is simply nice and i can assume you are an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please continue the gratifying work.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.