3.2K 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

Tracking coupon code

Participant ✭ ✭ ✭
# 1
Participant ✭ ✭ ✭

Hi,

How can I track coupon code in GA?

 

Thanks

1 Expert replyverified_user

Tracking coupon code

Top Contributor
# 2
Top Contributor

Hi Santosh,

 

In Enhanced Ecommerce you can set a coupon code both for products and for transactions:

https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measurin...

 

You will find the coupon codes recorded under Ecommerce -> Marketing -> Order Coupon and Product Coupon

 

I hope this is what you're looking for.

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Tracking coupon code

Participant ✭ ✭ ✭
# 3
Participant ✭ ✭ ✭

Hi @Arnold M,

I have added the coupon code in data layer but now I'm seeing '0' in order coupon code column, initially it was showing (not set) before adding coupon code in data layer.

 

I'm also sharing the code.

 

<script>
dataLayer.push({
'conversionValue':34.98,
'ecommerce': {
'purchase': {
'actionField': {
'id': 'xxxxx',
'affiliation': 'Online Store',
'revenue': '34.98',
'tax':'5.83',
'shipping': '6.99',
'coupon': 'Sw20'
},
'products': [
{
'name': 'Artificial Hanging Basket',
'id': 'p-153',
'price': '34.99',
'brand': 'xxxxxxxxxx',
'category': 'Boards',
'variant': 'Size (CM): 35, Colour: Cream',
'quantity': 1,
'coupon': ''
}
]
}
}
});
</script>

Please check once and let me know if you find any issue in above code.

 

Thanks

Santosh

 

Marked as Best Answer.
Solution
Accepted by topic author santosh s
October 2016

Tracking coupon code

Top Contributor
# 4
Top Contributor

Hi Santosh,

 

I tested your code and the coupon code appeared in Ecommerce -> Marketing -> Order Coupon

https://i.imgur.com/RuiuUMg.png

Not sure why you are seeing '0', is it still the case?

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Tracking coupon code

Participant ✭ ✭ ✭
# 5
Participant ✭ ✭ ✭

Thanks very much Arnold, actually I was in hurry now it is showing. Smiley Happy

 

Tracking coupon code

Top Contributor
# 6
Top Contributor

Np, I'm glad to hear that it works Smiley Happy

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Tracking coupon code

N/A
# 7
N/A

Hello - why do the coupon codes appear as digits when they are words?