SlideShare uma empresa Scribd logo
1 de 27
Baixar para ler offline
INTERNAL: Google Confidential and Proprietary
Enhanced Ecommerce Tracking
Abraham, E. Demas
Enhanced Ecommerce - Web Tracking (analytics.js)
The enhanced ecommerce plug-in for analytics.js enables the measurement
of user interactions with products on ecommerce websites across the user's
shopping experience, including: product impressions, product clicks,
viewing product details, adding a product to a shopping cart, initiating
the checkout process, transactions, and refunds.
Enhanced Ecommerce - Web Tracking (analytics.js)
Data Types and Actions
There are multiple types of ecommerce data you can send using analytics.js: impression data,
product data, promotion data, and action data.
Enhanced Ecommerce - Web Tracking (analytics.js)
Data Types and Actions - Impression Data
VALUE TYPE REQUIRED DESCRIPTION
id String Yes* The product ID or SKU (e.g. P67890). *Either this field or name must be set.
name String Yes* The name of the product (e.g. Android T-Shirt). *Either this field or id must be set.
list String No The list or collection to which the product belongs (e.g. Search Results)
brand String No The brand associated with the product (e.g. Google).
category String No The category to which the product belongs (e.g. Apparel). Use / as a delimiter to specify
up to 5-levels of hierarchy (e.g. Apparel/Mens/T-Shirts).
variant String No The variant of the product (e.g. Black).
position Number No The product's position in a list or collection (e.g. 2).
price Currency No The price of a product (e.g. 29.20).
Represents information about a product that has been viewed. It is referred to as an impressionFieldObject
and contains the following values: E.g. Search Results
Enhanced Ecommerce - Web Tracking (analytics.js)
Data Types and Actions - Product Data
Product data represents individual products that were viewed, added to the shopping cart, etc. It is referred to
as a productFieldObject and contains the following values:
VALUE TYPE REQUIRED DESCRIPTION
id String Yes* The product ID or SKU (e.g. P67890). *Either this field or name must be set.
name String Yes* The name of the product (e.g. Android T-Shirt). *Either this field or id must be set.
brand String No The brand associated with the product (e.g. Google).
category String No The category to which the product belongs (e.g. Apparel). Use / as a delimiter to specify up to 5-levels of
hierarchy (e.g. Apparel/Mens/T-Shirts).
variant String No The variant of the product (e.g. Black).
price Currency No The price of a product (e.g. 29.20).
quantity Number No The quantity of a product (e.g. 2).
coupon String No The coupon code associated with a product (e.g. SUMMER_SALE13).
position Number No The product's position in a list or collection (e.g. 2).
Enhanced Ecommerce - Web Tracking (analytics.js)
Data Types and Actions - Promotion Data
Represents information about a promotion that has been viewed. It is referred to a promoFieldObject and contains
the following values:
VALUE TYPE REQUIRED DESCRIPTION
id String Yes* The promotion ID (e.g. PROMO_1234). *Either this field or name must be set.
name String Yes* The name of the promotion (e.g. Summer Sale). *Either this field or id must be set.
creative String No The creative associated with the promotion (e.g. summer_banner2).
position String No The position of the creative (e.g. banner_slot_1).
Enhanced Ecommerce - Web Tracking (analytics.js)
Data Types and Actions - Action Data
Represents information about an ecommerce related action that has taken place. It is referred to as an
actionFieldObject and contains the following values:
VALUE TYPE REQUIRED DESCRIPTION
id String Yes* The transaction ID (e.g. T1234). *Required if the action type is purchase or refund.
affiliation String No The store or affiliation from which this transaction occurred (e.g. Google Store).
revenue Currency No Specifies the total revenue or grand total associated with the transaction (e.g. 11.99). This value may include
shipping, tax costs, or other adjustments to total revenue that you want to include as part of your revenue
calculations. Note: if revenue is not set, its value will be automatically calculated using the product quantity and
price fields of all products in the same hit.
Enhanced Ecommerce - Web Tracking (analytics.js)
Data Types and Actions - Action Data
tax Currency No The total tax associated with the transaction.
shipping Currency No The shipping cost associated with the transaction.
coupon String No The transaction coupon redeemed with the transaction.
list String No The list that the associated products belong to. Optional on click or detail actions.
step Number No A number representing a step in the checkout process. Optional on checkout actions.
option String No Additional field for checkout and checkout_option actions that can describe option information on the checkout page, like
selected payment method.
Enhanced Ecommerce - Web Tracking (analytics.js)
Product and Promotion Actions
Did you notice? Something missing?
Actions specify how to interpret product and promotion data that you send to
Google Analytics
Impression Actions? No need! It’s an impression, so make a good first
impression.
Enhanced Ecommerce - Web Tracking (analytics.js)
ACTION DESCRIPTION
click A click on a product or product link for one or more products.
detail A view of product details.
add Adding one or more products to a shopping cart.
remove Remove one or more products from a shopping cart.
checkout Initiating the checkout process for one or more products.
checkout_option Sending the option value for a given checkout step.
purchase The sale of one or more products.
refund The refund of one or more products.
promo_click A click on an internal promotion.
Below are the various actions that can be performed on product and promotion data:
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Product Impression
In this example, a user first views the product in a list of search results. To measure this
product impression, use the ec:addImpression command and provide the product
details in an impressionFieldObject:
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Product Impression
ga('create', 'UA-XXXXX-Y');
ga('require', 'ec'); // Load enhanced ecommerce plugin
ga('ec:addImpression', {
'id': 'P12345', // Product details are provided in an impressionFieldObject.
'name': 'Android Warhol T-Shirt',
'category': 'Apparel/T-Shirts',
'brand': 'Google',
'variant': 'black',
'list': 'Search Results',
'position': 1 // 'position' indicates the product position in the list.
});
ga('ec:addImpression', {
'id': 'P67890',
'name': 'YouTube Organic T-Shirt',
'type': 'view',
'category': 'Apparel/T-Shirts',
'brand': 'YouTube',
'variant': 'gray',
'list': 'Search Results',
'position': 2
});
ga('send', 'pageview');
}
addImpression:
This is a result
set of multiple
products,
therefore should
be in a for loop
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Product Click
Next, a user expresses interest in this particular product by clicking on the product listing
to view more details.
To measure that product click, use ec:addProduct and ec:setAction
“
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Product Click
// Called when a link to a product is clicked.
function onProductClick() {
ga('ec:addProduct', {
'id': 'P12345',
'name': 'Android Warhol T-Shirt',
'category': 'Apparel',
'brand': 'Google',
'variant': 'black',
'position': 1
});
ga('ec:setAction', 'click', {list: 'Search Results'});
// Send click with an event, then send user to product page.
ga('send', 'event', 'UX', 'click', 'Results', {
hitCallback: function() {
document.location = '/product_details?id=P12345';
}
});
}
The product link could then be
implemented like this:
<a href="/next-page.html"
onclick="onProductClick();
return !ga.loaded;">
T-Shirt
</a>
”
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Product Details View
After clicking on the product listing, a user views the product details page.
To measure this product details view, use ec:addProduct and ec:setAction to specify
a detail action:
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Product Details View
ga('create', 'UA-XXXXX-Y');
ga('require', 'ec');
ga('ec:addProduct', {
'id': 'P12345',
'name': 'Android Warhol T-Shirt',
'category': 'Apparel',
'brand': 'Google',
'variant': 'black'
});
ga('ec:setAction', 'detail');
ga('send', 'pageview'); // Send product details view with the initial pageview.
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring an Addition or Removal from Cart
The user expresses intent to buy the item by adding it to a shopping cart.
To measure the addition or removal of a product from a shopping cart, use ec:addProduct
and set the type add or remove:
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring an Addition or Removal from Cart
// Called when a product is added to a shopping cart.
function addToCart(product) {
ga('ec:addProduct', {
'id': product.id,
'name': product.name,
'category': product.category,
'brand': product.brand,
'variant': product.variant,
'price': product.price,
'quantity': product.qty
});
ga('ec:setAction', 'add'); // for removal use remove
ga('send', 'event', 'UX', 'click', 'add to cart'); // Send data using an event.
}
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring Checkout Process
Now the user is ready to begin the checkout process, which in this example includes two steps, each on separate
pages:
1. Add payment details (payment.html).
2. Add shipping details (shipping.html).
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring Checkout Process
First, make sure you’ve properly configured a checkout funnel from within Google analytics under ecommerce
settings.
Enhanced Ecommerce - Web Tracking (analytics.js)
ga('create', 'UA-XXXXX-Y');
ga('require', 'ec');
function checkout(cart) {
for(var i = 0; i < cart.length; i++) {
var product = cart[i];
ga('ec:addProduct', {
'id': product.id,
'name': product.name,
'category': product.category,
'brand': product.brand,
'variant': product.variant,
'price': product.price,
'quantity': product.qty
});
}
}
ga('ec:setAction','checkout', {
'step': 1, // A value of 1 indicates this action is first checkout step.
'option': 'Visa' // Used to specify additional info about a checkout stage, e.g. payment method.
});
ga('send', 'pageview'); // Pageview for payment.html
Implementation: Measuring Checkout Process: Step 1 - Payment
Enhanced Ecommerce - Web Tracking (analytics.js)
ga('create', 'UA-XXXXX-Y');
ga('require', 'ec');
function checkout(cart) {
for(var i = 0; i < cart.length; i++) {
var product = cart[i];
ga('ec:addProduct', {
'id': product.id,
'name': product.name,
'category': product.category,
'brand': product.brand,
'variant': product.variant,
'price': product.price,
'quantity': product.qty
});
}
}
ga('ec:setAction','checkout', {'step': 2});
ga('send', 'pageview'); // Pageview for shipping.html
Implementation: Measuring Checkout Process: Step 2 - Shipping
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring Checkout Process: Step 2 - Shipping - Post selection of shipping Information
In case we don’t have additional information about the shipping option selected when the initial pageview
is sent so this will be handled separately using the ec:setAction to indicate a checkout_option.
// Called when user has completed shipping options.
function onShippingComplete(stepNumber, shippingOption) {
ga('ec:setAction', 'checkout_option', {
'step': stepNumber,
'option': shippingOption
});
ga('send', 'event', 'Checkout', 'Option', {
hitCallback: function() {
// Advance to next page.
}
});
<a href="/next-page.html" onclick="onShippingComplete
(2, 'FedEx'); return !ga.loaded;">Continue</a>
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Transaction
Lastly, the user completes the checkout process and submits their purchase.
To measure the sale of one or more products, use ec:addProduct to add each product, then ec:setAction to specify a
purchase. Transaction level information like total revenue, tax, etc. can be specified via an actionFieldObject. For
example:
Enhanced Ecommerce - Web Tracking (analytics.js)
Implementation: Measuring a Transaction
ga('create', 'UA-XXXXX-Y');
ga('require', 'ec');
ga('set', '&cu', 'EUR'); // Optional: Set tracker currency to Euros
ga('ec:addProduct', {
'id': 'P12345',
'name': 'Android Warhol T-Shirt',
'category': 'Apparel',
'brand': 'Google',
'variant': 'black',
'price': '29.20',
'quantity': 1
});
// Transaction level information is provided via an actionFieldObject.
ga('ec:setAction', 'purchase', {
'id': 'T12345',
'affiliation': 'Google Store - Online',
'revenue': '37.39',
'tax': '2.85',
'shipping': '5.34',
'coupon': 'SUMMER2013' // User added a coupon at checkout.
});
ga('send', 'pageview'); // Send transaction data with initial pageview.
Read More
https://developers.google.
com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce

Mais conteúdo relacionado

Mais procurados

Periscopix presentation
Periscopix presentationPeriscopix presentation
Periscopix presentationJamieCluett
 
Magento 2 Reward Points
Magento 2 Reward PointsMagento 2 Reward Points
Magento 2 Reward PointsLandofcoder
 
Agile CRM - CRM and Marketing Automation for SaaS Companies
Agile CRM - CRM and Marketing Automation for SaaS CompaniesAgile CRM - CRM and Marketing Automation for SaaS Companies
Agile CRM - CRM and Marketing Automation for SaaS CompaniesAgile CRM
 
Reinvent your var business
Reinvent your var businessReinvent your var business
Reinvent your var businessShane Emerson
 
Key Insights From Funnels - Enhanced Ecommerce For Google Analytics
Key Insights From Funnels - Enhanced Ecommerce For Google AnalyticsKey Insights From Funnels - Enhanced Ecommerce For Google Analytics
Key Insights From Funnels - Enhanced Ecommerce For Google AnalyticsSimo Ahava
 
Retail Store Manager App for iPhone & iPad by Supernova Tech
Retail Store Manager App for iPhone & iPad by Supernova TechRetail Store Manager App for iPhone & iPad by Supernova Tech
Retail Store Manager App for iPhone & iPad by Supernova TechSuperNova Tech
 
Antonia Heise - eCommerce Day Perú Online [Live] Experience
Antonia Heise - eCommerce Day Perú Online [Live] ExperienceAntonia Heise - eCommerce Day Perú Online [Live] Experience
Antonia Heise - eCommerce Day Perú Online [Live] ExperienceeCommerce Institute
 
Online sales quoting &amp; proposal software
Online sales quoting &amp; proposal softwareOnline sales quoting &amp; proposal software
Online sales quoting &amp; proposal softwareSalesBabuCRM
 
Magento live official
Magento live officialMagento live official
Magento live officialScreen Pages
 
Inventory For Reseller - Inventory Management App in iPhone & iPad
Inventory For Reseller - Inventory Management App in iPhone & iPadInventory For Reseller - Inventory Management App in iPhone & iPad
Inventory For Reseller - Inventory Management App in iPhone & iPadSuperNova Tech
 

Mais procurados (12)

Periscopix presentation
Periscopix presentationPeriscopix presentation
Periscopix presentation
 
Magento 2 Reward Points
Magento 2 Reward PointsMagento 2 Reward Points
Magento 2 Reward Points
 
PHPro Pieter Caluwaerts
PHPro Pieter CaluwaertsPHPro Pieter Caluwaerts
PHPro Pieter Caluwaerts
 
Agile CRM - CRM and Marketing Automation for SaaS Companies
Agile CRM - CRM and Marketing Automation for SaaS CompaniesAgile CRM - CRM and Marketing Automation for SaaS Companies
Agile CRM - CRM and Marketing Automation for SaaS Companies
 
Sales booster
Sales booster Sales booster
Sales booster
 
Reinvent your var business
Reinvent your var businessReinvent your var business
Reinvent your var business
 
Key Insights From Funnels - Enhanced Ecommerce For Google Analytics
Key Insights From Funnels - Enhanced Ecommerce For Google AnalyticsKey Insights From Funnels - Enhanced Ecommerce For Google Analytics
Key Insights From Funnels - Enhanced Ecommerce For Google Analytics
 
Retail Store Manager App for iPhone & iPad by Supernova Tech
Retail Store Manager App for iPhone & iPad by Supernova TechRetail Store Manager App for iPhone & iPad by Supernova Tech
Retail Store Manager App for iPhone & iPad by Supernova Tech
 
Antonia Heise - eCommerce Day Perú Online [Live] Experience
Antonia Heise - eCommerce Day Perú Online [Live] ExperienceAntonia Heise - eCommerce Day Perú Online [Live] Experience
Antonia Heise - eCommerce Day Perú Online [Live] Experience
 
Online sales quoting &amp; proposal software
Online sales quoting &amp; proposal softwareOnline sales quoting &amp; proposal software
Online sales quoting &amp; proposal software
 
Magento live official
Magento live officialMagento live official
Magento live official
 
Inventory For Reseller - Inventory Management App in iPhone & iPad
Inventory For Reseller - Inventory Management App in iPhone & iPadInventory For Reseller - Inventory Management App in iPhone & iPad
Inventory For Reseller - Inventory Management App in iPhone & iPad
 

Destaque

Guía de Enhanced Ecommerce
Guía de Enhanced EcommerceGuía de Enhanced Ecommerce
Guía de Enhanced EcommerceNeo Consulting
 
Enhanced ecommerce by Robrecht De Nul, OMCollective
Enhanced ecommerce by Robrecht De Nul, OMCollective Enhanced ecommerce by Robrecht De Nul, OMCollective
Enhanced ecommerce by Robrecht De Nul, OMCollective Nathalie Vandermeersch
 
What about enhanced e-commerce?
What about enhanced e-commerce?What about enhanced e-commerce?
What about enhanced e-commerce?Humix
 
Marketing analytics & brand measurement - Ahmad Abdullah - Google
Marketing analytics & brand measurement - Ahmad Abdullah - GoogleMarketing analytics & brand measurement - Ahmad Abdullah - Google
Marketing analytics & brand measurement - Ahmad Abdullah - GoogleJigserv Digital
 
Jan Tichý - Enhanced Ecommerce
Jan Tichý - Enhanced EcommerceJan Tichý - Enhanced Ecommerce
Jan Tichý - Enhanced Ecommerceeshopvikend
 
Google Analytics Enhanced Ecommerce Reports - Superweek 2015
Google Analytics Enhanced Ecommerce Reports - Superweek 2015Google Analytics Enhanced Ecommerce Reports - Superweek 2015
Google Analytics Enhanced Ecommerce Reports - Superweek 2015Analytics Ninja LLC
 
Google Analytics: Best Practice For Ecommerce - Jon Hibbitt
Google Analytics: Best Practice For Ecommerce - Jon HibbittGoogle Analytics: Best Practice For Ecommerce - Jon Hibbitt
Google Analytics: Best Practice For Ecommerce - Jon HibbittSiteVisibility
 
Content Engagement with Google Analytics (Emerce Conversion 2015)
Content Engagement with Google Analytics (Emerce Conversion 2015)Content Engagement with Google Analytics (Emerce Conversion 2015)
Content Engagement with Google Analytics (Emerce Conversion 2015)Simo Ahava
 
Using Enhanced Ecommerce for Non-ecommerce @ MeasureCamp Cardiff
Using Enhanced Ecommerce for Non-ecommerce @ MeasureCamp CardiffUsing Enhanced Ecommerce for Non-ecommerce @ MeasureCamp Cardiff
Using Enhanced Ecommerce for Non-ecommerce @ MeasureCamp CardiffMeasureCamp Cardiff
 
Google Analytics: Enhanced Ecommerce Tracking
Google Analytics: Enhanced Ecommerce TrackingGoogle Analytics: Enhanced Ecommerce Tracking
Google Analytics: Enhanced Ecommerce Trackingluna-park GmbH
 
The History of F-commerce: How Facebook is changing online retail
The History of F-commerce: How Facebook is changing online retailThe History of F-commerce: How Facebook is changing online retail
The History of F-commerce: How Facebook is changing online retailSustainly
 
Enhanced Ecommerce Google Analytics Nordic Conference 2015
Enhanced Ecommerce Google Analytics Nordic Conference 2015Enhanced Ecommerce Google Analytics Nordic Conference 2015
Enhanced Ecommerce Google Analytics Nordic Conference 2015Magnus Hedin
 
Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016
Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016
Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016MJ Cachón Yáñez
 
Google Analytics Basics
Google Analytics BasicsGoogle Analytics Basics
Google Analytics BasicsAmish Keshwani
 

Destaque (15)

12121212
1212121212121212
12121212
 
Guía de Enhanced Ecommerce
Guía de Enhanced EcommerceGuía de Enhanced Ecommerce
Guía de Enhanced Ecommerce
 
Enhanced ecommerce by Robrecht De Nul, OMCollective
Enhanced ecommerce by Robrecht De Nul, OMCollective Enhanced ecommerce by Robrecht De Nul, OMCollective
Enhanced ecommerce by Robrecht De Nul, OMCollective
 
What about enhanced e-commerce?
What about enhanced e-commerce?What about enhanced e-commerce?
What about enhanced e-commerce?
 
Marketing analytics & brand measurement - Ahmad Abdullah - Google
Marketing analytics & brand measurement - Ahmad Abdullah - GoogleMarketing analytics & brand measurement - Ahmad Abdullah - Google
Marketing analytics & brand measurement - Ahmad Abdullah - Google
 
Jan Tichý - Enhanced Ecommerce
Jan Tichý - Enhanced EcommerceJan Tichý - Enhanced Ecommerce
Jan Tichý - Enhanced Ecommerce
 
Google Analytics Enhanced Ecommerce Reports - Superweek 2015
Google Analytics Enhanced Ecommerce Reports - Superweek 2015Google Analytics Enhanced Ecommerce Reports - Superweek 2015
Google Analytics Enhanced Ecommerce Reports - Superweek 2015
 
Google Analytics: Best Practice For Ecommerce - Jon Hibbitt
Google Analytics: Best Practice For Ecommerce - Jon HibbittGoogle Analytics: Best Practice For Ecommerce - Jon Hibbitt
Google Analytics: Best Practice For Ecommerce - Jon Hibbitt
 
Content Engagement with Google Analytics (Emerce Conversion 2015)
Content Engagement with Google Analytics (Emerce Conversion 2015)Content Engagement with Google Analytics (Emerce Conversion 2015)
Content Engagement with Google Analytics (Emerce Conversion 2015)
 
Using Enhanced Ecommerce for Non-ecommerce @ MeasureCamp Cardiff
Using Enhanced Ecommerce for Non-ecommerce @ MeasureCamp CardiffUsing Enhanced Ecommerce for Non-ecommerce @ MeasureCamp Cardiff
Using Enhanced Ecommerce for Non-ecommerce @ MeasureCamp Cardiff
 
Google Analytics: Enhanced Ecommerce Tracking
Google Analytics: Enhanced Ecommerce TrackingGoogle Analytics: Enhanced Ecommerce Tracking
Google Analytics: Enhanced Ecommerce Tracking
 
The History of F-commerce: How Facebook is changing online retail
The History of F-commerce: How Facebook is changing online retailThe History of F-commerce: How Facebook is changing online retail
The History of F-commerce: How Facebook is changing online retail
 
Enhanced Ecommerce Google Analytics Nordic Conference 2015
Enhanced Ecommerce Google Analytics Nordic Conference 2015Enhanced Ecommerce Google Analytics Nordic Conference 2015
Enhanced Ecommerce Google Analytics Nordic Conference 2015
 
Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016
Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016
Page Rank Interno + Screaming Frog + R en Measure Camp Madrid 2016
 
Google Analytics Basics
Google Analytics BasicsGoogle Analytics Basics
Google Analytics Basics
 

Semelhante a Enhanced ecommerce tracking

Monetate Implementation Cheat Sheet
Monetate Implementation Cheat SheetMonetate Implementation Cheat Sheet
Monetate Implementation Cheat SheetPhil Pearce
 
Quick Start Guide Full Analytics Implementation
Quick Start Guide   Full Analytics ImplementationQuick Start Guide   Full Analytics Implementation
Quick Start Guide Full Analytics ImplementationMatt Lillig
 
Track Report & Optimize Your Web Creations
Track Report & Optimize Your Web CreationsTrack Report & Optimize Your Web Creations
Track Report & Optimize Your Web CreationsEmpirical Path
 
E commerce, social and campaign tracking - web analytics fundamentals
E commerce, social and campaign tracking - web analytics fundamentalsE commerce, social and campaign tracking - web analytics fundamentals
E commerce, social and campaign tracking - web analytics fundamentalsSrikanth Dhondi
 
Grocery app aj
Grocery app ajGrocery app aj
Grocery app ajAmita Jain
 
Shopping Campaigns and AdWords API
Shopping Campaigns and AdWords APIShopping Campaigns and AdWords API
Shopping Campaigns and AdWords APImarcwan
 
Golden punchcard. Mariia Bocheva. Superweek 2018.
Golden punchcard. Mariia Bocheva. Superweek 2018.  Golden punchcard. Mariia Bocheva. Superweek 2018.
Golden punchcard. Mariia Bocheva. Superweek 2018. Mariia Bocheva
 
Conversion Tracking Tutorial
Conversion Tracking TutorialConversion Tracking Tutorial
Conversion Tracking TutorialNick ONeill
 
Ecommerce website with seo optimization
Ecommerce website with seo optimizationEcommerce website with seo optimization
Ecommerce website with seo optimizationKumar Narayan
 
Step By Step Analyzing Price Elasticit1.pdf
Step By Step Analyzing Price Elasticit1.pdfStep By Step Analyzing Price Elasticit1.pdf
Step By Step Analyzing Price Elasticit1.pdfRahmat Taufiq Sigit
 
ContentsPhase 1 Design Concepts2Project Description2Use.docx
ContentsPhase 1 Design Concepts2Project Description2Use.docxContentsPhase 1 Design Concepts2Project Description2Use.docx
ContentsPhase 1 Design Concepts2Project Description2Use.docxmaxinesmith73660
 
Learn Adobe analytics basics - Conversion variables
Learn Adobe analytics basics - Conversion variablesLearn Adobe analytics basics - Conversion variables
Learn Adobe analytics basics - Conversion variablesArunkumar Sundaram
 
SMX Munich 2018 — Advanced Google Shopping Reporting
SMX Munich 2018 — Advanced Google Shopping ReportingSMX Munich 2018 — Advanced Google Shopping Reporting
SMX Munich 2018 — Advanced Google Shopping ReportingSmarter Ecommerce GmbH
 
Programming the ExactTarget Marketing Cloud
Programming the ExactTarget Marketing CloudProgramming the ExactTarget Marketing Cloud
Programming the ExactTarget Marketing CloudSalesforce Developers
 
MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?
MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?
MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?Michaela Linhart
 
srcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docx
srcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docxsrcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docx
srcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docxrafbolet0
 

Semelhante a Enhanced ecommerce tracking (20)

13121313
1312131313121313
13121313
 
Monetate Implementation Cheat Sheet
Monetate Implementation Cheat SheetMonetate Implementation Cheat Sheet
Monetate Implementation Cheat Sheet
 
Quick Start Guide Full Analytics Implementation
Quick Start Guide   Full Analytics ImplementationQuick Start Guide   Full Analytics Implementation
Quick Start Guide Full Analytics Implementation
 
PLA - Dashboard
PLA - DashboardPLA - Dashboard
PLA - Dashboard
 
PLA dashboard
PLA dashboardPLA dashboard
PLA dashboard
 
Track Report & Optimize Your Web Creations
Track Report & Optimize Your Web CreationsTrack Report & Optimize Your Web Creations
Track Report & Optimize Your Web Creations
 
Vending-machine.pdf
Vending-machine.pdfVending-machine.pdf
Vending-machine.pdf
 
E commerce, social and campaign tracking - web analytics fundamentals
E commerce, social and campaign tracking - web analytics fundamentalsE commerce, social and campaign tracking - web analytics fundamentals
E commerce, social and campaign tracking - web analytics fundamentals
 
Grocery app aj
Grocery app ajGrocery app aj
Grocery app aj
 
Shopping Campaigns and AdWords API
Shopping Campaigns and AdWords APIShopping Campaigns and AdWords API
Shopping Campaigns and AdWords API
 
Golden punchcard. Mariia Bocheva. Superweek 2018.
Golden punchcard. Mariia Bocheva. Superweek 2018.  Golden punchcard. Mariia Bocheva. Superweek 2018.
Golden punchcard. Mariia Bocheva. Superweek 2018.
 
Conversion Tracking Tutorial
Conversion Tracking TutorialConversion Tracking Tutorial
Conversion Tracking Tutorial
 
Ecommerce website with seo optimization
Ecommerce website with seo optimizationEcommerce website with seo optimization
Ecommerce website with seo optimization
 
Step By Step Analyzing Price Elasticit1.pdf
Step By Step Analyzing Price Elasticit1.pdfStep By Step Analyzing Price Elasticit1.pdf
Step By Step Analyzing Price Elasticit1.pdf
 
ContentsPhase 1 Design Concepts2Project Description2Use.docx
ContentsPhase 1 Design Concepts2Project Description2Use.docxContentsPhase 1 Design Concepts2Project Description2Use.docx
ContentsPhase 1 Design Concepts2Project Description2Use.docx
 
Learn Adobe analytics basics - Conversion variables
Learn Adobe analytics basics - Conversion variablesLearn Adobe analytics basics - Conversion variables
Learn Adobe analytics basics - Conversion variables
 
SMX Munich 2018 — Advanced Google Shopping Reporting
SMX Munich 2018 — Advanced Google Shopping ReportingSMX Munich 2018 — Advanced Google Shopping Reporting
SMX Munich 2018 — Advanced Google Shopping Reporting
 
Programming the ExactTarget Marketing Cloud
Programming the ExactTarget Marketing CloudProgramming the ExactTarget Marketing Cloud
Programming the ExactTarget Marketing Cloud
 
MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?
MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?
MeasureCamp #10 - WTF are Related Products in Google Analytics Ecommerce?
 
srcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docx
srcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docxsrcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docx
srcCommissionCalculation.javasrcCommissionCalculation.javaimpo.docx
 

Mais de Etietop Demas

Mastering the command line for developers by Etietop Demas
Mastering the command line for developers by Etietop DemasMastering the command line for developers by Etietop Demas
Mastering the command line for developers by Etietop DemasEtietop Demas
 
Learn react by Etietop Demas
Learn react by Etietop DemasLearn react by Etietop Demas
Learn react by Etietop DemasEtietop Demas
 
Google digital marketing
Google digital marketing Google digital marketing
Google digital marketing Etietop Demas
 
Basics Digital Marketing
Basics Digital MarketingBasics Digital Marketing
Basics Digital MarketingEtietop Demas
 
Google website call conversion (WCC) tracking
Google website call conversion (WCC) tracking Google website call conversion (WCC) tracking
Google website call conversion (WCC) tracking Etietop Demas
 
Woocommerce google ecommerce tracking
Woocommerce  google ecommerce trackingWoocommerce  google ecommerce tracking
Woocommerce google ecommerce trackingEtietop Demas
 
5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magento5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magentoEtietop Demas
 

Mais de Etietop Demas (15)

Mastering the command line for developers by Etietop Demas
Mastering the command line for developers by Etietop DemasMastering the command line for developers by Etietop Demas
Mastering the command line for developers by Etietop Demas
 
Learn react by Etietop Demas
Learn react by Etietop DemasLearn react by Etietop Demas
Learn react by Etietop Demas
 
Google digital marketing
Google digital marketing Google digital marketing
Google digital marketing
 
Basics Digital Marketing
Basics Digital MarketingBasics Digital Marketing
Basics Digital Marketing
 
12121212
1212121212121212
12121212
 
12121212
1212121212121212
12121212
 
12121212
1212121212121212
12121212
 
12121212
1212121212121212
12121212
 
435323234
435323234435323234
435323234
 
12121212
1212121212121212
12121212
 
78787878
7878787878787878
78787878
 
1232232
12322321232232
1232232
 
Google website call conversion (WCC) tracking
Google website call conversion (WCC) tracking Google website call conversion (WCC) tracking
Google website call conversion (WCC) tracking
 
Woocommerce google ecommerce tracking
Woocommerce  google ecommerce trackingWoocommerce  google ecommerce tracking
Woocommerce google ecommerce tracking
 
5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magento5 easy steps dynamic remarketing magento
5 easy steps dynamic remarketing magento
 

Último

Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 

Último (20)

Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in  Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Jamuna Vihar Delhi reach out to us at 🔝9953056974🔝
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 

Enhanced ecommerce tracking

  • 1. INTERNAL: Google Confidential and Proprietary Enhanced Ecommerce Tracking Abraham, E. Demas
  • 2. Enhanced Ecommerce - Web Tracking (analytics.js) The enhanced ecommerce plug-in for analytics.js enables the measurement of user interactions with products on ecommerce websites across the user's shopping experience, including: product impressions, product clicks, viewing product details, adding a product to a shopping cart, initiating the checkout process, transactions, and refunds.
  • 3. Enhanced Ecommerce - Web Tracking (analytics.js) Data Types and Actions There are multiple types of ecommerce data you can send using analytics.js: impression data, product data, promotion data, and action data.
  • 4. Enhanced Ecommerce - Web Tracking (analytics.js) Data Types and Actions - Impression Data VALUE TYPE REQUIRED DESCRIPTION id String Yes* The product ID or SKU (e.g. P67890). *Either this field or name must be set. name String Yes* The name of the product (e.g. Android T-Shirt). *Either this field or id must be set. list String No The list or collection to which the product belongs (e.g. Search Results) brand String No The brand associated with the product (e.g. Google). category String No The category to which the product belongs (e.g. Apparel). Use / as a delimiter to specify up to 5-levels of hierarchy (e.g. Apparel/Mens/T-Shirts). variant String No The variant of the product (e.g. Black). position Number No The product's position in a list or collection (e.g. 2). price Currency No The price of a product (e.g. 29.20). Represents information about a product that has been viewed. It is referred to as an impressionFieldObject and contains the following values: E.g. Search Results
  • 5. Enhanced Ecommerce - Web Tracking (analytics.js) Data Types and Actions - Product Data Product data represents individual products that were viewed, added to the shopping cart, etc. It is referred to as a productFieldObject and contains the following values: VALUE TYPE REQUIRED DESCRIPTION id String Yes* The product ID or SKU (e.g. P67890). *Either this field or name must be set. name String Yes* The name of the product (e.g. Android T-Shirt). *Either this field or id must be set. brand String No The brand associated with the product (e.g. Google). category String No The category to which the product belongs (e.g. Apparel). Use / as a delimiter to specify up to 5-levels of hierarchy (e.g. Apparel/Mens/T-Shirts). variant String No The variant of the product (e.g. Black). price Currency No The price of a product (e.g. 29.20). quantity Number No The quantity of a product (e.g. 2). coupon String No The coupon code associated with a product (e.g. SUMMER_SALE13). position Number No The product's position in a list or collection (e.g. 2).
  • 6. Enhanced Ecommerce - Web Tracking (analytics.js) Data Types and Actions - Promotion Data Represents information about a promotion that has been viewed. It is referred to a promoFieldObject and contains the following values: VALUE TYPE REQUIRED DESCRIPTION id String Yes* The promotion ID (e.g. PROMO_1234). *Either this field or name must be set. name String Yes* The name of the promotion (e.g. Summer Sale). *Either this field or id must be set. creative String No The creative associated with the promotion (e.g. summer_banner2). position String No The position of the creative (e.g. banner_slot_1).
  • 7. Enhanced Ecommerce - Web Tracking (analytics.js) Data Types and Actions - Action Data Represents information about an ecommerce related action that has taken place. It is referred to as an actionFieldObject and contains the following values: VALUE TYPE REQUIRED DESCRIPTION id String Yes* The transaction ID (e.g. T1234). *Required if the action type is purchase or refund. affiliation String No The store or affiliation from which this transaction occurred (e.g. Google Store). revenue Currency No Specifies the total revenue or grand total associated with the transaction (e.g. 11.99). This value may include shipping, tax costs, or other adjustments to total revenue that you want to include as part of your revenue calculations. Note: if revenue is not set, its value will be automatically calculated using the product quantity and price fields of all products in the same hit.
  • 8. Enhanced Ecommerce - Web Tracking (analytics.js) Data Types and Actions - Action Data tax Currency No The total tax associated with the transaction. shipping Currency No The shipping cost associated with the transaction. coupon String No The transaction coupon redeemed with the transaction. list String No The list that the associated products belong to. Optional on click or detail actions. step Number No A number representing a step in the checkout process. Optional on checkout actions. option String No Additional field for checkout and checkout_option actions that can describe option information on the checkout page, like selected payment method.
  • 9. Enhanced Ecommerce - Web Tracking (analytics.js) Product and Promotion Actions Did you notice? Something missing? Actions specify how to interpret product and promotion data that you send to Google Analytics Impression Actions? No need! It’s an impression, so make a good first impression.
  • 10. Enhanced Ecommerce - Web Tracking (analytics.js) ACTION DESCRIPTION click A click on a product or product link for one or more products. detail A view of product details. add Adding one or more products to a shopping cart. remove Remove one or more products from a shopping cart. checkout Initiating the checkout process for one or more products. checkout_option Sending the option value for a given checkout step. purchase The sale of one or more products. refund The refund of one or more products. promo_click A click on an internal promotion. Below are the various actions that can be performed on product and promotion data:
  • 11. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation
  • 12. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Product Impression In this example, a user first views the product in a list of search results. To measure this product impression, use the ec:addImpression command and provide the product details in an impressionFieldObject:
  • 13. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Product Impression ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); // Load enhanced ecommerce plugin ga('ec:addImpression', { 'id': 'P12345', // Product details are provided in an impressionFieldObject. 'name': 'Android Warhol T-Shirt', 'category': 'Apparel/T-Shirts', 'brand': 'Google', 'variant': 'black', 'list': 'Search Results', 'position': 1 // 'position' indicates the product position in the list. }); ga('ec:addImpression', { 'id': 'P67890', 'name': 'YouTube Organic T-Shirt', 'type': 'view', 'category': 'Apparel/T-Shirts', 'brand': 'YouTube', 'variant': 'gray', 'list': 'Search Results', 'position': 2 }); ga('send', 'pageview'); } addImpression: This is a result set of multiple products, therefore should be in a for loop
  • 14. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Product Click Next, a user expresses interest in this particular product by clicking on the product listing to view more details. To measure that product click, use ec:addProduct and ec:setAction
  • 15. “ Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Product Click // Called when a link to a product is clicked. function onProductClick() { ga('ec:addProduct', { 'id': 'P12345', 'name': 'Android Warhol T-Shirt', 'category': 'Apparel', 'brand': 'Google', 'variant': 'black', 'position': 1 }); ga('ec:setAction', 'click', {list: 'Search Results'}); // Send click with an event, then send user to product page. ga('send', 'event', 'UX', 'click', 'Results', { hitCallback: function() { document.location = '/product_details?id=P12345'; } }); } The product link could then be implemented like this: <a href="/next-page.html" onclick="onProductClick(); return !ga.loaded;"> T-Shirt </a> ”
  • 16. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Product Details View After clicking on the product listing, a user views the product details page. To measure this product details view, use ec:addProduct and ec:setAction to specify a detail action:
  • 17. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Product Details View ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); ga('ec:addProduct', { 'id': 'P12345', 'name': 'Android Warhol T-Shirt', 'category': 'Apparel', 'brand': 'Google', 'variant': 'black' }); ga('ec:setAction', 'detail'); ga('send', 'pageview'); // Send product details view with the initial pageview.
  • 18. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring an Addition or Removal from Cart The user expresses intent to buy the item by adding it to a shopping cart. To measure the addition or removal of a product from a shopping cart, use ec:addProduct and set the type add or remove:
  • 19. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring an Addition or Removal from Cart // Called when a product is added to a shopping cart. function addToCart(product) { ga('ec:addProduct', { 'id': product.id, 'name': product.name, 'category': product.category, 'brand': product.brand, 'variant': product.variant, 'price': product.price, 'quantity': product.qty }); ga('ec:setAction', 'add'); // for removal use remove ga('send', 'event', 'UX', 'click', 'add to cart'); // Send data using an event. }
  • 20. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring Checkout Process Now the user is ready to begin the checkout process, which in this example includes two steps, each on separate pages: 1. Add payment details (payment.html). 2. Add shipping details (shipping.html).
  • 21. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring Checkout Process First, make sure you’ve properly configured a checkout funnel from within Google analytics under ecommerce settings.
  • 22. Enhanced Ecommerce - Web Tracking (analytics.js) ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); function checkout(cart) { for(var i = 0; i < cart.length; i++) { var product = cart[i]; ga('ec:addProduct', { 'id': product.id, 'name': product.name, 'category': product.category, 'brand': product.brand, 'variant': product.variant, 'price': product.price, 'quantity': product.qty }); } } ga('ec:setAction','checkout', { 'step': 1, // A value of 1 indicates this action is first checkout step. 'option': 'Visa' // Used to specify additional info about a checkout stage, e.g. payment method. }); ga('send', 'pageview'); // Pageview for payment.html Implementation: Measuring Checkout Process: Step 1 - Payment
  • 23. Enhanced Ecommerce - Web Tracking (analytics.js) ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); function checkout(cart) { for(var i = 0; i < cart.length; i++) { var product = cart[i]; ga('ec:addProduct', { 'id': product.id, 'name': product.name, 'category': product.category, 'brand': product.brand, 'variant': product.variant, 'price': product.price, 'quantity': product.qty }); } } ga('ec:setAction','checkout', {'step': 2}); ga('send', 'pageview'); // Pageview for shipping.html Implementation: Measuring Checkout Process: Step 2 - Shipping
  • 24. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring Checkout Process: Step 2 - Shipping - Post selection of shipping Information In case we don’t have additional information about the shipping option selected when the initial pageview is sent so this will be handled separately using the ec:setAction to indicate a checkout_option. // Called when user has completed shipping options. function onShippingComplete(stepNumber, shippingOption) { ga('ec:setAction', 'checkout_option', { 'step': stepNumber, 'option': shippingOption }); ga('send', 'event', 'Checkout', 'Option', { hitCallback: function() { // Advance to next page. } }); <a href="/next-page.html" onclick="onShippingComplete (2, 'FedEx'); return !ga.loaded;">Continue</a>
  • 25. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Transaction Lastly, the user completes the checkout process and submits their purchase. To measure the sale of one or more products, use ec:addProduct to add each product, then ec:setAction to specify a purchase. Transaction level information like total revenue, tax, etc. can be specified via an actionFieldObject. For example:
  • 26. Enhanced Ecommerce - Web Tracking (analytics.js) Implementation: Measuring a Transaction ga('create', 'UA-XXXXX-Y'); ga('require', 'ec'); ga('set', '&cu', 'EUR'); // Optional: Set tracker currency to Euros ga('ec:addProduct', { 'id': 'P12345', 'name': 'Android Warhol T-Shirt', 'category': 'Apparel', 'brand': 'Google', 'variant': 'black', 'price': '29.20', 'quantity': 1 }); // Transaction level information is provided via an actionFieldObject. ga('ec:setAction', 'purchase', { 'id': 'T12345', 'affiliation': 'Google Store - Online', 'revenue': '37.39', 'tax': '2.85', 'shipping': '5.34', 'coupon': 'SUMMER2013' // User added a coupon at checkout. }); ga('send', 'pageview'); // Send transaction data with initial pageview.