Hallo,
ich hatte das selber Problem mit Piwik.
Darauf hin habe ich mir beide Tracking-Code Varianten mal angesehen, und in den Variablen der letzten beiden Zeilen einige Unterschiede feststellen können.
Habe daraufhin das Template dahin gehend angepasst, und nun funktioniert es bei mir auch wieder.
Hier mein angepasstes Template:
PHP-Code:
<?php
/**
* To use this script, please fill in your Piwik site ID and Piwik URL below
*/
$PiwikSite = 0;
$PiwikPath = "www.domain.tld/piwik/";
/**
* DO NOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING!
*/
if ($PiwikSite > 0 && $PiwikPath != "www.domain.tld/piwik/" && !BE_USER_LOGGED_IN && sha1(session_id() . (!$GLOBALS['TL_CONFIG']['disableIpCheck'] ? Environment::get('ip') : '') . 'BE_USER_AUTH') != Input::cookie('BE_USER_AUTH')): ?>
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https://" : "http://") + "<?php echo $PiwikPath; ?>";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "<?php echo $PiwikSite; ?>"]);
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);
})();
</script>
<?php endif; ?>
Hoffe es funktioniert bei euch auch
Gute Nacht
Lesezeichen