I am still working throughout the current coronavirus outbreak, although at a reduced capacity. Please do get in contact if you have any questions.

Select Page
Use a plain text editor to edit the code below with your own G Tag ID.
{% if first_time_accessed %}
<script async src=”https://www.googletagmanager.com/gtag/js?id=G-YOURTAGIDHERE”></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘G-YOURTAGIDHERE’);
var shipping_price = ‘{{shipping_price | money_without_currency }}’;
shipping_price = shipping_price.replace(“,”, “.”);
var total_price = ‘{{total_price | money_without_currency }}’;
total_price = total_price.replace(“,”, “.”);
var tax_price = ‘{{tax_price | money_without_currency }}’;
tax_price = tax_price.replace(“,”, “.”);
gtag(‘event’, ‘purchase’, {
currency: “{{shop.currency}}”,
transaction_id: ‘{{order.transactions[0].id}}’,
shipping: shipping_price,
value: total_price,
tax: tax_price
{% endif %}

If you found this content useful then please consider supporting me to write more tech support articles by buying me a coffee.
Buy Me A Coffee