<head> <script type="text/javascript"> //<![CDATA[ var page_load_start = new Date(); var _gaq = _gaq || []; window.onload = function() { var page_load_end = new Date(); var load_time = page_load_end.getTime() - page_load_start.getTime(); load_time = parseInt( load_time / 100 )*100; _gaq.push(["_setCustomVar",1,'landingPageTime',load_time,2]); _gaq.push(["_setAccount","UA-xxxxxxxx-y"]); _gaq.push(["_trackPageview"]); }; //]]> </script> <!-- Here goes the rest of your head section --/> </head> .... <body> <!-- Your web page goes in here --/> <script type="text/javascript"> //<![CDATA[ (function() { var ga = document.createElement('script'); ga.type = "text/javascript"; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga,s); })(); //]]> </script> </body> </html>
Mediante campañas de Google Analytics
In Firebug, enable the Net tab, and search for any request to *_utm.gif?*. When you click on the request line, you can see all the info, which important one are the params passed.