What is “?gclid=” & Why is The Analytics Cookie (Not Set)?


Recently we were a little stumped with gclid and the Google Analytics cookie that’s placed on user’s computers. We were asked:

“I went to my website through an ad, and the Analytics cookie set on my computer says: utmgclid=StrangeGibberishHere456|utmccn=(not%20set)|utmcmd=(not%20set) )|utmctr=my%20search%20term – why are the medium and campaign not set?”

So we did a little digging around to figure out why ‘utmccn’ was ‘not set’ and thought it was appropriate that we share it with all of you too. So here’s the low down on what we’ve learnt:

When an AdWords account is linked to an Analytics account, and you enable automatic tagging, AdWords uses the gclid to hide all the information it needs to pass to Analytics.

If the link between Analytics and AdWords is set up properly, you shouldn’t see “?gclid=” in Analytics – it should recognise the tag as being from AdWords and decode all the data from it.

See the Analytics Help page on auto-tagging.

Going back to the initial query:

“I went to my website through an ad, and the Analytics cookie set on my computer says utmgclid=StrangeGibberishHere456|utmccn=(not%20set)|utmcmd=(not%20set) )|utmctr=my%20search%20term – why are the medium and campaign not set?”

The medium and campaign are set – it’s just that they’re hidden in the gclid. The ‘gclid= StrangeGibberishHere123’ contains all the information Analytics needs to assign ‘campaign’, ‘ad group’, ‘placement’ etc., so having ‘utmccn’ and ‘utmcmd’ set on top of that would just confuse things.

Also, having information hidden in a ‘gclid’ and not in ‘utmcmd’ means competitors can’t just look at the cookies set on their computers to determine your AdWords account structure.

Another question we were asked was:

“When I look at Analytics Real Time, I see active pages tagged with things like /landingpage.html?gclid=blahblahblah – what’s going on?”

When someone clicks on an ad, they’ll actually go to the URL /landingpage.html?gclid=blahblahblah. Usually Analytics would strip away the gclid parameter and show just /landingpage.html as the page – but the gclid still shows up in Analytics Real Time, presumably because Real Time is only in beta.

But what are your thoughts? Have you had similar queries thrown at you and have you got any insights to share? Please feel free to add to the discussion within the comments below.

Tamsin looks after PPC at SEOptimise, and is qualified in Google AdWords, Google Analytics and Bing Ads. She knows her way around an Excel vlookup.

4 Comments

Got something to say? Feel free, I want to hear from you! Leave a Comment

  1. R. says:

    Nice post and explanation, thank you.

    So how is it possible to extract the information of the GCLID outside of GA?

    I’m just thinking if conversions happen offline, but the lead is coming through the website. So just now I’d see the keyword from my paid ad in the lead (from the utmZ cookie) but not the campaign name. Is there a simple and easy way to pull campaign and ad group name out of the GCLID? Maybe even the ad?

    Thanks! R

  2. Sam Alexander says:

    This is good to know. I also am looking for a way to extract the values from the GCLID so that I can track them in my conversion forms that are hosted on our own sites.

  3. Jay says:

    Unfortunately, gclid=CLXnwInwiLMCFSbItAodRngAyQ is causing 404 errors on my site. I have to figure out why. Anyhow, thanks for the information.

  4. John Stinson says:

    I’ve noticed that on occasion the utmctr field is not being set or even sent. Does anyone know why this would be?

Leave a Comment

Let us know your thoughts on this post but remember to play nicely folks!