Purchase
The Google Tag Manager (GTM) "Purchase" event is triggered when a user completes an order on the website. This action triggers a predefined event within GTM, which can be used for tracking purposes in Google Analytics or other marketing and analytics tools.
dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: "0940d5a2fd2bc10e265b7d62b3674503",
affiliation: 'The Athletic Foot GR',
value: 87.99,
tax: 17.03,
shipping: 1,
currency: 'EUR',
items: [
{
item_id: "746717-15478",
item_name: "Gazelle Γυναικεία Sneakers",
affiliation: 'The Athletes Foot GR',
currency: 'EUR',
discount: 22,
index: 0,
item_variant: "746717-15478.16132",
price: 87.99,
quantity: 1
}
]
}
});