This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.dataLayer = window.dataLayer || []; | |
function orderStatus() { | |
return window.dataLayer.push({ | |
event : 'orderStatus', | |
totalSpent: "{{ customer.total_spent | times: 0.01 }}", | |
allOrdersCount: "{{ customer.orders_count }}", | |
lastOrder: '{{ customer.last_order.created_at | date: "%B %d, %Y" }}' | |
});} | |
{% if first_time_accessed %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
//======================================================= | |
// | |
// More Awesome scripts and tricks about shopify on www.connectdots.co | |
//======================================================= | |
// IMPORTANT: Change this value to whatever the ID of your | |
// GTM container is. | |
const GTM_CONTAINER_ID = 'GTM-XXXXXXX'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
//======================================================= | |
// | |
// More Awesome scripts and tricks about shopify on www.connectdots.co | |
//======================================================= | |
// IMPORTANT: Change this value to whatever the ID of your | |
// GTM container is. | |
const GTM_CONTAINER_ID = 'GTM-MFNSHGD'; |