| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Is it possible to grab utm source for use in hidden form fields?|
I'm using Google Analytics utm_source, utm_medium, and utm_campaign to track some paid links on referring websites through to my site.
Typically a person will land on the site, visit a few pages, and hopefully submit a lead.
When they submit a lead, I'd like to be able to get the utm_source, utm_medium, and utm_campaign values from Google (if present) and send them via hidden form fields.
Is it possible to grab these variables from Google Analytics on the form page?
It is not possible if you are coding plain HTML.
If your page with the form is created dynamically (e.g. with PHP, it is possible (see this example: [joaocorreia.pt...]
Thanks for the solution, that's great (the site is in PHP).
Well it is not my solution, I just stumbled upon it a while ago ;-)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved