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

Ads
1.4K members online now
1.4K members online now
Use Google Ads conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

How to get the click id in a specific format of URL

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

For example if i have an url: www.abc.com?tracker=12345&dynamic=xyz&btag=[clickid]

here where it says clickid- i want to have the clickid from google, so how do do it?
What way should i use the url as my landing page so i get this?

please help

Re: How to get the click id in a specific format of URL

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭
1. Turn "Auto tagging" on:
https://support.google.com/analytics/answer/1033981?hl=en
The click id will be passed under gclid parameter

If you want the gclid to be specifically called "btag", well tough luck it's impossible....
2. If you wanna read and save the gclid you can parse the url in your site using simple javascript code, for example:
http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript