---
title: 'Google 태그 관리자 구현'
description: 'Google 태그 관리자(GTM)를 사용하여 크리테오 OneTag를 웹사이트에 통합할 수 있습니다. 웹사이트 상태에 따라 GTM을 통해 크리테오 OneTag를 추가하는 방법을 선택할 수 있습니다.'
language: ko
guide: Jllb9QtgOk
updated: 2026-03-26T09:55:23Z
canonical: https://help.criteo.com/kb/guide/ko/google-Jllb9QtgOk/Steps/3092624
alternates:
  de: https://help.criteo.com/kb/guide/de/implementierung-von-google-tag-manager-Jllb9QtgOk.md
  en: https://help.criteo.com/kb/guide/en/google-tag-manager-implementation-Jllb9QtgOk.md
  es: https://help.criteo.com/kb/guide/es/implementacion-de-google-tag-manager-Jllb9QtgOk.md
  fr: https://help.criteo.com/kb/guide/fr/mise-en-uvre-de-google-tag-manager-Jllb9QtgOk.md
  it: https://help.criteo.com/kb/guide/it/implementazione-di-google-tag-manager-Jllb9QtgOk.md
  ja: https://help.criteo.com/kb/guide/ja/google-Jllb9QtgOk.md
  pt: https://help.criteo.com/kb/guide/pt/implementacao-do-gerenciador-de-tags-do-google-Jllb9QtgOk.md
  zh: https://help.criteo.com/kb/guide/zh/google-tag-manager-Jllb9QtgOk.md
---

> Index of this knowledge base: https://help.criteo.com/llms.txt
>
> Interactive version: https://help.criteo.com/kb/guide/ko/google-Jllb9QtgOk/Steps/3092624

# Google 태그 관리자 구현

<a id="step-3092624"></a>

## Google 태그 관리자 구현

Google 태그 관리자(GTM)를 사용하여 크리테오 OneTag를 웹사이트에 통합할 수 있습니다.    

웹사이트 상태에 따라 GTM을 통해 크리테오 OneTag를 추가하는 방법을 선택할 수 있습니다.

- If "Follow Criteo standard suggestion (Recommended)": [Follow Criteo standard suggestion (Recommended)](#step-4781001)
- If "Adapt Criteo container to your website": [Adapt Criteo container to your website](#step-4781009)
- If "Recommended Data Layer Specification": [Recommended Data Layer Specification](#step-4781010)

<a id="step-4781001"></a>

## Follow Criteo standard suggestion (Recommended)

Use this when your website follows **Google Analytics 4 Enhanced Ecommerce** event names and objects. Commerce Growth provides a pre-configured GTM container (JSON) aligned to this specification, with triggers pre-configured to work with e-commerce events associated with the following page views or user actions: Homepage, Product, Listing, Add to Cart, Basket, and Purchase. Most mappings are ready out of the box.

1.  Select **Follow Criteo standard suggestion** and download the container.
    
2.  In GTM, go to **Admin > Import Container**, upload the JSON, and choose **Merge** (if prompted, select **Rename conflicts**).
    
3.  Publish, then browse your site with **GTM Preview** and open **Event Monitoring** in the Commerce Growth to verify incoming events and key parameters.
    

If anything is missing in your implementation, update your site to match our **Recommended Data Layer Specification** and re-test.

This path ends here.

<a id="step-4781009"></a>

## Adapt Criteo container to your website

Choose this when you have a **custom or incomplete data layer, or no data layer**. This method doesn’t require you to change your data layer to match our pre-configured template. Instead, you **adapt our tags** to use your preferred triggers and variables inside **your own GTM setup.**

1.  Select **Adapt Criteo container for your website** and download the container.
    
2.  Import it into GTM by selecting **Merge**.
    
3.  For each OneTag event, attach your own trigger (when that event happens on your site).
    
4.  **Map variables** your site exposes, updating the code inside each tag, removing the ##PLACEHOLDER## (for example, product ID, price, currency, order reference, and email if available)
    
5.  Keep the OneTag loader and tag structure; change only payload values and triggers.
    
6.  Publish and test with **GTM Preview.**
    
7.  Then, confirm in **Event Monitoring** within Commerce Growth.

This path ends here.

<a id="step-4781010"></a>

## Recommended Data Layer Specification

If you haven’t set up a data layer on your website, you will need to set one up first so that you can benefit from our ready-to-use Criteo Google Tag Manager pre-configured container.

You can also refer to this guide if your website is not fully compliant with the GA4 enhanced ecommerce events specification. For example, some events, objects, or variables that Criteo tags need are missing, and you wish to fix your website so it becomes fully compliant with the recommended specification.

> **Tip:** **Note**
>
> -   All data layer elements are case-sensitive. The `ecommerce` object is the array that holds single and multiple products' info, as well as e-commerce products' info. It is the same object used across different pages of the site (eg, Single Product, Category Pages, Add to Cart, Basket, and Purchase / Conversion confirmation pages).
>     
> -   To ensure our pre-configured container works without needing any modifications, make sure this array object is formatted correctly to match this specification.
>     
> -   Also, ensure that your website data layer has the additional variables that are required by Criteo tags.

- If "List of common variables": [List of common variables](#step-4781007)
- If "Homepage Event": [Homepage Event](#step-4781008)
- If "Product Event": [Product Event](#step-4781005)
- If "Listing Event": [Listing Event](#step-4781004)
- If "List of common Travel variables (Travel only)": [List of common Travel variables (Travel only)](#step-4781006)
- If "Add To Cart Event": [Add To Cart Event](#step-4781011)
- If "Basket Event": [Basket Event](#step-4781003)
- If "Purchase Event": [Purchase Event](#step-4781002)

<a id="step-4781007"></a>

## List of common variables

Below is the list of common variables that are in use for all Data Layer implementations:

| FIELD | OVERVIEW | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Page Name | A Criteo Data Layer variable that can be used to inform the Criteo engine of the page name the user is browsing. This is an “Extra Data” optional parameter | Search Results | String | No |
| Page Url | A Criteo Data Layer variable that can be used to inform the Criteo engine of the page url the user is browsing. This is an “Extra Data” optional parameter | [https://example.com/category?id=categoryid1](https://example.com/category?id=categoryid1) | String | No |
| Page Type | A Criteo Data Layer variable that can be used to inform the Criteo engine of the page type the user is browsing. This is an “Extra Data” optional parameter | Impressions | String | No |
| Page Category | A Criteo Data Layer variable that can be used to inform the Criteo engine of the page category the user is browsing. This is an “Extra Data” optional parameter | Electronics | String | No |
| User Logged In | A Criteo Data Layer variable that can be used to inform the Criteo engine if the advertiser’s visitor is logged onto the site or not. This is an “Extra Data” optional parameter | true or false | Boolean | No |
| User Type | A Criteo Data Layer variable that can be used to inform the Criteo engine of the type of user that is browsing the site. This is an “Extra Data” optional parameter | Regular | String | No |
| New Customer | A Criteo Data Layer variable that can be used to inform the Criteo engine if the advertiser’s customer is a new customer or not. This is an “Extra Data” optional parameter | true | Boolean | No |
| User Email - Plain text | The users raw email address, whitespace trimmed and lowercase. | email@domain.com | String | Yes (only if MD5 and SHA256 are not used) |
| User Email - MD5 | The users email, whitespace trimmed, lowercase and MD5 hashed. | 7328fddefd53de471baeb6e2b764f78a | String | Yes |
| User Email - SHA256 | The users email, whitespace trimmed, lowercase and SHA-256 hashed. | 97817c0c49994eb500ad0a5e7e2d8aed 51977b26424d508f66e4e8887746a152 | String | Yes |
| User Phone Number - Plain Text | User Phone Number - Plain Text | +33140402290 | String. Trimmed [E.164](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561,4106562) format. Number starts with "+" sign, includes the country code and there is no leading 0. | No |
| User Phone Number - SHA256 | User Phone Number - SHA256 | f80a807618cce09f81574aad74a3efe06 c27c200d50873754fd287c9f15fea68 | String. Trimmed [E.164](https://help.criteo.com/kb/guide/en/criteo-onetag-advanced-settings-M2TiX6m90K/Steps/886908,4106561,4106563) format including the country code, without the leading "+" sign and SHA256\-hashed. | Recommended |
| Store ID | A Criteo Data Layer variables used to map the advertiser’s physical store ID. | A734Gd87 | String | No |
| Zipcode | The user's zip code. | 12345 | String | No |
| Customer ID | A non PII value that can identify a unique user in a client's CRM. Examples: CRM id, user's login. The Result that is passed to the tag mush be MD5 hashed | 49f68a5c8493ec2c0bf489821c21fc3b | String | Recommended |

This path ends here.

<a id="step-4781008"></a>

## Homepage Event

```javascript
/* Enter your code */////// RECOMMENDED //////
<!-- Homepage dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'homepage_view',
  'page_name': '##Page Name##', 
  'page_url': '##Page URL##',
  'page_type': '##Page Type##',
  'page_category': '##Page Category##',
  'user_logged_in': '##true / false##',
  'user_type': '##User Type##',
  'new_customer': '##true / false##',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'user_phone_number_plain_text': '##User Phone Number - Plain Text##',
  'user_phone_number_sha256': '##User Phone Number - SHA256##',
  'store_id': '##Store ID##',
  'zipcode': '##Zipcode##',
  'customer_id':'##Customer ID##',
});
</script>
<!-- END Homepage dataLayer -->

////// WHAT FOLLOWS HERE BELOW IS THE SAME DATA LAYER OBJECT POPULATED WITH EXAMPLE VALUES //////

<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'home_view',
  'page_name': 'Homepage', 
  'page_url': 'https://example.com/',
  'page_type': 'homepage',
  'page_category': 'home',
  'user_logged_in': 'true',
  'user_type': 'Regular',
  'new_customer': 'false',
  'user_email_plain_text': 'email@domain.com',
  'user_email_md5': '7328fddefd53de471baeb6e2b764f78a',
  'user_email_sha256': '97817c0c49994eb500ad0a5e7e2d8aed51977b26424d508f66e4e8887746a152',
  'user_phone_number_plain_text': '+33140402290',
  'user_phone_number_sha256': 'f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68',
  'store_id': 'A734Gd87',
  'zipcode': '12345',
  'customer_id':'49f68a5c8493ec2c0bf489821c21fc3b',
});
</script>

////// MINIMUM REQUIREMENTS //////
<!-- Homepage dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'homepage_view',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##'
});
</script>
<!-- END Homepage dataLayer -->
```

| FIELD | OVERVIEW | EXAMPLE/VALUE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Event | Homepage Event | homepage\_view | String | Yes |

Install the following Data Layer on the homepage of your website.

Example URL:  
YOUR\_HOMEPAGE\_URL/

-   Recommended
    
-   Minimum requirement
    
-   Example with all parameter values

This path ends here.

<a id="step-4781005"></a>

## Product Event

```javascript
/* Enter your code */////// RECOMMENDED //////
<!-- Product Detail dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'view_item',
  'page_name': '##Page Name##',
  'page_url': '##Page URL##',
  'page_type': '##Page Type##',
  'page_category': '##Page Category##',
  'user_logged_in': '##true / false##',
  'user_type': '##User Type##',
  'new_customer': '##true / false##',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'user_phone_number_plain_text': '##User Phone Number - Plain Text##',
  'user_phone_number_sha256': '##User Phone Number - SHA256##',
  'store_id': '##Store ID##',
  'zipcode': '##Zipcode##',
  'customer_id': '##Customer ID##',
  'ecommerce': {
    'items': [
      {
        'item_id': '##ProductID_1##',
        'price' : '##Price##',
        'availability' : '##Availability##'
      } 
    ]
  }
});
</script>
<!-- END Product Detail dataLayer -->

////// WHAT FOLLOWS HERE BELOW IS THE SAME DATA LAYER OBJECT POPULATED WITH EXAMPLE VALUES //////

<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'view_item',
  'page_name': 'Product Details - Product 1',
  'page_url': 'https://example.com/product?id=productid_1',
  'page_type': 'Product Detail',
  'page_category': 'Electronics',
  'user_logged_in': 'true',
  'user_type': 'Regular',
  'new_customer': 'false',
  'user_email_plain_text': 'email@domain.com',
  'user_email_md5': '7328fddefd53de471baeb6e2b764f78a',
  'user_email_sha256': '97817c0c49994eb500ad0a5e7e2d8aed51977b26424d508f66e4e8887746a152',
  'user_phone_number_plain_text': '+33140402290',
  'user_phone_number_sha256': 'f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68',
  'store_id': 'A734Gd87',
  'zipcode': '12345',
  'customer_id': '49f68a5c8493ec2c0bf489821c21fc3b',
  'ecommerce': {
    'items': [
      {
        'item_id': 'ProductID_1',
        'price' : '20',
        'availability' : '1'
      }
    ]
  }
});
</script>

////// MINIMUM REQUIREMENTS //////
<!-- Product Detail dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'view_item',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'ecommerce': {
    'items': [
      {
        'item_id': 'ProductID_1',
      }
    ]
  }
});
  </script>
  <!-- END Product Detail dataLayer -->
```

| FIELD | DESCRIPTION | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Event | Product view event | view\_item | String | Yes |
| Ecommerce | Ecommerce object | ecommerce | Array | Yes |
| Product ID | Unique ID of product | ProductID\_1 | String | Yes |
| Price | Unit price of the product | 20 | Double | No |
| Availability | Product availability status. 1 if the product is in stock, 0 if the product is out of stock | 1 | Boolean | No |

Install the following Data Layer on the product detail pages of your website.  
Example URL: **_YOUR\_HOMEPAGE\_URL/product?id=productid\_1_**

Check on the left for:

-   Recommended
    
-   Minimum requirement
    
-   Example with all parameter values

This path ends here.

<a id="step-4781004"></a>

## Listing Event

```javascript
/* Enter your code */////// RECOMMENDED //////
<!-- Listing Event dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'view_item_list',
  'page_name': '##Page Name##', 
  'page_url': '##Page URL##',
  'page_type': '##Page Type##',
  'page_category': '##Page Category##',
  'user_logged_in': '##true / false##',
  'user_type': '##User Type##',
  'new_customer': '##true / false##',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'user_phone_number_plain_text': '##User Phone Number - Plain Text##',
  'user_phone_number_sha256': '##User Phone Number - SHA256##',
  'store_id': '##Store ID##',
  'zipcode': '##Zipcode##',
  'customer_id':'##Customer ID##',
  'keywords': '##Search Keyword##',
  'ecommerce': {
    'items': [
      {
        'item_id': '##ProductID_1##',
        'item_category': '##Category Name 1##',
        'item_category2': '##Category Name 2##',
        'item_category3': '##Category Name 3##',
        'item_category4': '##Category Name 4##',
        'item_category5': '##Category Name 5##',
      },
      {
        'item_id': '##ProductID_1##',
        'item_category': '##Category Name 1##',
        'item_category2': '##Category Name 2##',
        'item_category3': '##Category Name 3##',
        'item_category4': '##Category Name 4##',
        'item_category5': '##Category Name 5##',
      },
      {
        'item_id': '##ProductID_1##',
        'item_category': '##Category Name 1##',
        'item_category2': '##Category Name 2##',
        'item_category3': '##Category Name 3##',
        'item_category4': '##Category Name 4##',
        'item_category5': '##Category Name 5##',
      },
    ]
  }
});
</script>
<!-- END Listing Event dataLayer -->

////// WHAT FOLLOWS HERE BELOW IS THE SAME DATA LAYER OBJECT POPULATED WITH EXAMPLE VALUES //////

<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'view_item_list',
  'page_name': 'Search Results', 
  'page_url': 'https://example.com/category?id=categoryid1',
  'page_type': 'Impressions',
  'page_category': 'Electronics',
  'user_logged_in': 'true',
  'user_type': 'Regular',
  'new_customer': 'false',
  'user_email_plain_text': 'email@domain.com',
  'user_email_md5': '7328fddefd53de471baeb6e2b764f78a',
  'user_email_sha256': '97817c0c49994eb500ad0a5e7e2d8aed51977b26424d508f66e4e8887746a152',
  'user_phone_number_plain_text': '+33140402290',
  'user_phone_number_sha256': 'f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68',
  'store_id': 'A734Gd87',
  'zipcode': '12345',
  'customer_id':'49f68a5c8493ec2c0bf489821c21fc3b',
  'keywords': 'wireless headphones',
  'ecommerce': {
    'items': [{
    'item_id': 'ProductID_1',
    'item_category': 'Electronics',
    'item_category2': 'Audio',
    'item_category3': 'Headphones',
    'item_category4': 'Wireless',
    'item_category5': 'Apple',
    },
    {
      'item_id': 'ProductID_2',
      'item_category': 'Electronics',
      'item_category2': 'Audio',
      'item_category3': 'Headphones',
      'item_category4': 'Wireless',
      'item_category5': 'Apple',
    },
    {
      'item_id': 'ProductID_3',
      'item_category': 'Electronics',
      'item_category2': 'Audio',
      'item_category3': 'Headphones',
      'item_category4': 'Wireless',
      'item_category5': 'Huawei',
    },
  ]
  }
});
</script>

////// MINIMUM REQUIREMENTS //////
<!-- Listing Event dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'view_item_list',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'ecommerce': {
    'items': [
      {
        'item_id': 'ProductID_1'
      },
      {
        'item_id': 'ProductID_2'
      },
      {
        'item_id': 'ProductID_3'
      }
    ]
  }
});
</script>
<!-- END Listing Event dataLayer-->
```

| ELD | DESCRIPTION | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Event | Listing event | view\_item\_list | String | Yes |
| Ecommerce | Ecommerce object | ecommerce | Array | Yes |
| Product ID | Unique ID of product | ProductID\_1 | String | Yes |
| Category Name X | Category levels names for the product | Accessories | String | No |

Install the following Data Layer on the listing, category, and search results pages of your website.  
Example URL: **_YOUR\_HOMEPAGE\_URL/category?id=categoryid1_**

Check on the left for:

-   Recommended
    
-   Minimum requirement
    
-   Example with all parameter values

This path ends here.

<a id="step-4781006"></a>

## List of common Travel variables (Travel only)

```javascript
/* Enter your code */<!-- Criteo Travel Search dataLayer-->
<script type="text/javascript">
  window.criteo_q = window.criteo_q || [];
  window.criteo_q.push(
       'checkin_date' : '##Checkin Date##',
       'checkout_date' : '##Checkout Date##',
       'nbra' : '##Number of Adults##',
       'nbrc' : '##Number of Children##',
       'nbri': '##Number of Infants##',
       'nbrr': '##Number of Rooms##'
    }
  );
</script>
<!-- END Criteo Travel Search dataLayer-->

////// WHAT FOLLOWS HERE BELOW IS THE SAME DATA LAYER OBJECT POPULATED WITH EXAMPLE VALUES //////

<script type="text/javascript">
  window.criteo_q = window.criteo_q || [];
  window.criteo_q.push(
       'checkin_date' : '2025-06-12',
       'checkout_date' : '2025-06-19',
       'nbra' : '2',
       'nbrc' : '1',
       'nbri': '0',
       'nbrr': '1'
    }
  );
</script>
```

Below is the list of Travel variables that are common to **Product**, **Listing**, **Add to Cart**, **Basket** and **Purchase** events.

**Note:** Data Layer implementation only applicable to **Travel websites**

| FIELD | DESCRIPTION | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Checkin\_date | Departure Date | 2025-06-12 | String (YYYY-MM-DD) | Yes |
| Checkout\_date | Return Date | 2025-06-19 | String (YYYY-MM-DD) | Yes |
| Nbra | The number of adult travellers | 2 | Integer | Recommended |
| Nbrc | The number of children travellers | 1 | Integer | Recommended |
| Nbri | The number of infant travellers | 0 | Integer | Recommended |
| Nbrr | The number of rooms (if applicable, eg. Hotels) | 1 | Integer | Recommended |

Install the following Data Layer when a **user performs a website search**, and ensure the same information is available in your website, throughout the entire search funnel.

This path ends here.

<a id="step-4781011"></a>

## Add To Cart Event

```javascript
/* Enter your code */////// RECOMMENDED //////
<!-- Add To Cart dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'add_to_cart',
  'page_name': '##Page Name##',
  'page_url': '##Page URL##',
  'page_type': '##Page Type##',
  'page_category': '##Page Category##',
  'user_logged_in': '##true / false##',
  'user_type': '##User Type##',
  'new_customer': '##true / false##',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'user_phone_number_plain_text': '##User Phone Number - Plain Text##',
  'user_phone_number_sha256': '##User Phone Number - SHA256##',
  'store_id': '##Store ID##',
  'zipcode': '##Zipcode##',
  'customer_id': '##Customer ID##',
  'ecommerce': {
    'items': [
      {
        'item_id': '##ProductID_1##',
        'price': '##Price##',
        'quantity': '##Quantity##'
      } 
    ]
  }
});
</script>
<!-- END Add To Cart dataLayer -->

////// WHAT FOLLOWS HERE BELOW IS THE SAME DATA LAYER OBJECT POPULATED WITH EXAMPLE VALUES //////

<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'add_to_cart',
  'page_name': 'Product Details - Product 1',
  'page_url': 'https://example.com/product?id=productid_1',
  'page_type': 'Product',
  'page_category': 'Electronics',
  'user_logged_in': 'true',
  'user_type': 'Regular',
  'new_customer': 'false',
  'user_email_plain_text': 'email@domain.com',
  'user_email_md5': '7328fddefd53de471baeb6e2b764f78a',
  'user_email_sha256': '97817c0c49994eb500ad0a5e7e2d8aed51977b26424d508f66e4e8887746a152',
  'user_phone_number_plain_text': '+33140402290',
  'user_phone_number_sha256': 'f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68',
  'store_id': 'A734Gd87',
  'zipcode': '12345',
  'customer_id': '49f68a5c8493ec2c0bf489821c21fc3b',
  'ecommerce': {
    'items': [
      {
        'item_id': 'ProductID_1',
        'price': '200.99',
        'quantity': 2
      }
    ]
  }
});
</script>

////// MINIMUM REQUIREMENTS //////
<!-- Add To Cart dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'add_to_cart',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'ecommerce': {
    'items': [
      {
        'item_id': 'ProductID_1',
        'price': '200.99',
        'quantity': 2
      }
    ]
  }
});
</script>
<!-- END Add To Cart dataLayer -->
```

| FIELD | DESCRIPTION | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Event | Add to Cart event | add\_to\_cart | String | Yes |
| Ecommerce | Ecommerce object | ecommerce | Array | Yes |
| Product ID | Unique ID of product | ProductID\_1 | String | Yes |
| Price | Unit price of the product | 200.99 | String or Integer, excluding the currency symbol | Yes |
| Quantity | Number of units added | 2 | Integer | Yes |

Install the following Data Layer when a user adds a product to the cart.

Check on the left for:

-   Recommended
    
-   Minimum requirement
    
-   Example with all parameter values

This path ends here.

<a id="step-4781003"></a>

## Basket Event

```javascript
/* Enter your code */////// RECOMMENDED //////
<!-- Basket (Checkout) dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'begin_checkout',
  'page_name': '##Page Name##',
  'page_url': '##Page URL##',
  'page_type': '##Page Type##',
  'page_category': '##Page Category##',
  'user_logged_in': '##true / false##',
  'user_type': '##User Type##',
  'new_customer': '##true / false##',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'user_phone_number_plain_text': '##User Phone Number - Plain Text##',
  'user_phone_number_sha256': '##User Phone Number - SHA256##',
  'store_id': '##Store ID##',
  'zipcode': '##Zipcode##',
  'customer_id': '##Customer ID##',
  'ecommerce': {
    'currency': '##Currency##',
    'items': [
      {
        'item_id': '##ProductID_1##',
        'price': '##Price##',
        'quantity': '##Quantity##'
      }
    ]
  }
});
</script>
<!-- END Basket (Checkout) dataLayer -->

////// WHAT FOLLOWS HERE BELOW IS THE SAME DATA LAYER OBJECT POPULATED WITH EXAMPLE VALUES //////

<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'begin_checkout',
  'page_name': 'Example Corp - Cart',
  'page_url': 'https://example.com/cart',
  'page_type': 'Checkout',
  'page_category': 'Ecommerce',
  'user_logged_in': 'true',
  'user_type': 'Regular',
  'new_customer': 'false',
  'user_email_plain_text': 'email@domain.com',
  'user_email_md5': '7328fddefd53de471baeb6e2b764f78a',
  'user_email_sha256': '97817c0c49994eb500ad0a5e7e2d8aed51977b26424d508f66e4e8887746a152',
  'user_phone_number_plain_text': '+33140402290',
  'user_phone_number_sha256': 'f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68',
  'store_id': 'A734Gd87',
  'zipcode': '12345',
  'customer_id': '49f68a5c8493ec2c0bf489821c21fc3b',
  'ecommerce': {
    'currency': 'USD',
    'items': [
      {
        'item_id': 'ProductID_1',
        'price': '200.99',
        'quantity': 2
      }
    ]
  }
});
</script>

////// MINIMUM REQUIREMENTS //////
<!-- Basket (Checkout) dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'begin_checkout',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'ecommerce': {
    'currency': 'USD',
    'items': [
      {
        'item_id': '##ProductID_1##',
        'price': '##Price##',
        'quantity': '##Quantity##'
      }
    ]
  }
});
</script>
<!-- END Basket (Checkout) dataLayer -->
```

| FIELD | DESCRIPTION | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Event | Checkout summary event | begin\_checkout | String | Yes |
| Ecommerce | Ecommerce object | ecommerce | Array | Yes |
| Product ID | Unique ID of product | ProductID\_1 | String | Yes |
| Price | Unit price of the product | 200.99 | String or Integer, excluding the currency symbol | Yes |
| Quantity | Number of units added | 2 | Integer | Yes |
| Currency | The ISO code of the currency | USD | String | No |

 Install this Data Layer in your Checkout summary page  
Example URL: **_YOUR\_HOMEPAGE\_URL/checkout\_summary_**

Check on the left for:

-   Recommended
    
-   Minimum requirement
    
-   Example with all parameter values

This path ends here.

<a id="step-4781002"></a>

## Purchase Event

```javascript
/* Enter your code */////// RECOMMENDED //////
<!-- Purchase dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'purchase',
  'page_name': '##Page Name##',
  'page_url': '##Page URL##',
  'page_type': '##Page Type##',
  'page_category': '##Page Category##',
  'user_logged_in': '##true / false##',
  'user_type': '##User Type##',
  'new_customer': '##true / false##',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'user_phone_number_plain_text': '##User Phone Number - Plain Text##',
  'user_phone_number_sha256': '##User Phone Number - SHA256##',
  'store_id': '##Store ID##',
  'zipcode': '##Zipcode##',
  'customer_id': '##Customer ID##',
  'ecommerce': {
    'transaction_id': '##Transaction ID##',
    'currency': '##Currency##',
    'items': [{
      'item_id': '##ProductID_1##',
      'price': '##Price##',
      'quantity': '##Quantity##',
    }]
  }
});
</script>
<!-- END Purchase dataLayer -->

////// WHAT FOLLOWS HERE BELOW IS THE SAME DATA LAYER OBJECT POPULATED WITH EXAMPLE VALUES //////

<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'purchase',
  'page_name': 'Example Copr - Your Order is created!',
  'page_url': 'https://example.com/thankyou',
  'page_type': 'Purchase',
  'page_category': 'Ecommerce',
  'user_logged_in': 'true',
  'user_type': 'Regular',
  'new_customer': 'false',
  'user_email_plain_text': 'email@domain.com',
  'user_email_md5': '7328fddefd53de471baeb6e2b764f78a',
  'user_email_sha256': '97817c0c49994eb500ad0a5e7e2d8aed51977b26424d508f66e4e8887746a152',
  'user_phone_number_plain_text': '+33140402290',
  'user_phone_number_sha256': 'f80a807618cce09f81574aad74a3efe06c27c200d50873754fd287c9f15fea68',
  'store_id': 'A734Gd87',
  'zipcode': '12345',
  'customer_id': '49f68a5c8493ec2c0bf489821c21fc3b',
  'ecommerce': {
    'transaction_id': '7654322',
    'currency': 'USD',
    'items': [
      {
        'item_id': 'ProductID_1',
        'price': '200.99',
        'quantity': 2
      }
    ]
  }
});
</script>

////// MINIMUM REQUIREMENTS //////
<!-- Purchase dataLayer -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  'event': 'purchase',
  'user_email_plain_text': '##User Email - Plain Text##',
  'user_email_md5': '##User Email - MD5##',
  'user_email_sha256': '##User Email - SHA256##',
  'ecommerce': {
    'transaction_id': '##Transaction ID##',
    'currency': '##Currency##',
    'items': [
      {
        'item_id': '##ProductID_1##',
        'price': '##Price##',
        'quantity': '##Quantity##'
      }
    ]
}
});
</script>
<!-- END Purchase dataLayer -->
```

| FIELD | DESCRIPTION | EXAMPLE | SYNTAX | REQUIRED |
| --- | --- | --- | --- | --- |
| Event | Purchase confirmation event | purchase | String | Yes |
| Ecommerce | Ecommerce object | ecommerce | Array | Yes |
| Transaction ID | Confirmation or Order #. The value must be unique | 7654322 | Integer or String | Yes |
| Product ID | Unique ID of product | ProductID\_1 | String | Yes |
| Price | Unit price of the product | 200.99 | String or Integer, excluding the currency symbol | Yes |
| Quantity | Number of units added | 2 | Integer | Yes |
| Currency | The ISO code of the currency | USD | String | No |

 Install the following Data Layer on the sales confirmation or Thank You page of your website. 

Example URL: **_YOUR\_HOMEPAGE\_URL/thankyou_**

Check on the left for:

-   Recommended
    
-   Minimum requirement
    
-   Example with all parameter values

This path ends here.
