Rich-text Reply

Revenue Tracking Not Working

stevethebartend 05-20-16
Accepted Solution

Revenue Tracking Not Working

I've implementing the tracking code as stated here:

https://help.optimizely.com/Track_Conversion_Goals/Revenue_tracking_goals#Implement_the_Optimizely_r...

 

In particular, this section here:

http://screencast.com/t/yW9ZaWAXuFq

 

I have set up Total Revenue and Checkout goals:

http://screencast.com/t/dErd9bitAz9

 

I have also checked the thank you page to check the code is working:

http://screencast.com/t/X5iGVfpie

 

I've checked that the URL's are correct also:

http://screencast.com/t/Y6SwLc3b3Xt

 

Yet there doesn't seem to be any goals in the experiment. Any ideas?

David_Orr 05-21-16
 

Re: Revenue Tracking Not Working

Hi,

 

It looks like the revenue call on the page isn't formatted correctly. The correct format for the code in your screenshot should be as follows:

 

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

Here's a link that will walk you through on how to QA goals by looking for the actual network tracking event that gets sent out to Optimizely:

 

[Checking for whether goals are firing correctly](https://help.optimizely.com/hc/en-us/articles/200063579-Troubleshooting-Goals-don-t-track-correctly)

 

David

Senior Technical Support Engineer
Optimizely

Re: Revenue Tracking Not Working

Thanks David! I swear I cut and paste it straight from the site. Cheers!