var gaProperty = 'UA-2322026-1'; var disableStr = 'ga-disable-' + gaProperty; if (document.cookie.indexOf(disableStr + '=true') > -1) { window[disableStr] = true; } function gaOptout() { if (window[disableStr] == true) { document.cookie = disableStr + '=; expires=Thu, 01 Jan 1970 00:00:01 UTC; path=/'; window[disableStr] = false; alert('Google Analytics wieder aktiviert'); } else { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; alert('Google Analytics deaktiviert'); } } var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-2322026-1']); _gaq.push(['_setDomainName', '.caraworld.de']); _gaq.push (['_gat._anonymizeIp']); _gaq.push(['_trackPageview']); (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); })();