Enhanced ecommerce

104 views
Skip to first unread message

Barbaros Tombaz

unread,
Oct 9, 2015, 1:17:19 PM10/9/15
to google-analytics-analyticsjs

Dear friends,


I have implemented the below functionality for tracking list impressions, but also there needs to
be another setting in Google Tag Manager interface to collect that data, as i understood.

In the interface, there are 2 parts

I can not set these, there is no setting like basic settings url path, and firing rule

There is fire on trigger and fields to set part, but i'm confused on how to set those,

Do you know any tutorial , i wrote the code, hard part, but setting in tag manager is hard to do.

There is fire on part, and says no triggers selected, this tag will not fire.


Basic Settings - Document Path: {{url path}}
Firing Rule: {{event}} equals gtm.dom



Measuring Product Impressions

  • Ecommerce Measurement: impressions
  • Accepts Data: array of impressionFieldObjects

Measure product impressions by using the impression action and one or more impressionFieldObjects. The following example assumes details about the products displayed on a page are known at the time the page loads:

<script>
// Measures product impressions and also tracks a standard
// pageview for the tag configuration.
// Product impressions are sent by pushing an impressions object
// containing one or more impressionFieldObjects.
dataLayer
.push({
 
'ecommerce': {
   
'currencyCode': 'EUR',                       // Local currency is optional.
   
'impressions': [
     
{
       
'name': 'Triblend Android T-Shirt',       // Name or ID is required.
       
'id': '12345',
       
'price': '15.25',
       
'brand': 'Google',
       
'category': 'Apparel',
       
'variant': 'Gray',
       
'list': 'Search Results',
       
'position': 1
     
},
     
{
       
'name': 'Donut Friday Scented T-Shirt',
       
'id': '67890',
       
'price': '33.75',
       
'brand': 'Google',
       
'category': 'Apparel',
       
'variant': 'Black',
       
'list': 'Search Results',
       
'position': 2
     
}]
 
}
});
</script>

See the Tag Configuration for this Example

Tag type : Universal Analytics
Track type : Pageview
Enable Enhanced Ecommerce Features: true
Use Data Layer: true
Basic Settings - Document Path: {{url path}}
Firing Rule: {{event}} equals gtm.dom

Reply all
Reply to author
Forward
0 new messages