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 page - either product (product detail page) or category (category page) or searchresults (search results page)

{{DLV - pageType}}

String: type of page - either product (product detail page) or category (category page) or searchresults (search results page)

{{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)