@skygate wrote:
Hello all,
we have a problem with external link tracking. Everything works fine, when I use the generated JS code, provided by the piwik backend. Cause we want to use external JS only, I wrote a little piece of code:
$j(window).load(function () {
var pkBaseURL = (("https:" == document.location.protocol) ? "https://foo.bar.de/stats/" : "http://foo.bar.de/stats/");
$j.getScript(pkBaseURL+'piwik.js', function(){
// script is now loaded and executed
var piwik = Piwik.getTracker(pkBaseURL+"piwik.php", "1");
piwik.enableLinkTracking();
piwik.trackPageView();
});
});This code works fine, but external link tracking is only working in chrome, but not on other browsers.
Did I miss something to get I going? Any idea is welcome...
TIA
Tobias
Posts: 1
Participants: 1