Skip to main content

GA4: Triggers and variables in Google Tag Manager

Discover a complete list of triggers and variables in Google Tag Manager for GA4 ecommerce tracking, covering product views, carts, and…

A list of triggers and variables for use in Google Tag Manager for Google Analytics 4 (GA4).

Triggers and Variables in Google Tag Manager (GTM) for Google Analytics 4 (GA4)

Triggers and variables are what is available to track in GTM (Google Tag Manager).

New updated data layers and variables

1. Data Layer Event – view_item (Variable)

This event is triggered when a customer has viewed an item/article/product.

Datalayer Event: view_item

ecommerce

A list (Array) of products

articleId

Item ID (if available)

articleNumber

Item number (if available)

name

Item name

ecommerce consists of:

currency

Currency code

items

A list (Array) of product details

item_id

Specific Item ID (if available)

item_name

Specific item name

quantity

Item quantity

2. Data Layer Event – add_to_cart (Variable)

This event is triggered when a customer has added an item/article/product to their cart.

Datalayer Event: add_to_cart

ecommerce

A list (Array) of products

articleId

Item ID (if available)

articleNumber

Item number (if available)

name

Item name

articleName

Item name

articlePrice

Item price

transactionId

Order number

transactionTotal

Total amount excluding VAT

totalIncVat

Total amount including VAT

orderItem

Includes each item in the shopping cart with the following information

ecommerce consists of:

currency

Currency code

transaction_id

Order number

value

Shopping cart total (if available)

items

A list (Array) of product details

item_id

Specific Item ID (if available)

item_name

Specific item name

price

Item price

quantity

Item quantity

3. Data Layer Event – begin_checkout (Variable)

This event is triggered when a customer has started the checkout process.

Datalayer Event: begin_checkout

ecommerce

A list (Array) of products

articleId

Item ID (if available)

articleNumber

Item number (if available)

name

Item name

articleName

Item name

articlePrice

Item price

transactionId

Order number

transactionTotal

Total amount excluding VAT

totalIncVat

Total amount including VAT

orderItem

Includes each item in the shopping cart with the following information

ecommerce consists of:

currency

Currency code

transaction_id

Order number

value

Shopping cart total (if available)

items

A list (Array) of product details

item_id

Specific Item ID (if available)

item_name

Specific item name

price

Item price

quantity

Item quantity

4. Data Layer Event – purchase_GA4 (Variable)

This event is triggered when a customer has made a purchase.

Datalayer Event: purchase_GA4

ecommerce consists of:

currency

Currency code

transaction_id

Order number

value

Shopping cart total (if available)

items

A list (Array) of product details

item_id

Specific Item ID (if available)

item_name

Specific item name

price

Item price

quantity

Item quantity

Did this answer your question?