The transaction object is a description of the order served on the page using the required Google ecommerce schema.
The transaction object will be output by default when an order is completed. If Google Tag Manager users want to write their own transaction object using a custom HTML tag, they can disable the output of the transaction object using the Disable Google Tag Manager Transaction attribute on the Content Management - Site|Applications page for the site. Set the 'Value' to 1.
Attribute |
Description |
Type |
Full dataLayer Variable Macro Path |
Type |
transactionAffiliation |
affiliation from registry or site attribute |
string |
transactionAffiliation |
string |
transactionCity |
Order Customer Address City |
string |
transactionCity |
string |
transactionCountry |
Order Customer Address Country |
string |
transactionCountry |
string |
transactionId |
Order Number |
string |
transactionId |
string |
transactionShipping |
Order Total Delivery Charges |
number |
transactionShipping |
number |
transactionState |
Order Customer Address State |
string |
transactionState |
string |
transactionTax |
order_total_charge2 + order_total_charge1 |
number |
transactionTax |
number |
transactionTotal |
Order Grand Total |
number |
transactionTotal |
number |
transactionProducts are an array of products on the order. Each product type is grouped and reported differently in the array. Refer to the tables below for a description of each attribute per product type.
One row in the array for each unique event name, price type and price zone grouping.
Attribute |
Description |
Type |
Full dataLayer Variable Macro Path |
category |
series_name & " Admission" |
string |
transactionProducts[index].category |
name |
event short description & " Admission" |
string |
transactionProducts[index].name |
price |
admission amount |
number |
transactionProducts[index].price |
quantity |
count of admissions for grouping |
number |
transactionProducts[index].quantity |
sku |
eventName & " Admission " & price type & " - " & price zone |
string |
transactionProducts[index].sku |
One row in the array for each distinct bundle instance
Attribute |
Description |
Type |
Full dataLayer Variable Macro Path |
category |
bundle group |
string |
transactionProducts[index].category |
name |
bundle description |
string |
transactionProducts[index].name |
price |
bundle amount |
number |
transactionProducts[index].price |
quantity |
effectively always 1 |
number |
transactionProducts[index].quantity |
sku |
bundle name |
string |
transactionProducts[index].sku |
One row in the array for each distinct miscellaneous name/option.
Attribute |
Description |
Type |
Full dataLayer Variable Macro Path |
category |
miscellaneous item category |
string |
transactionProducts[index].category |
name |
miscellaneous item description |
string |
transactionProducts[index].name |
price |
SUM for grouping |
number |
transactionProducts[index].price |
quantity |
count of grouping |
number |
transactionProducts[index].quantity |
sku |
miscellaneous item name |
string |
transactionProducts[index].sku |
One row in the array for each gift on the order.
Attribute |
Description |
Type |
Full dataLayer Variable Macro Path |
category |
fund |
string |
transactionProducts[index].category |
name |
appeal name |
string |
transactionProducts[index].name |
price |
pledge amount |
number |
transactionProducts[index].price |
quantity |
1 |
number |
transactionProducts[index].quantity |
sku |
gift name |
string |
transactionProducts[index].sku |
One row in the array for each stored value item on the order.
Attribute |
Description |
Type |
Full dataLayer Variable Macro Path |
category |
stored value item type |
string |
transactionProducts[index].category |
name |
stored value item description |
string |
transactionProducts[index].name |
price |
stored value item amount |
number |
transactionProducts[index].price |
quantity |
1 |
number |
transactionProducts[index].quantity |
sku |
stored value item name |
string |
transactionProducts[index].sku |