Mobile app version of vmapp.org
Login or Join
Becky754

: How to hide affiliate transaction price in Google Analytics Ecommerce tracking JS source code? I have an affiliate business that serves deals to users. After a deal is clicked, user is redirected

@Becky754

Posted in: #Ecommerce #GoogleAnalytics

I have an affiliate business that serves deals to users. After a deal is clicked, user is redirected to the vendor website where he can complete the transaction. As I also have some revenue from the solely redirect I would like to track these redirects as transactions using Google Analytics Ecommerce tracking.

Normally I would put Enhanced E-commerce tracking code on the redirection page like this:

ga('ec:setAction', 'purchase', { // Transaction details are provided in an actionFieldObject.
'id': 'T12345', // (Required) Transaction id (string).
'revenue': '0.25', // Revenue (currency).
'shipping': '',
'tax': '',
'affiliation': ''
});


The problem is I don't want anyone looking into the page source code to see that I have 0.25$ for the user redirect.

Is it possible to somehow encrypt the Ecommerce transactions and send them to Google in a way that would be hidden for a basic user?

I'm already tracking the clicks in my internal system (with PHP during the redirect page load), so I was thinking about somehow using Google Analytics Data Import (API) feature to directly import the transactions at this stage. But is it possible to do this?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Becky754

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme