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

Lack of parameter in <noscript> part of Piwik's JavaScript tracking code #9360

Closed
ghost opened this issue Dec 8, 2015 · 3 comments
Closed
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@ghost
Copy link

ghost commented Dec 8, 2015

Hello,

It seems that failover within tracking code generated by Piwik in site settings page will not work. Piwik.php requires two parameters "idsite=x&rec=1" to generate tracking image. The problem is that part of Piwik's JavaScript tracking code generated via site settings page lacks this paramater. Example of generated

tracking code:

<noscript><p><img src="//localhost/piwik1/js/tracker.php?idsite=2" style="border:0;" alt="" /></p></noscript>

when it should be:

<noscript><p><img src="//localhost/piwik1/js/tracker.php?idsite=2&rec=1" style="border:0;" alt="" /></p></noscript>

Result is that if somebody will implement tracking code from Piwik's website settings page - turnover will not work. Issue found in 2.15 Piwik version.

clipboard02

Regards,
Tomasz

@ghost
Copy link
Author

ghost commented Dec 8, 2015

FYI @mattab

@tsteur
Copy link
Member

tsteur commented Dec 8, 2015

This is currently on purpose from the looks see comment

By default, Piwik doesn't track non-JS visitors.

See https://github.com/piwik/piwik/blob/master/core/Tracker/VisitExcluded.php#L70-L82

@mattab
Copy link
Member

mattab commented Dec 23, 2015

Hi @tomasztomik
This is by design. see also: https://piwik.org/faq/how-to/faq_176/ and https://piwik.org/faq/new-to-piwik/faq_63/

@mattab mattab closed this as completed Dec 23, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants