# Data layer

# ![Screenshot_2020-04-29_at_19.12.41.png](https://knowledge.tauceti-digital.com/uploads/images/gallery/2024-11/tPpscreenshot-2020-04-29-at-19-12-41-png.png) Getting started

In this article, you will find information about available variables and events used in the data layer on a Yves Rocher websites. The data layer is a JavaScript object (array) that is used to pass data from a web page to the Google Tag Manager container. The data that the website passes to the data layer can then be used to create variables, rules, and tags.

<span class="wysiwyg-color-black" style="color: #44549b;">![info2.svg](https://knowledge.tauceti-digital.com/uploads/images/gallery/2024-11/pTCinfo2-svg.png) **Remember**</span><span class="wysiwyg-color-black" style="display: block; margin-top: 10px;">The data layer contains all of the data generated by visitors and customers engaging with the Yves Rocher website. </span><span style="color: #4054a0;"></span><span style="color: #4054a0;"></span>

Table of contents:

1. [ Available variables in the data layer](#bkmrk-available-variables--1)
    1. [yr\_gtm\_a](#bkmrk-yr_gtm_a)
    2. [yr\_gtm\_a1](#bkmrk-yr_gtm_a1)
    3. [yr\_gtm\_ab](#bkmrk-yr_gtm_ab)
    4. [yr\_gtm\_b](#bkmrk-yr_gtm_b)
    5. [yr\_gtm\_ac](#bkmrk-yr_gtm_ac)
    6. [yr\_gtm\_c](#bkmrk-yr_gtm_c)
    7. [yr\_gtm\_ad](#bkmrk-yr_gtm_ad)
    8. [yr\_gtm\_d](#bkmrk-yr_gtm_d)
    9. [yr\_gtm\_e](#bkmrk-yr_gtm_e)
    10. [yr\_gtm\_f](#bkmrk-yr_gtm_f)
    11. [yr\_gtm\_fa](#bkmrk-yr_gtm_fa)
    12. [yr\_gtm\_g](#bkmrk-yr_gtm_g)
    13. [yr\_gtm\_h](#bkmrk-yr_gtm_h)
    14. [yr\_gtm\_k](#bkmrk-yr_gtm_k)
    15. [yr\_gtm\_l](#bkmrk-yr_gtm_l)
    16. [yr\_gtm\_m](#bkmrk-yr_gtm_m)
    17. [yr\_gtm\_n](#bkmrk-yr_gtm_n)
    18. [yr\_gtm\_u](#bkmrk-yr_gtm_u)
    19. [yr\_gtm\_aa](#bkmrk-yr_gtm_aa)
    20. [yr\_gtm\_ae](#bkmrk-yr_gtm_ae)
    21. [yr\_gtm\_ag](#bkmrk-yr_gtm_ag)
    22. [yr\_gtm\_x](#bkmrk-yr_gtm_x)
    23. [yr\_gtm\_y](#bkmrk-yr_gtm_y)
    24. [yr\_gtm\_z](#bkmrk-yr_gtm_z)
    25. [ecomm\_pagetype](#bkmrk-ecomm_pagetype)
    26. [ecomm\_totalvalue](#bkmrk-ecomm_totalvalue)
    27. [ecomm\_prodid](#bkmrk-ecomm_prodid)
    28. [ecomm\_prodidpl](#bkmrk-ecomm_prodidpl)
    29. [id\_sekce](#bkmrk-id_sekce)
    30. [visitorLoginState](#bkmrk-visitorloginstate)
    31. [hashed\_email](#bkmrk-hashed_email)
    32. [hashed\_phone\_number](#bkmrk-hashed_phone_number)
    33. [email](#bkmrk-email)
    34. [phone\_number](#bkmrk-phone_number)
    35. [address\_info](#bkmrk-address_info)
2. [ Available data layer events](#bkmrk-available-data-layer)
    1. [page\_view](#bkmrk-page_view)
    2. [ecommerce / view\_cart](#bkmrk-ecommerce-%2F-view_car)
    3. [ecommerce / add\_to\_cart](#bkmrk-ecommerce-%2F-add_to_c)
    4. [ecommerce / remove\_from\_cart](#bkmrk-ecommerce-%2F-remove_f)
    5. [ecommerce / add\_shipping\_info](#bkmrk-ecommerce-%2F-add_ship)
    6. [cart.change\_address\_data](#bkmrk-cart.change_address_)
    7. [ecommerce / add\_payment\_info](#bkmrk-ecommerce-%2F-add_paym)
    8. [ecommerce / begin\_checkout](#bkmrk-ecommerce-%2F-begin_ch)
    9. [ecommerce / purchase](#bkmrk-ecommerce-%2F-purchase)
    10. [ecommerce / view\_item](#bkmrk-ecommerce-%2F-view_ite)
    11. [ecommerce / view\_item\_list](#bkmrk-ecommerce-%2F-view_ite-1)
    12. [website\_error](#bkmrk-website_error)
        1. [type: '404\_error'](#bkmrk-type%3A-%27404_error%27)
        2. [type: 'wrong\_discount'](#bkmrk-type%3A-%27wrong_discoun)
        3. [type: 'missing\_product\_in\_cart'](#bkmrk-type%3A-%27missing_produ)
        4. [type: 'old\_offer\_error'](#bkmrk-type%3A-%27old_offer_err)
        5. [type: 'zero\_search'](#bkmrk-type%3A-%27zero_search%27)
    13. [mgm.button\_share](#bkmrk-mgm.button_share)
    14. [mgm.button\_copy](#bkmrk-mgm.button_copy)
    15. [wishlist\_add](#bkmrk-wishlist_add)

---

# ![Screenshot_2020-04-29_at_19.12.41.png](https://knowledge.tauceti-digital.com/uploads/images/gallery/2024-11/tPpscreenshot-2020-04-29-at-19-12-41-png.png) Available variables in the data layer

### yr\_gtm\_a

Shows **URL parameter** for current altshop (used also in ?yras=… URLs)

Example: default

Available on: All pages

### yr\_gtm\_a1

Shows Offer\_segment value from current altshop settings.

Example: OfferSegment

Available on: All pages

### yr\_gtm\_ab

Shows historic offer\_segment values from the last 90 days in current altshop.

Example:

<table border="1" id="bkmrk-yr_gtm_ab-object---." style="width: 228px;"><tbody><tr class="object-row"><td style="width: 120.583px;">**yr\_gtm\_ab**</td><td style="width: 84.6667px;"><span>*object*</span></td></tr><tr class="object-row"><td style="width: 120.583px;">*<a data-tree="yr_gtm_ab--" title="shift-click to expand all">-</a>* **.**</td><td style="width: 84.6667px;"><span>*object*</span></td></tr><tr class=""><td style="width: 120.583px;">**.offer\_segment**</td><td style="width: 84.6667px;">Old\_offer</td></tr><tr class=""><td style="width: 120.583px;">**.total\_visits**</td><td style="width: 84.6667px;"><span>189</span></td></tr><tr class=""><td style="width: 120.583px;">**.total\_orders**</td><td style="width: 84.6667px;"><span>8</span></td></tr></tbody></table>

Available on: All pages

### yr\_gtm\_b

URL parameter of a current campaign code in current altshop

Example: CC1546592845

Available on: All pages

### yr\_gtm\_ac

History of URL parameters of the campaign codes active in user session in last 90 days in current altshop

Example:

<table border="1" id="bkmrk-yr_gtm_ac-object-%C2%A0%C2%A0%C2%A0" style="height: 110px; width: 233px;"><tbody><tr class="object-row" style="height: 22px;"><td style="height: 22px; width: 86.4667px;">**yr\_gtm\_ac**</td><td style="height: 22px; width: 123.783px;"><span>*object*</span></td></tr><tr class="" style="height: 22px;"><td style="height: 22px; width: 86.4667px;"> **.0**</td><td style="height: 22px; width: 123.783px;"><span>CC1664286880</span></td></tr><tr class="" style="height: 22px;"><td style="height: 22px; width: 86.4667px;"> **.1**</td><td style="height: 22px; width: 123.783px;"><span>CC1661009512</span></td></tr><tr class="" style="height: 22px;"><td style="height: 22px; width: 86.4667px;"> **.2**</td><td style="height: 22px; width: 123.783px;"><span>CC1498480417</span></td></tr><tr class="" style="height: 22px;"><td style="height: 22px; width: 86.4667px;"> **.3**</td><td style="height: 22px; width: 123.783px;"><span>CC1658042828</span></td></tr></tbody></table>

Available on: All pages

### yr\_gtm\_c

Current campaign code in current altshop

Example: 3CYLAWS11

Available on: All pages

### yr\_gtm\_ad

URL parameters of a history of campaign codes active in user session in last 90 days

Example:

<table border="1" id="bkmrk-yr_gtm_ad-object-%C2%A0%C2%A0%C2%A0" style="width: 216px;"><tbody><tr class="object-row"><td style="width: 97.4667px;">**yr\_gtm\_ad**</td><td style="width: 95.7833px;"><span>*object*</span></td></tr><tr class=""><td style="width: 97.4667px;"> **.0**</td><td style="width: 95.7833px;"><span>3CYLAWS11</span></td></tr><tr class=""><td style="width: 97.4667px;"> **.1**</td><td style="width: 95.7833px;"><span>3CYL8WS11</span></td></tr><tr class=""><td style="width: 97.4667px;"> **.2**</td><td style="width: 95.7833px;"><span>3CYGCWP01</span></td></tr><tr class=""><td style="width: 97.4667px;"> **.3**</td><td style="width: 95.7833px;"><span>3CYL7WS11</span></td></tr></tbody></table>

Available on: All pages

### yr\_gtm\_d

User fingerprint (RLC) stored in long lasting cookie.

Example: b51Fx9u0VgKaVkkKz1P1nGqZZknbNYRk5

Available on: All pages

### yr\_gtm\_e

Customer hash. Non-empty only for sessions that can be connected with some customers.

Example: 062f89de75ddf516484a

Available on: All pages

### yr\_gtm\_f

User type. There are the following types:

- "1" - Guest user, no information about a connection with any customer account
- "2" - User who has subscribed to newsletter
- "3" - Registered customer
- "4" - Registered customer with active VIP Zone subaccount (Member Club account)

Example: 4

Available on: All pages

### yr\_gtm\_fa

Current customer VIP zone MC title.

Example: T0

Available on: All pages

### yr\_gtm\_g

Count of customer orders from last 360 days.

Example: 7

Available on: All pages

### yr\_gtm\_h

Date of last customer order (YYYY-MM-DD), only orders up to 360 days are taken into account.

Example: 2022-08-04

Available on: All pages

### yr\_gtm\_k

Value of last customer order in websites currency, only orders up to 360 days are taken into account.

Example: 1000

Available on: All pages

### yr\_gtm\_l

Average value of customer orders from last 90 days.

Example: 750

Available on: All pages

### yr\_gtm\_m

List of product SKUs present in customer orders from last 360 days, excluding gifts

Example:

<table border="1" id="bkmrk-yr_gtm_m-object-%C2%A0%C2%A0%C2%A0%C2%A0" style="width: 156px;"><tbody><tr class="object-row"><td style="width: 84.4167px;">**yr\_gtm\_m**</td><td style="width: 48.8333px;"><span>*object*</span></td></tr><tr class=""><td style="width: 84.4167px;"> **.0**</td><td style="width: 48.8333px;"><span>97701</span></td></tr></tbody></table>

Available on: All pages

### yr\_gtm\_n

List of gifts SKUs present in customer orders from last 360 days.

Example:

<table border="1" id="bkmrk-yr_gtm_n-object-%C2%A0%C2%A0%C2%A0%C2%A0" style="height: 88px; width: 131px;"><tbody><tr class="object-row" style="height: 22px;"><td style="height: 22px; width: 76.9333px;">**yr\_gtm\_n**</td><td style="height: 22px; width: 52.55px;"><span>*object*</span></td></tr><tr class="" style="height: 22px;"><td style="height: 22px; width: 76.9333px;"> **.0**</td><td style="height: 22px; width: 52.55px;"><span>F02113</span></td></tr><tr class="" style="height: 22px;"><td style="height: 22px; width: 76.9333px;"> **.1**</td><td style="height: 22px; width: 52.55px;"><span>F94615</span></td></tr><tr class="" style="height: 22px;"><td style="height: 22px; width: 76.9333px;"> **.2**</td><td style="height: 22px; width: 52.55px;"><span>F67114</span></td></tr></tbody></table>

Available on: All pages

### yr\_gtm\_u

Date of current visit (YYYY-MM-DD)

Example: 2022-10-25

Available on: All pages

### yr\_gtm\_aa

Current visit status. There are the following statuses:

- 0 - standard visit (without order and abandoned cart).
- 1 - visit with an abandoned cart.
- 2 - visit with the placed order.
- Abandoned cart - another cart than current, with at least one product.

Example: 2

Available on: All pages

### yr\_gtm\_ae

Date of previous visit (YYYY-MM-DD)

Example: 2022-10-24

Available on: All pages

### yr\_gtm\_ag

Count of visits in last 360 days

Example: 607

Available on: All pages

### yr\_gtm\_x

List of SKUs that the user saw during the current visit. Only SKUs seen on product pages are used.

Example:

<table border="1" id="bkmrk-yr_gtm_x-object-%C2%A0%C2%A0%C2%A0%C2%A0" style="width: 137px;"><tbody><tr class="object-row"><td style="width: 76.3333px;">**yr\_gtm\_x**</td><td style="width: 44.5px;"><span>*object*</span></td></tr><tr class=""><td style="width: 76.3333px;"> **.0**</td><td style="width: 44.5px;"><span>05241</span></td></tr><tr class=""><td style="width: 76.3333px;"> **.1**</td><td style="width: 44.5px;"><span>74084</span></td></tr><tr class=""><td style="width: 76.3333px;"> **.2**</td><td style="width: 44.5px;"><span>74084</span></td></tr></tbody></table>

Available on: All pages

### yr\_gtm\_y

List of tags seen by user during the current visit. Only tags used on tag pages (/tag\*) are used.

Example:

<table border="1" id="bkmrk-yr_gtm_y-object-%C2%A0%C2%A0%C2%A0%C2%A0"><tbody><tr class="object-row"><td>**yr\_gtm\_y**</td><td><span>*object*</span></td></tr><tr class=""><td> **.0**</td><td><span>Kategorie: Vlasy &gt; Masky a octy: Masky &gt; Cílená péče: Detox vlasů</span></td></tr><tr class=""><td> **.1**</td><td><span>Kategorie: Vlasy</span></td></tr><tr class=""><td> **.2**</td><td><span>Kategorie: Vánoce</span></td></tr><tr class=""><td> **.3**</td><td><span>Kategorie: Vánoce</span></td></tr></tbody></table>

Available on: All pages

### yr\_gtm\_z

Top X product SKUs in abandoned carts from last 90 days, without gifts.

Example:

<table border="1" id="bkmrk--yr_gtm_z-object-%C2%A0%C2%A0%C2%A0" style="width: 153px; height: 88px;"><tbody><tr class="object-row" style="height: 22px;"><td style="width: 83.3833px; height: 22px;">*<a title="shift-click to expand all">-</a>***yr\_gtm\_z**</td><td style="width: 46.8667px; height: 22px;"><span>*object*</span></td></tr><tr class="" style="height: 22px;"><td style="width: 83.3833px; height: 22px;"> **.0**</td><td style="width: 46.8667px; height: 22px;"><span>22456</span></td></tr><tr class="" style="height: 22px;"><td style="width: 83.3833px; height: 22px;"> **.1**</td><td style="width: 46.8667px; height: 22px;"><span>J0437</span></td></tr><tr class="" style="height: 22px;"><td style="width: 83.3833px; height: 22px;"> **.2**</td><td style="width: 46.8667px; height: 22px;"><span>83020</span></td></tr></tbody></table>

Available on: All pages

### ecomm\_pagetype

A type of page. Available types are:

- "home"
- "product"
- "category"
- "purchase" (orderend = order thank you page)
- "cart" (all other cart pages)
- "siteview" (visit on any site not meeting above conditions)

Example: product

Available on: All pages

### ecomm\_totalvalue

Total cart/order value without delivery method cost

Example: 2000

Available on: Only on pages with ecomm\_pagetype = purchase/cart

### ecomm\_prodid

On purchase/cart pages: list of SKUs in order/cart, without gifts.  
On product pages: current product SKU.

Example:

- On product page: "10399"
- On other pages: \["10399","J0346"\]

Available on: Only on pages with ecomm\_pagetype = purchase/cart/product

### ecomm\_prodidpl

On purchase/cart pages: list of SKUs in order/cart, without gifts.  
On product pages: current product SKU.  
On category pages: top X top-rated products found by selected filters.

Example:

- On product page: "10399"
- On other pages: \["10399","J0346"\]

Available on: Only on pages with ecomm\_pagetype = purchase/cart/product/category

### id\_sekce

On category pages: list of selected tags IDs.  
On product pages: list of tags IDs from the most important feature assigned to the product (eg. Category).

Example: \["1246","1252"\]

Available on: Only on pages with ecomm\_pagetype = product/category

### visitorLoginState

Current state of user log in state. There are currently two states:

- "0" = guest
- "1" = logged in customer

Example: 1

Available on: All pages

### hashed\_email

SHA256 hash of normalized user e-mail address.  
Methodology: [https://developers.google.com/google-ads/api/docs/conversions/enhance-conversions?hl=en#normalization\_and\_hashing](https://developers.google.com/google-ads/api/docs/conversions/enhance-conversions?hl=en#normalization_and_hashing)

Example: "1b4f0e9851971998e7320785...edf7caa332359d6f1d83567014"

Available on: Only on the order thank you page (/cart/orderend, /cart/prepayment)

### hashed\_phone\_number

SHA256 hash of normalized user mobile number.  
Methodology: Google does not provide it. We normalize phone numbers to digits only and then hash them.

Example: "60303ae22b998861bce3...8a213c86c93c076dbe9f558c11c752"

Available on: Only on order thank you page (/cart/orderend, /cart/prepayment)

### email

User e-mail address.  
The field is generated only when unsafe user info is enabled within ***System &gt; System / Settings &gt; Integrations &gt; Google Tag Manager***

Example: "example@example.com"

Available on: Only on order thank you page (/cart/orderend, /cart/prepayment)

### phone\_number

User mobile number.  
Field is generated only when unsafe user info is enabled within ***System &gt; System / Settings &gt; Integrations &gt; Google Tag Manager***

Example: "+48999999999"

Available on: Only on order thank you page (/cart/orderend, /cart/prepayment)

### address\_info

An object containing delivery address data of placed order. First and last names are hashed using SHA256.  
Methodology: [https://developers.google.com/google-ads/api/docs/conversions/enhance-conversions?hl=en#enhancement\_adjustments](https://developers.google.com/google-ads/api/docs/conversions/enhance-conversions?hl=en#enhancement_adjustments)

Fields "first\_name" and "last\_name" are generated only when unsafe user info is enabled within ***System &gt; System / Settings &gt; Integrations &gt; Google Tag Manager***

Example:

```
{<br></br>"hashed_first_name": "4f0e9851971998e...e59d6f1d83567014",<br></br>"hashed_last_name": "60303ae861bce3...8a213c86c9311c752",<br></br>"city": "Praha",<br></br>"postal_code": "11800"<br></br>}<br></br>OR<br></br>{<br></br>"hashed_first_name": "4f0e9851971998e...e59d6f1d83567014",<br></br>"hashed_last_name": "60303ae861bce3...8a213c86c9311c752",<br></br>"first_name": "Jan",<br></br>"last_name": "Kowalski",<br></br>"city": "Praha",<br></br>"postal_code": "11800"<br></br>}
```

Available on: Only on order thank you page (/cart/orderend, /cart/prepayment)

---

# ![Screenshot_2020-04-29_at_19.12.41.png](https://knowledge.tauceti-digital.com/uploads/images/gallery/2024-11/tPpscreenshot-2020-04-29-at-19-12-41-png.png) Available data layer events

### page\_view

Event Generated automatically by Google Analitycs. All events handled by GA4 have anonymized IP (it's non-configurable).

Event parameters: (GA4 generated)

altshop

Triggered on every page if "Track page loads as "altshop" event" is enabled in GA4 system settings.

Event parameters:

```
{<br></br>name: 'alt shop name'<br></br>}
```

### ecommerce / view\_cart

This even is triggered on cart page (/cart).

Event parameters:

```
{<br></br>value: gross value of products,<br></br>currency: 'ISO currency code',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_variant: 'product attribute value / color name',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency,<br></br>quantity: quantity<br></br>}],<br></br>shipping_tier: 'delivery method name'<br></br>}
```

### ecommerce / add\_to\_cart

Triggered when a user adds an item to the cart. It applies only to regular 'add to cart' buttons. The value field contains the total row value after a change (determined by SKU). Items contain only elements with item\_id equal to added SKU.

Event parameters:

```
{<br></br>value: gross value of products,<br></br>currency: 'ISO currency code',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_variant: 'product attribute value / color name',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency,<br></br>quantity: quantity<br></br>}],<br></br>shipping_tier: 'delivery method name'<br></br>}
```

### ecommerce / remove\_from\_cart

Triggered when the user removes an item from the cart using "X" in cart table at /cart. The value field contains the total row value after a change (determined by SKU). Items contain only elements with item\_id equal to added SKU.

Event parameters:

```
{<br></br>value: gross value of products,<br></br>currency: 'ISO currency code',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_variant: 'product attribute value / color name',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency,<br></br>quantity: quantity<br></br>}],<br></br>shipping_tier: 'delivery method name'<br></br>}
```

### ecommerce / add\_shipping\_info

Triggered when user clicks on delivery method box on /cart/delivery (user changes delivery method).

Event parameters:

```
{<br></br>shipping_tier: 'delivery method name',<br></br>value: gross value of products,<br></br>currency: 'ISO currency code',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_variant: 'product attribute value / color name',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency,<br></br>quantity: quantity<br></br>}]<br></br>}
```

### cart.change\_address\_data

Triggered when the user clicks on "add new address" button on ***/cart/delivery page***.

Event parameters: No parameters.

### ecommerce / add\_payment\_info

Triggered when user clicks on the payment method box on ***/cart/payment*** (user changes payment method).

Event parameters:

```
{<br></br>payment_type: 'payment method name',<br></br>value: gross value of products,<br></br>currency: 'ISO currency code',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_variant: 'product attribute value / color name',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency,<br></br>quantity: quantity<br></br>}],<br></br>shipping_tier: 'delivery method name'<br></br>}
```

### ecommerce / begin\_checkout

Triggered when "**I confirm order**" is clicked at the last step of the checkout process. Previously the event was triggered with every click of "next step" button.

Event parameters:

```
{<br></br>value: gross value of products,<br></br>currency: 'ISO currency code',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_variant: 'product attribute value / color name',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency,<br></br>quantity: quantity<br></br>}],<br></br>shipping_tier: 'delivery method name'<br></br>}
```

### ecommerce / purchase

Triggered on ***/cart/orderend*** page. The legacy implementation also triggered this event on ***/cart/prepayment*** page but it does not comply with GA4 e-commerce events.

Event parameters:

```
{<br></br>transaction_id: 'order id with prefix',<br></br>affiliation: 'VPI',<br></br>value: gross value with shipping,<br></br>shipping: gross delivery + payment method cost,<br></br>currency: 'ISO currency code',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_variant: 'product attribute value / color name',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',z<br></br>currency: currency,<br></br>quantity: quantity<br></br>}],<br></br>shipping_tier: 'delivery method name'<br></br>}
```

### ecommerce / view\_item

This event is triggered on a product page.

Event parameters:

```
{<br></br>item_name: 'product name',<br></br>discount: 'difference between catalog_price and final price',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: catalog price,<br></br>value: final price for 1pc,<br></br>}
```

### ecommerce / view\_item\_list

Triggered on product list pages i.e. Category, Search result, Featured list.

Event parameters:

```
{<br></br>item_list_name: 'Name of list',<br></br>items: [{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency<br></br>}]<br></br>}
```

### website\_error

Triggers whenever the user encounters an error on the website. Currently, there are 5 error types:

#### **type: '404\_error'**

Triggered when a user enters 404 'not found' page.

#### **type: 'wrong\_discount'**

Triggered when a user had activated the discount code that does not trigger any promotion rules. It's also triggered when the user had in the cart already used personal discount code.

#### **type: 'missing\_product\_in\_cart'**

Triggered when some products were deleted from the cart due to low stocks.

#### **type: 'old\_offer\_error'**

Triggered when a customer is redirected to /auth/restricted.

#### **type: 'zero\_search'**

Triggered when a customer entered search results page which did not return any results

### mgm.button\_share

Triggered when the user clicks on "share by e-mail" below the invitation link or code in a customer account.

Event parameters:

```
{<br></br>type: 'email'<br></br>}
```

### mgm.button\_copy

Triggered when user clicks on "copy" below invitation link or code in a customer account. This event triggers one of two parameters depending if the customer clicked copy below link or a code:

```
{<br></br>type: 'invitation_link'<br></br>}
```

or

```
{<br></br>type: 'invitation_code'<br></br>}
```

### wishlist\_add

Triggered when the user clicks on the wishlist button (small heart icon) which adds a product to the user's wishlist.

Event parameters:

```
{<br></br>item_name: 'product name',<br></br>item_id: 'product SKU',<br></br>item_brand: 'YvesRocher',<br></br>item_category: 'Product category',<br></br>price: final price for 1pc,<br></br>discount: 'difference between catalog_price and final price',<br></br>currency: currency<br></br>}
```