GCLID

by 2 replies
3
Hey All,

I know that when you come from Adwords, you've got a GCLID=something.

Does anyone know if Yahoo & MSN have a similar parameter that I can get?

How about when a visitor comes from Google natural search results or Yahoo natural search? Is there a way to tease that out with PHP?

Thanks a lot for your thoughts.
#programming #gclid
  • You can get the data by looking at the referer header tag that is sent.

    Sure it can be faked but if its coming from G! or Y! then its unlikely..

    Something like :

    $referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';


    The resut will look something like :

    http://www.google.com/search?hl=en&=my+search+term&aq=fa

    Now you can tell where it came from, PLUS, the keyword they typed into the search engine as well!

    Hope this helps

    Bruce
    • [1] reply
    • Wow, that is a nice trick. I take it you could tell whether the visitor came from natural search or adwords based on whether there was a keyword provided in the header tag?

Next Topics on Trending Feed