Rich-text Reply

Revenue Tracking Not Working

Charlie 02-24-17

Revenue Tracking Not Working



I am trying to set up revenue tracking but it is not working.


I have implemented the tracking code via Google Tag Manager as


var valueInCents = datalayer.conversionValue * 100;

window.optimizely = window.optimizely || [];
window.optimizely.push(['trackEvent', 'purchase', {'revenue': valueInCents}]);


Fireing on the thank youpage.


I have set up the Track Revenue Goal.


Kind regards

Charlie Garding

Digital Analyst



Level 1

JasonDahlin 02-24-17

Re: Revenue Tracking Not Working

[ Edited ]

Did you verify that "purchase" is the name of your goal?

Did you assign the goal to your experiment?

Does "valueInCents" have a value when GTM runs (does datalayer.conversionValue exist with a proper value (if it has a "$" in it, you need to remove it before multiplying by 100)?)



--Jason Dahlin
Analytics and Testing Guru Smiley Happy

Experimentation Hero