Google Tag Manager
To integrate with the Google Tag Manager we provide several predefined data layer variables (DLV).
Constants
| {{Makaira Tracking ID}} | Can be retrieved from your Installation page in Makaira |
Data Layer Variables (DLV)
| {{DLV - addedToCart}} | Object: Product added to the shopping cart with fields sku,name, price (unit price), category (category title) and quantity. |
| {{DLV - totalCartValue}} | Float: Total basket value in the current currency |
| {{DLV - order}} | Object: An order with the fields id, revenue, subtotal, tax, shippingtotal, discounttotal and products (purchased products - respectively name, price (unit price), category (category title) and quantity as well as sku) |
| {{DLV - pageType}} | String: type of the current page. The product, category, and search tags react to the values product (product detail page), category (category page), and searchresults (search results page). Storefronts may emit additional values (e.g. home, cart, cms, landing) for other page types — see the landing page tag for tracking those. |
| {{DLV - category}} | String: category name of the current category (on category page) |
| {{DLV - search}} | Object: Search searchTerm (search term) resultCount (number of search results) |
| {{DLV - experiments}} | Array of Objects: experiment (Experiment ID) variation (Experiment Variation)(Can be read 1:1 from the Makaira API response (key: experiments) and passed to GTM) |
Updated 2 months ago
Did this page help you?

