Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (31 sloc) 1.64 KB
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setCookieDomain", "*.xceptance.de"]);
_paq.push(["setDomains", ["*.xceptance.de","*.xceptance-loadtest.com","*.xceptance-loadtest.de","*.xceptance.com"]]);
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
function reportAnalytics() {
// sent this only, if the user did not opt-out and he has seen the privacy message once at least
if ( ($.cookie('privacy-ack-displayed') == 'true') && ($.cookie('privacy') == undefined) ) {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.xceptance.com/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "7"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
}
};
reportAnalytics();
</script>
<!-- End Piwik Code -->
<script type="text/javascript">
// display the privacy message when not yet displayed, store this fact in a cookie
// if DNT is set, do not do anything, because we auto-disable tracking based on the
// users wish
var isDNT = navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1";
if ($.cookie('privacy-ack-displayed') == undefined && !isDNT) {
$('#privacy-message').show();
$.cookie('privacy-ack-displayed', 'true', { expires: 7, path: '/{{site.lang}}' });
}
</script>