Arbonne - Ecommerce Tracking Implementation v5
Arbonne - Ecommerce Tracking Implementation v5
Implementation
August 2024
All dataLayers related to ecommerce for Google Analytics Universal and gtags associated with
ecommerce found on the site throughout the flow must be removed to avoid duplication of the
events we will implement now.
Google Documentation: use only as a reference; the codes to be implemented are those described in
the document.
https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtag&hl=es-
419
https://developers.google.com/analytics/devguides/collection/ga4/reference/events?sjid=15716125561
40489916-SA&client_type=gtag&hl=es-419#view_item
view_item
<script>
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'view_item',
ecommerce: {
currency: '%currency%', // Replace with selected currency
value: %value%, // (price * quantity)
items: [{
item_name: '%item_name%', // Replace with product name
item_id: '%item_id%', // Replace with product ID
price: %price%, // Replace with product price
item_brand: '%item_brand%', // Replace with product brand
item_category: '%item_category%', // Replace with product category
item_category2: '%item_category2', // Replace with product subcategory
item_category3: '%item_category3', // Replace with product subcategory
item_variant: '%item_variant%', // Replace with product variant
quantity: %quantity%, // Replace with quantity of products
discount: %discount%, // Replace with the discount of the product
isASVPProduct: '%true || false%', // Replace with the correct category
}]
}
});
</script>
add_to_cart
<script>
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'add_to_cart',
ecommerce: {
currency: '%currency%', // Replace with selected currency
value: %value%, // (price * quantity)
items: [{
item_name: '%item_name%', // Replace with product name
item_id: '%item_id%', // Replace with product ID
price: %price%, // Replace with product price
item_brand: '%item_brand%', // Replace with product brand
item_category: '%item_category%', // Replace with product category
item_category2: '%item_category2', // Replace with product subcategory
item_category3: '%item_category3', // Replace with product subcategory
item_variant: '%item_variant%', // Replace with product variant
quantity: %quantity%, // Replace with quantity of products
discount: %discount%, // Replace with the discount of the product
isASVPProduct: '%true || false%', // Replace with the correct category
isReplenishMeProduct: '%true || false%', // Replace with the correct category
frequency: 'false || number of days', // Replace with the correct frequency
}]
}
});
</script>
view_cart
<script>
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'view_cart',
ecommerce: {
currency: '%currency%', // Replace with selected currency
value: %value%, // (price * quantity)
items: [{
item_name: '%item_name%', // Replace with product name
item_id: '%item_id%', // Replace with product ID
price: %price%, // Replace with product price
item_brand: '%item_brand%', // Replace with product brand
item_category: '%item_category%', // Replace with product category
item_category2: '%item_category2', // Replace with product subcategory
item_category3: '%item_category3', // Replace with product subcategory
item_variant: '%item_variant%', // Replace with product variant
quantity: %quantity%, // Replace with quantity of products
discount: %discount%, // Replace with the discount of the product
isASVPProduct: '%true || false%', // Replace with the correct category
isReplenishMeProduct: '%true || false%', // Replace with the correct category
frequency: 'false || number of days', // Replace with the correct frequency
}]
}
});
</script>
remove_from_cart
<script>
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'remove_from_cart',
ecommerce: {
currency: '%currency%', // Replace with selected currency
value: %value%, // (price * quantity)
items: [{
item_name: '%item_name%', // Replace with product name
item_id: '%item_id%', // Replace with product ID
price: %price%, // Replace with product price
item_brand: '%item_brand%', // Replace with product brand
item_category: '%item_category%', // Replace with product category
item_category2: '%item_category2', // Replace with product subcategory
item_category3: '%item_category3', // Replace with product subcategory
item_variant: '%item_variant%', // Replace with product variant
quantity: %quantity%, // Replace with quantity of products
discount: %discount%, // Replace with the discount of the product
isASVPProduct: '%true || false%', // Replace with the correct category
isReplenishMeProduct: '%true || false%', // Replace with the correct category
frequency: 'false || number of days', // Replace with the correct frequency
}]
}
});
</script>
begin_checkout
<script>
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'begin_checkout',
ecommerce: {
currency: '%currency%', // Replace with selected currency
value: %value%, // (price * quantity)
coupon: '%coupon%', // Replace with coupon applied
isCreatedFromRecommendedCart: '%true || false%', // Replace with the correct
option
items: [{
item_name: '%item_name%', // Replace with product name
item_id: '%item_id%', // Replace with product ID
price: %price%, // Replace with product price
item_brand: '%item_brand%', // Replace with product brand
item_category: '%item_category%', // Replace with product category
item_category2: '%item_category2', // Replace with product subcategory
item_category3: '%item_category3', // Replace with product subcategory
item_variant: '%item_variant%', // Replace with product variant
quantity: %quantity%, // Replace with quantity of products
discount: %discount%, // Replace with the discount of the product
isASVPProduct: '%true || false%', // Replace with the correct category
isReplenishMeProduct: '%true || false%', // Replace with the correct category
frequency: 'false || number of days', // Replace with the correct frequency
}]
}
});
</script>
purchase
<script>
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: 'purchase',
ecommerce: {
currency: '%currency%', // Replace with selected currency
value: %value%, // (price * quantity)
coupon: '%coupon%', // Replace with coupon applied
transaction_id: %'transaction_id'%, // Replace with transaction id
tax: %tax%, // Replace with tax
shipping: %shipping%, // Replace with shipping cost
payment_type: '%payment_type%', // replace with payment method
shipping_tier: 'shipping_tier', // replace with shipping method
split_payment: '%true || false%', // Replace with the correct payment type
isCreatedFromRecommendedCart: '%true || false%', // Replace with the correct
option
items: [{
item_name: '%item_name%', // Replace with product name
item_id: '%item_id%', // Replace with product ID
price: %price%, // Replace with product price
item_brand: '%item_brand%', // Replace with product brand
item_category: '%item_category%', // Replace with product category
item_category2: '%item_category2', // Replace with product subcategory
item_category3: '%item_category3', // Replace with product subcategory
item_variant: '%item_variant%', // Replace with product variant
quantity: %quantity%, // Replace with quantity of products
discount: %discount%, // Replace with the discount of the product
isASVPProduct: '%true || false%', // Replace with the correct category
isReplenishMeProduct: '%true || false%', // Replace with the correct category
frequency: 'false || number of days', // Replace with the correct frequency
}]
}
});
</script>