Shopify: Difference between revisions

From Growth Agency Wiki
Jump to navigation Jump to search
No edit summary
Line 24: Line 24:
</script>
</script>
{% endif %}
{% endif %}
</pre>
= Other =
<pre>
Shopify does provide you with the Product feed URL for your store. To access this, you will need to append .atom to either all of your collections or to a specific collection URL.
For example:
"yourstorename.com/collections/all.atom"
"yourstorename.com/collections/collectionname.atom"
</pre>
</pre>

Revision as of 08:46, 23 October 2019

Tag Manager

Add Tag Manager to theme: Modify Theme

"online store" -> "..." or "Actions" -> "edit HTML / CSS"

Modify theme.liquid

Google Tag Manager will also need to be added to Checkout's additional settings to track conversions

Conversion Tracking Code

Google Tag Manager will also need to be added to Checkout's additional settings to track conversions

In "settings" -> "checkout" -> "additional settings"

{% if first_time_accessed %}
<script>
var dataLayer = window.dataLayer || [];
dataLayer.push({'order_id' : '{{ order_number }}', 'order_value' : '{{ total_price | money_without_currency }}', 'event' : 'order-submitted'});
</script>
{% endif %}

Other

Shopify does provide you with the Product feed URL for your store. To access this, you will need to append .atom to either all of your collections or to a specific collection URL.

For example:

"yourstorename.com/collections/all.atom"
"yourstorename.com/collections/collectionname.atom"