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
5K members online now
5K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Appending Client ID to URL

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

We've got a portion of our checkout we're not able to tag with the GA tracking script, however we can pass the Client ID through these steps and back through to the URL when visitors get past the untaggable portion. Is this enough to continue the session on the otherside of the untrackable steps? 

Re: Appending Client ID to URL

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

 

Hello Mike!

You should be able to manually decorate those links as is referenced in the Google Dev resources below:

 

https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain#overview

 

 

<a href="https://destination.com/?clientId=XXXXXX">destination.com</a>

 

 After you pass the client in just make sure to harvest it on the when you return to page with analytics.

 

below is an example of the clientId parameter being used in the GATC.

 

ga('create', 'UA-xxxxxxx-y', 'auto', {
'clientId': '510791205.1456428834'
});
ga('send', 'pageview');

 

Afterwards simply look at the _GA cookie to make sure the value match up!

 

Good Luck!