Setting up the data layer

Mikko Seppä

Last Update 3 個月前

About the data layer

A data layer is a JavaScript object that is used to pass information from your website to your Tag Manager container. You can then use that information to populate variables and activate triggers in your tag configurations.


HeadQ implements the data layer with various events with e-commerce data support (GA4 compatible).

Events supported

EventDescription
view_itemThe user opens a product configurator
add_to_cartThe user adds a product to the cart
add_to_quote_cartThe user adds a product to the quote cart
view_cartThe user opens the cart
begin_checkoutThe user starts the checkout process
purchaseThe user finalizes the checkout process and makes a purchase
request_for_quoteThe user requests a quote
calculate_priceThe calculated price in the configurator
begin_configurationThe user started the configuration, but not calculate the price
complete_configurationThe user has completed the configuration and added configuration to the cart.
generate_leadThe user has done action that generates a lead to the store.
remove_from_cartThe user has removed item from the cart.
remove_from_quote_cartThe user has removed item from the quote cart.

Enabling data layer

By default, the data layer is not enabled. Go to your store settings (Home > Store settings > Integrations). Look for the setting "Does store use data layer" and enable it.

After enabling, the data layer should start working within a minute on your site.

Great. Now you can use your tag manager solutions to flow the event data into any system you want.


Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us