AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
3.9K members online now
3.9K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Adding dimension for tracking transaction info.

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have created two custom dimension for product scope and used in my data layer to pass product and transaction data as,

 

Dimention 1: Payment method 

Dimention 2Colour

 

dataLayer.push({
'ecommerce': {
'purchase': {
'actionField': {
'id': 'TRXN100318', // Transaction ID. Required for purchases and refunds.
'revenue': '520.00', // Total transaction value (incl. tax and shipping)
'tax':'20.00',

'dimension1': 'Cash'
},
'products': [{ 
'id': 'PROD5008', 
'name': 'Casual shirt',
'price': '500',
'category': 'Shirt',
'quantity': 1,
'dimension2': 'Red'
}]
}
}
}); 


Using dimension in actionField is correct? if not how i can track this(Dimension 1) info?

Re: Adding dimension for tracking transaction info.

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭
Hi,

http://www.simoahava.com/gtm-tips/product-scoped-custom-dimensions-and-metrics/

Best Regards,
GA Guru.

'Star' or 'Accept as Solution' if it helped.