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

TrackSiteByUrl - automatically set idsite in tracking request based on current page's URL #2371

Closed
robocoder opened this issue Apr 28, 2011 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.

Comments

@robocoder
Copy link
Contributor

Track Site by URL

Use cases:

  • You have a lot of domains and want to use one JavaScript tracking tag across all your sites.
  • You have separate sites for production and testing/staging, and don't want to use conditionals in your JavaScript tracking tag.

Caveats

  • Currently limited by the SitesManager API to the hostname in the URL. If you want to use separate site IDs for http://example.com/pathA and http://example.com/pathB, then this plugin won't work for you "as is".
  • On the server, http://example.com and http://www.example.com are normalized and can't be tracked using different site IDs.
  • When navigating between "sites", the referrer information from the entry page is not carried over to another "site".
  • "Outlinks" to other sites on the same domain won't be tracked.

History

  • 0.1 - Anthon Pang

Support

Report any problems on the tracker at http://activeanalytics.org/

Keywords: third-party-plugin

@robocoder
Copy link
Contributor Author

Attachment: v0.1 - initial upload
TrackSiteByUrl.zip

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

2 participants