Liquid, JavaScript, themes, sales channels
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
Hi @abcxytz1234
This is fairly straightforward, go to your Settings -> Checkout -> Additional Scripts and paste your code there.
That's it!
I’ve done that thanks. How can I check on google analytics if it’s properly installed?
I checked with someone else. Your answer is wrong. It should be pasted on cart page not order status page
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!
User | RANK |
---|---|
21 | |
18 | |
9 | |
7 | |
6 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023