-
Tracking with Google Analytics 4 (GA4) and Google Tag Manager (GTM) happens via the
dataLayer
object, which can be accessed by any JavaScript running on the page. -
There is a difference in formatting between events meant for GA4 and events meant for GTM, although both can be accessed via data layer variables in Google Tag Manager.
-
Each event can be turned on or off on demand by our support staff, but GA4 events do require the Convious Google Analytics 4 integration to be active on your website. Here is our Convious guide to enable the Google Analytics 4 integration.
Google Analytics 4 data layer events
Below is an overview of events that our Checkout can track to Google Analytics 4.
In order to access the parameters in these events via Google Tag Manager data layer variables, the field names should be prefixed with eventModel.
, e.g. eventModel.item_list_id
.
page_view
Tracked when the user visits a page inside the Checkout widget. No parameters are included in the dataLayer
for this event, but Google Analytics 4 does collect things like page title and url for it.
view_item_list
Tracked when the user views a list of products.
Parameters
Name |
Type |
Example value |
Description |
item_list_id |
string |
|
The ID of the list in which the item was presented to the user |
item_list_name |
string |
|
The name of the list in which the item was presented to the user |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
items |
Array<item> |
|
The products that were viewed |
add_to_cart
Tracked when the user adds products to their cart.
Parameters
Name |
Type |
Example value |
Description |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
items |
Array<item> |
|
The products that were added to the cart |
begin_checkout
Tracked when the user reaches the cart review screen
Parameters
Name |
Type |
Example value |
Description |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
items |
Array<item> |
|
The items that the user had in their cart when they reached the cart review screen |
view_cart
Tracked when the user reaches the cart review screen
Parameters
Name |
Type |
Example value |
Description |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
items |
Array<item> |
|
The items that the user had in their cart when they reached the cart review screen |
view_item
Tracked when the user views an upsell item on the cart review page.
Parameters
Name |
Type |
Example value |
Description |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
items |
Array<item> |
|
The items that were viewed |
purchase
Tracked when the user completes a purchase.
Parameters
Name |
Type |
Example value |
Description |
transaction_id |
string |
|
The unique identifier of the order |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
value |
number |
|
The total value of the order |
coupon |
string |
|
The coupon codes that were used, separated by a pipe character |
items |
Array<item> |
|
The products that were purchased |
item parameters
The following parameters are tracked for each item in the items Array when available
Name |
Type |
Example value |
Description |
item_id |
string |
|
The ID of the product |
item_name |
string |
|
The name of the product |
price |
number |
|
The price of the product |
quantity |
number |
|
The number of products that were added to the cart or purchased |
Google Tag Manager data layer events
The Google Tag Manager tracking is considered a legacy feature. It is highly recommended to use Google Analytics 4 events instead.
Below is an overview of events that our Checkout can track to Google Tag Manager.
convious-pageview
Tracked when the user views a page inside the Checkout widget.
Parameters
Name |
Type |
Example value |
Description |
category |
string |
|
The event category |
action |
string |
|
The event action, always |
label |
string |
|
The event label, always |
page |
string |
|
The page path |
title |
string |
|
The page title |
convious-order
Tracked when the visitor completes their purchase.
Parameters
Name |
Type |
Example value |
Description |
|
string |
|
The user's email address |
transactionId |
string |
|
The internal order ID |
transactionAffiliation |
string |
|
Affiliation of the order, always |
transactionTotal |
string |
|
Total order value |
transactionShipping |
number |
|
Shipping cost of the order, always |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
transactionProducts |
Array<transactionProduct> |
|
The purchased products |
transactionProduct parameters
Name |
Type |
Example value |
Description |
sku |
string |
|
Product SKU, generated from a convious prefix and internal product name |
name |
string |
|
Product name with a convious prefix |
category |
string |
|
The product's category, generated from the article type and pricing type |
price |
string |
|
The price of the product as a string |
quantity |
number |
|
The number of products purchased |
convious-order-v2
An updated version of convious-order, with somewhat more useful data.
Parameters
Name |
Type |
Example value |
Description |
|
string |
|
The user's email address |
transactionId |
string |
|
The order number as displayed in the Control Panel |
transactionAffiliation |
string |
|
Affiliation of the order, always |
transactionTotal |
string |
|
Total order value |
transactionShipping |
number |
|
Shipping cost of the order, always |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
transactionProducts |
Array<transactionProduct> |
|
The purchased products |
transactionProduct parameters
Name |
Type |
Example value |
Description |
sku |
string |
|
Product ID |
name |
string |
|
Product name |
category |
string |
|
The product's category, generated from the article type and pricing type |
price |
string |
|
The price of the product as a string |
quantity |
number |
|
The number of products purchased |
purchase
Tracked when the visitor completes their purchase.
Parameters
Name |
Type |
Example value |
Description |
ecommerce |
object |
|
The ecommerce object, see below |
Ecommerce parameters
Name |
Type |
Example value |
Description |
transaction_id |
string |
|
The internal order ID |
currency |
string |
|
Currency of the items associated with the order, in 3-letter ISO 4217 format |
value |
number |
|
Affiliation of the order, always |
coupon |
string |
|
The coupon used during the purchase |
user_data |
object |
|
An object containing the user's |
x-fb-event_id |
string |
|
An event ID used for Facebook tracking, generated by a prefix and the internal order ID |
items |
Array<item> |
|
The purchased products |
item parameters
Name |
Type |
Example value |
Description |
item_id |
string |
|
Product ID, generated from a convious prefix and internal product name |
item_name |
string |
|
Product name with a convious prefix |
item_category |
string |
|
The product's category, generated from the article type and pricing type |
price |
string |
|
The price of the product as a string |
quantity |
number |
|
The number of products that were added to the cart or purchased |