Analytics
5.6K members online now
5.6K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Enhanced ecommerce product coupon lowercase

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi everyone

 

Does anyone know if it is possible to have a filter in place that makes all product coupon codes lowercase in GA? I think it's not possible but maybe someone has a solution for this Smiley Happy

 

Thanks

 

Nick

Enhanced ecommerce product coupon lowercase

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆

Hi @Nick B,

 

It is not possible to modify the historical data in Google Analytics and also product coupon code cannot be modified by filters. Product coupon code will get the exact value that you assign to it. Before sending the value, you can make it lower case and use in your ecommerce hit. If you are using Google Tag Manager, you can do this easily by modifying the dataLayer variable.

 

I hope this helps.

Regards

 

Enhanced ecommerce product coupon lowercase

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi @Gny

 

Good thinking Smiley Happy So a custom javascript variable should do the trick?

 

Something like:

 

function () {
    return {{ecommerce.purchase.actionfield.coupon}}.toLowerCase();
}

thanks!!

Nick