Google analytics help - install additional code

abcxytz1234
Explorer
82 1 25

Hi 

 

can someone help me with a small task here?

 

I added a new add to cart conversion on Google. There are no sales yet, but I need to track useful metrics. Adds to cart can be the answer here. Could you please install this code on the /cart page? This needs to be placed in the HEAD.

 

<!-- Event snippet for Add to cart conversion page -->

<script>

  gtag('event', 'conversion', {'send_to': 'AW-315761144/CU3eCLjg5oUDEPjDyJYB'});

</script>

 

Can u add this? Do send me collaborator access to hello@doodlemedo.com 

Replies 4 (4)

JHKCreate
Shopify Expert
3571 639 917

Hi @abcxytz1234 


This is fairly straightforward, go to your Settings -> Checkout -> Additional Scripts and paste your code there.


That's it!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
abcxytz1234
Explorer
82 1 25

I’ve done that thanks. How can I check on google analytics if it’s properly installed?

 

 

abcxytz1234
Explorer
82 1 25

I checked with someone else. Your answer is wrong. It should be pasted on cart page not order status page 

LitCommerce
Astronaut
2860 684 736

Hi @abcxytz1234,

Go to Action > Edit code > Layout > theme.liquid , find '</head>' and add code here: https://i.imgur.com/AopudKW.png => https://i.imgur.com/sh6vSIF.png 

Code:

{% if request.page_type == 'cart' %}
    <!-- Event snippet for Add to cart conversion page -->
    <script>
      gtag('event', 'conversion', {'send_to': 'AW-315761144/CU3eCLjg5oUDEPjDyJYB'});
    </script>
{% endif %}

Hope it helps!

 

 

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!