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 advanced configuration options for piwik analytics #15

Closed
ruKurz opened this issue Jun 11, 2017 · 7 comments
Closed

Add advanced configuration options for piwik analytics #15

ruKurz opened this issue Jun 11, 2017 · 7 comments
Assignees
Milestone

Comments

@ruKurz
Copy link

ruKurz commented Jun 11, 2017

In order to use one Piwik instance for tracking several sub domains, some advanced piwik configuration options have to be set. This kind of configuration should be part of the administration UI of Rocket.Chat.

This issue implements the following options

Prepend the site domain to the page title when tracking
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
Track visitors across all subdomains
_paq.push(["setCookieDomain", "*.your.domain.tld"]);
In the 'Outlinks' report, hide clicks to known alias URLs
_paq.push(["setDomains", ["*.your.domain.tld"]]);

@mrsimpson
Copy link
Owner

Lgtm.
Merging later. Please PR to Rocket.Chat fork.

@ruKurz
Copy link
Author

ruKurz commented Jun 12, 2017

In RocketChat#233 is shortly discussed why RC won't implement all Piwik Config options. Might be a reason for decline the pull request.
Also I'm not sure if the second commit: 89df55c meets the intend of Piwik. "set a custom URL" leads to incorrect links in Piwik UI. But was the only way I found to tweak the sub domain handling.

@ruKurz
Copy link
Author

ruKurz commented Jun 14, 2017

Lessons learned: A piwik website configuration has settings for subdomains. Using this settings makes the commit unnecessary 89df55c

@see How do I accurately measure the same visitor across multiple domain names (cross domain linking)? https://piwik.org/faq/how-to/faq_23654/

@ruKurz
Copy link
Author

ruKurz commented Jun 14, 2017

Piwik supports tracking the same website into two different piwik instances.
@see The complete guide on tracking your websites and web apps into multiple Piwiks and how to do it easily & efficiently https://piwik.org/blog/2017/02/complete-guide-tracking-websites-web-apps-multiple-piwiks-easily-efficiently/

Would be nice if that would be configureable in Rocket.Chat Analytics Admin UI.
For this feature I will open a new Issue. Posting it here, soon.

@ruKurz
Copy link
Author

ruKurz commented Jun 14, 2017

related with #17

ruKurz added a commit that referenced this issue Jun 14, 2017
- Removed unnecessary code for setting a custom tracking url
- Make the list of domains editable
- Changed comment
@ruKurz ruKurz self-assigned this Jun 14, 2017
mrsimpson added a commit that referenced this issue Jun 14, 2017
#15 - Add advanced configuration options for piwik analytics.
@ruKurz ruKurz added this to the basic milestone Jun 20, 2017
@ruKurz
Copy link
Author

ruKurz commented Jun 23, 2017

merged and deployed.

@ruKurz
Copy link
Author

ruKurz commented Jun 23, 2017

make a pull request to RC core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants