0% found this document useful (0 votes)
13 views8 pages

Arbonne - Ecommerce Tracking Implementation v2

The document outlines the implementation of ecommerce tracking for Arbonne, detailing the specific variables and scripts required for various events such as 'view_item', 'add_to_cart', 'view_cart', 'remove_from_cart', 'begin_checkout', and 'purchase'. It emphasizes the need to remove existing dataLayers related to ecommerce to prevent event duplication. The document provides placeholders for dynamic values that need to be replaced based on user selections.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views8 pages

Arbonne - Ecommerce Tracking Implementation v2

The document outlines the implementation of ecommerce tracking for Arbonne, detailing the specific variables and scripts required for various events such as 'view_item', 'add_to_cart', 'view_cart', 'remove_from_cart', 'begin_checkout', and 'purchase'. It emphasizes the need to remove existing dataLayers related to ecommerce to prevent event duplication. The document provides placeholders for dynamic values that need to be replaced based on user selections.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Arbonne - Ecommerce Tracking

Implementation
July 2024

About the Document


The following document describes the variables to be used in each event. The script must be copied exactly
as indicated in each step and, if applicable, replaced with dynamic values depending on the user's selection.

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
}]
}
});
</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
}]
}
});
</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
}]
}
});
</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
}]
}
});
</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
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
}]
}
});
</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
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
}]
}
});
</script>

You might also like