Zyda sends extra data about events, such as purchases and adding an item to a cart, to the Google Tag Manager data layer. This article lists what it sends.
Before you start
Set up Google Tag Manager on your dashboard first. Read Set up Google Tag Manager and Google Analytics 4.
Zyda keeps adding events. Check back for updates to this article.
As of 20 May 2022, if you have Google Tag Manager enabled on your dashboard, Zyda sends these events.
Events
| Event name | When Zyda sends it |
|---|---|
| page_view | Every time a page is viewed |
| add_to_cart | Every time an item is added to the cart |
| purchase | Once a customer clicks purchase |
Variables sent with each event
page_view
No variables are sent. Google Tag Manager captures some on its own, such as the page location and path.
add_to_cart
content_type— always "product".currency— the currency of the item.value— the total price of the item.contents— a list holding one entry, with these fields:item_id— the product's id.quantity— the number of items added.item_variant— the variant name selected. It reads "Regular" when the product has no variants.item_name— the name of the product.
purchase
content_type— always "product".currency— the currency of the products.value— the order total value.num_items— the number of products.orderNumber— the transaction number.contents— a list with one entry for each product in the cart, unlike add_to_cart. Each entry holds:item_id— the product's id.quantity— the number of items added.item_variant— the variant name selected. It reads "Regular" when the product has no variants.item_name— the name of the product.item_price— the total price of the item.
Signed-in customers
If the customer has signed in, Zyda also adds storeFrontUser to the data layer, with these fields:
name— the full name, in lowercase.phoneNumber— the phone number with a plus sign at the start, for example +9651234567.fn— the first name only, in lowercase.ln— the last name only, in lowercase.ph— the phone number without a plus sign at the start, for example 9651234567.