Google Analytics together with jQuery leads to 2 creations of __utm.gif

Google Analytics together with jQuery leads to 2 creations of __utm.gif

Hi, I implemented the asynchronous analytics snipped together with jQuery and get two created versions of __utm.gif. When I remove jQuery there's just one left.

Does anyone know why this happens? Here's my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<script type="text/javascript" src="http://static.golocal-sol.local/js/jquery-latest.js" charset="utf-8"></script>

<script type="text/javascript">
var _gaq = _gaq || [];

_gaq.push(
['_setAccount', 'UA-3357048-4'],
['_setDomainName', '.golocal-sol.local'],
['_setSessionTimeout','7200'],
['_setVar','none'],
['_setAllowHash','false'],
['_setAllowLinker','true'],
['_trackPageview']
);
</script>
</head>
<body>
<script type="text/javascript">
(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>



































And the two HTML-requests:

GET /__utm.gif?utmwv=4.8.6&utmn=1019190292&utmhn=www.golocal-sol.local&utmt=var&utmac=UA-3357048-4&utmcc=__utma=226560578.529403808.1290620184.1290702148.1290765234.3;+__utmz=226560578.1290620184.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);+__utmv=226560578.none;+__utmx=226560578.;&utmu=oBAQI HTTP/1.1
Host: www.google-analytics.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Pragma: no-cache
Cache-Control: no-cache


GET /__utm.gif?utmwv=4.8.6&utmn=1122727488&utmhn=www.golocal-sol.local&utmcs=ISO-8859-1&utmsr=1600x1200&utmsc=24-bit&utmul=de&utmje=1&utmfl=10.1 r85&utmhid=1090996201&utmr=-&utmp=/test.html&utmac=UA-3357048-4&utmcc=__utma=226560578.529403808.1290620184.1290702148.1290765234.3;+__utmz=226560578.1290620184.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);+__utmv=226560578.none;+__utmx=226560578.;&utmu=qlAQI HTTP/1.1
Host: www.google-analytics.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Pragma: no-cache
Cache-Control: no-cache


Thanks in advance for your help
    • Topic Participants

    • ol-sa