AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
1.5K members online now
1.5K 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

How to hide affiliate transaction price in Google Analytics Ecommerce tracking JS source code?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm trying to hide the transaction Ecommerce tracking code from the "thank you" page's source code as my conversion values are not public. More info on StackExchange:  http://webmasters.stackexchange.com/questions/91419/how-to-hide-affiliate-transaction-price-in-googl...

 

I was thinking about using Google Analytics Data Import (API) to inserting the transactions into Google Analytics manually. Is this possible to automate? Or is there any other way to do this?

1 Expert replyverified_user

Re: How to hide affiliate transaction price in Google Analytics Ecommerce tracking JS source code?

Top Contributor
# 2
Top Contributor
Hi Webo
Yes, you'll have to use the data import API if you want to keep it hidden. Alternatively, you can use the actual values from the site that the end user sees when they purchase but use a calculated metric on the GA or AdWords end (this is what we do now). You can find out more here: https://support.google.com/analytics/answer/6121409?hl=en

As for automating the data import, well, that's completely up to you as to how you want to do it. The API is provided, you have to code a solution for your specific setup.