Tracking Shopify stores through GTM provides a lot of flexibility and manageability. However, effective Shopify tracking via GTM necessitates a solid Shopify DataLayer code. Unfortunately, scouring the internet won’t yield a complete Shopify data layer capable of comprehensively tracking every Shopify event. In response, I’ve recently pioneered a groundbreaking Shopify DataLayer code. This code boasts comprehensive features and remarkable flexibility to track all Shopify events seamlessly. Rigorously tested across various Shopify themes and advanced features like Quick View, Add To Wish List, Sticky Cart, Cart Drawer, and more. The data layer code is finely tuned for optimal performance without any adverse effects on your Shopify store.
In the upcoming tutorial, I delve into the intricacies of this remarkable Shopify Data Layer. By carefully following this tutorial, worries about tracking Shopify via GTM will become a thing of the past.
With the Shopify DataLayer, you can keep track every type of Shopify event, including Google Recommend events and more.
Events you can track with this Shopify DataLayer
No | Event Name | Description |
---|---|---|
1 | view_item | When view a product. This Shopify datalayer works for both product page view and view product on quick view |
2 | view_item_list | When product category page visited. Also customized solution available for view item list on product recommendations |
3 | select_item | When product select from list or change product variant |
4 | add_to_cart | When a product is added to cart or increment quantity of a product from cart. The Shopify DataLayer works Quick View, Sticky Cart, Direct Checkout, Add to Cart form Single Product page, add to cart from product category page, etc |
5 | remove_from_cart | When a item is removed from cart. The Shopify DataLayer works for Mini Cart and Dropdown Cart, Cart Drawer, Cart Page |
6 | add_to_wishlist | When custom add a product to Wishlist basket |
7 | view_cart | When cart is viewed. This Shopify dataLayer works for for Mini Cart and Dropdown Cart, Cart Drawer, Cart Page |
8 | begin_checkout | When click begin checkout button to go to checkout page |
9 | add_payment_info | When payment information is given on checkout page |
10 | add_shopping_info | When shipping information is given on checkout page |
11 | purchase | When purchase successful |
newsletter_signup | When signup for a newsletter form from Shopify Store | |
12 | contact_form_submit | When contact form is submitted from Shopify Store |
phone_number_click | When phone number is clicked from Shopify Store | |
13 | email_click | When email is click from Shopify Store |
14 | search (Ajax) | search_term, items[item_id , variant_id, sku, product_id, item_name, index , brand, item_category , price , quantity] |
15 | login | When customer login |
16 | sign_up | When customer signup |
Event Parameters:
Ecommerc: transaction_id, currency, value, coupon, shipping, tax, items array, item_list_id, item_list_name,
Form: form_id, email, phone number, first name, last name, other user data
Customer’s Data: First Name, Last Name, Email, Hashed Email, Phone Number, Hashed Phone Number, Address