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

Add Piwik stats #493

Closed
pascalchevrel opened this issue Jul 4, 2015 · 4 comments
Closed

Add Piwik stats #493

pascalchevrel opened this issue Jul 4, 2015 · 4 comments
Assignees

Comments

@pascalchevrel
Copy link
Member

@pascalchevrel pascalchevrel commented Jul 4, 2015

We have set up Piwik on the mozfr server, we can activate it for the Transvision subdomain.

That means that we need to add some js in the base template to send hits to Piwik.

For pages without a template (our JSON API calls), I need to investigate if/how those can be counted

We also need to make it an optional setting because we don't want local installs, or non-official installs (on our VPSes or other people's) to send data to our Piwik instance. Similarily, we probably want other installations to send data to a separate Piwik instance or a different profile (for example a separate stats profile for our beta site).

@pascalchevrel pascalchevrel self-assigned this Jul 4, 2015
@pascalchevrel
Copy link
Member Author

@pascalchevrel pascalchevrel commented Jul 4, 2015

That also means that we will have to apply the patch on the production server before a release so as to make sure that it works and sends data to Piwik correctly

@flodolo
Copy link
Contributor

@flodolo flodolo commented Jul 4, 2015

Add a piwikurl to config.ini and inject JS only if that's available?

@pascalchevrel
Copy link
Member Author

@pascalchevrel pascalchevrel commented Jul 4, 2015

That's the patch I am doing now :)

pascalchevrel added a commit to pascalchevrel/transvision that referenced this issue Jul 4, 2015
- add piwik_url and piwik_id variables to config.ini
- integrate js only in production mode, if the settings exist and are valid
@pascalchevrel
Copy link
Member Author

@pascalchevrel pascalchevrel commented Jul 4, 2015

I couldn't find any way to track non-HTML pages

pascalchevrel added a commit that referenced this issue Jul 4, 2015
Issue #493: Piwik Template integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.