This file contains hidden or 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
{ | |
"purchase": { | |
"actionField": { | |
"action": "purchase", | |
"affiliation": "jadedlondon", | |
"id": "F7827544", | |
"order_name": "F7827544", | |
"discount_amount": 0, | |
"revenue": 9.78, | |
"shipping": 8.15, |
This file contains hidden or 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
{ | |
"schema": "iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4", | |
"data": | |
[ | |
{ | |
"e": "tr", //static transaction event type | |
"tr_id": "1089051935282", //unique int64 Shopify transaction id | |
"tr_tt": "12.86", //decimal Shopify transaction total | |
"tv": "js-3.4.0", //static tracker version | |
"tna": "sp_tadpull", //static sp_tadpull tracker name |
This file contains hidden or 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
// 20220909094358 | |
// https://bulletproof-coffee.myshopify.com/admin/orders/4431937241123.json | |
{ | |
"order": { | |
"id": 4431937241123, | |
"admin_graphql_api_id": "gid://shopify/Order/4431937241123", | |
"app_id": 580111, | |
"browser_ip": "107.122.225.49", | |
"buyer_accepts_marketing": false, |
This file contains hidden or 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
{ | |
"event": "dl_begin_checkout", | |
"event_id": "02dae1f9-6d90-40ef-9906-63bc7777931d", | |
"ecommerce": { | |
"currencyCode": "AUD", | |
"checkout": { | |
"actionField": { | |
"step": "1" | |
}, | |
"products": [ |
This file contains hidden or 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
{ | |
"Checkout": { | |
"Autocomplete": true, | |
"apiHost": "www.ocushield.com", | |
"assetsPath": "//cdn.shopify.com/shopifycloud/shopify", | |
"DefaultAddressFormat": "{country}_{firstName}{lastName}_{company}_{address1}_{address2}_{city}{province}{zip}_{phone}", | |
"geolocatedAddress": { | |
"lat": 53.633399999999995, | |
"lng": -113.5239 | |
}, |
This file contains hidden or 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
/** | |
* Google Tag Manager | |
* @returns null | |
*/ | |
import { | |
ClientAnalytics, | |
flattenConnection, | |
loadScript, | |
useCart, | |
useUrl, |
This file contains hidden or 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
{ | |
"name": "_elevar__fbc", | |
"value": "fb.1.1676903951800.IwAR1XT1b1w-Toy9_42WveilUOv9ixqzj3XLd0aGW4zAl6UqLJdGS8d9yar4s_aem_ATWldqJCGmWC6x6QHa64FHyBRHs5e15En27_1Uw-v9vaR_tnI3qLEhmZE29a_7JEx1pyniYuSTRMtwTCio_pb7SGzOSNNH6AP1Mqer9-_hvE8FVftVmLl8hlbp6ZeagY4fnQy9WX-xPaysLzQbUAPlIk" | |
}, | |
{ | |
"name": "_elevar__fbp", | |
"value": "fb.1.1676903951800.1431631164" | |
}, | |
{ | |
"name": "_elevar__ga", |
This file contains hidden or 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
export type KlaviyoEventPayload = { | |
data: { | |
type: "event"; | |
attributes: { | |
time: string; // "2022-11-08T00:00:00" | |
value: number; | |
unique_id: string; // event_id | |
profile: { | |
// One of email or phone is required on every API call | |
$email: string; |
This file contains hidden or 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
// Phone number submit event | |
{ | |
"action": "LEAD", | |
"attnDomain": "moviepostersca.attn.tv", | |
"attentiveAPI": "https://api.attentivemobile.com", | |
"impressionId": "0", | |
"creativeId": "60270", | |
"userId": "21f5925bac684465a903ce2d872b0dd3", | |
"isSubscriber": false, | |
"subscriberChannels": [], |
This file contains hidden or 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
{ % if first_time_load % } | |
<script> window.dataLayer = window.dataLayer || []; | |
</ script><script> window.dataLayer.push({ | |
'event' : 'dl_subscription_purchase', | |
"event_id" : '{{ order_name }}', | |
"user_properties" : { | |
"customer_id" : "{{ customer.shopify_customer_id }}", | |
"customer_email" : "{{ email }}", | |
"customer_first_name" : "{{ first_name }}", | |
"customer_phone" : "{{ shipping_address.phone }}", |