Web DataLayer Event Template Integration

To speed up event integration on your website, you can implement DataLayer integration using the template below. If you apply the template for the events in the document, considering the data you want to collect from your web site and the setup you will perform, the web event integration time will be shortened and a standard will be established for the next setups. These events can also be used in your integrations in different 3rd party products.

Before starting the event template implementation, please make sure that Google Tag Manager (GTM) and DataLayer is implemented on your site.

Login Event

When the registered member logs in, data is sent to the DataLayer.

 

Parameters:

OM.exVisitorID (REQUIRED)

OM.b_login (REQUIRED)

 

Sample data sent to DataLayer:

//Login dataLayer.push({ event: "vlEvent", label: "VL-Login", vl_userID: "ID or email of user", // Required });

Sign Up

When a visitor registers, data is sent to the DataLayer.

 

Parameters:

OM.exVisitorID (REQUIRED)

OM.b_sgnp (REQUIRED)

 

Sample data sent to DataLayer:

// Signup dataLayer.push({ event: "vlEvent", label: "VL-Signup", vl_userID: "ID or email of user", // Required });

Onsite Searched keyword data is sent to the DataLayer.

 

Parameters:

OM.OSS  (REQUIRED)

OM.OSSR (OPTIONAL)

 

Sample data sent to DataLayer

dataLayer.push({ event: "vlEvent", label: "VL-SearchResultView", vl_search: { word: "Searched Word", // Required result: "Product Count Of Founded Search Result" // Optional } });

Category Page View

When a category page is entered on the site, data is sent to the DataLayer.

 

Parameters:

OM.clist (REQUIRED)

 

Sample data sent to DataLayer

Product View

Product view data is sent to DataLayer.

 

Parameters

OM.pv (REQUIRED)

OM.pn (REQUIRED)

OM.inv (REQUIRED)

OM.ppr (REQUIRED)

OM.pv.1(OPTIONAL)

OM.pv.2 (REQUIRED for variant integration)

 

Sample data sent to DataLayer

Add To Cart

Add to cart and Remove from cart data is sent to DataLayer.

 

Parameters

OM.pbid (REQUIRED)

OM.pb (REQUIRED

OM.pu (REQUIRED

OM.ppr(REQUIRED) 

OM.pb.2  (REQUIRED for variant integration)

 

Sample data sent to DataLayer

Add or Remove Favorites

Data is sent to the DataLayer when a product is added to or removed from the favorites.

 

Parameters:

OM.pf  (REQUIRED)

OM.pfu (REQUIRED)

OM.ppr (REQUIRED)

 

Sample data sent to DataLayer

Product Purchase

After the product is purchased, data is sent to the DataLayer.

 

Parameters:

OM.tid (REQUIRED)

OM.pp (REQUIRED)

OM.pp.2  (REQUIRED for variant integration)

OM.pu  (REQUIRED)

OM.ppr  (REQUIRED

OM.exVisitorID (REQUIRED)

 

Sample data sent to DataLayer

PageView

The code that should be sent to DataLayer on all pages except the pages mentioned above in this document.

 

Parameters:

OM.uri (REQUIRED)

 

Sample data sent to DataLayer

Custom Event

If there are additional events to be sent on the web page, data is sent to the DataLayer. This data can be sent as a parameter-value, whether an array is requested in the DataLayer.

 

Parameters

These parameters should be created by the Integration team on RMC panel, according to the data type and quantity to be sent by the customer.

 

Sample data sent to DataLayer

Or

 

Copyright 2020 Related Digital