Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outlink tracking not working with JS tracker in FF and IE #10088

Closed
ghost opened this issue Apr 22, 2016 · 5 comments
Closed

Outlink tracking not working with JS tracker in FF and IE #10088

ghost opened this issue Apr 22, 2016 · 5 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.

Comments

@ghost
Copy link

ghost commented Apr 22, 2016

Hi,

it seems that the tracking of outlinks does not work, when using the JS tracker in Firefox and Internet Explorer. The tracking of outlinks works fine in Chrome though. Tracking works also fine, when using the JS code provided by the piwik backend. The problem is somehow old and present also in older versions, but the current piwik version I am using is 2.16.0. I have already checked the faq http://piwik.org/faq/troubleshooting/faq_96/ and have played with the tips given there. As the problem does not occur in Chrome I think it is a bug.

Here is the code I am using for tracking:

$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();
    });
});
@sgiehl
Copy link
Member

sgiehl commented Apr 22, 2016

Does the outlink tracking work in FF or IE if you open such a link in a new tab/window?

@ghost
Copy link
Author

ghost commented Apr 25, 2016

No, have tried this already :-(

@tsteur
Copy link
Member

tsteur commented Apr 26, 2016

If you can send us a link to a page that includes this code we can have a quick look. Feel free to send an email to hello at piwik.org . Afterwards comment here in case the mail goes into spam.

Actually: Please update to Piwik 2.16.1. This was very likely fixed just recently #9925

@tsteur tsteur closed this as completed Apr 26, 2016
@tsteur tsteur added the duplicate For issues that already existed in our issue tracker and were reported previously. label Apr 26, 2016
@ghost
Copy link
Author

ghost commented Apr 27, 2016

Thanx for the quick response. We will update, check again and I will report the result. Sorry for duplicating bug reports, haven`t found the exisiting one.

@ghost
Copy link
Author

ghost commented May 3, 2016

After the update, my code is working correct now. Thanks for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

2 participants