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

Possibility to use domain as ID #2366

Closed
anonymous-matomo-user opened this issue Apr 27, 2011 · 3 comments
Closed

Possibility to use domain as ID #2366

anonymous-matomo-user opened this issue Apr 27, 2011 · 3 comments
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

@anonymous-matomo-user
Copy link

It would be nice if I could use the domain name as ID in the JS added to the site, e.g.:
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stats.example.com/" : "http://stats.example.com/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", mysite.com);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://stats.example.com/piwik.php?idsite=mysite.com" style="border:0" alt=""/></p></noscript>
<!-- End Piwik Tag -->

@robocoder
Copy link
Contributor

Not planned as a core plugin.

See http://forum.piwik.org/read.php?2,67061

@robocoder
Copy link
Contributor

(In [4586]) refs #2366, refs #1306 - pass request array in notification

@robocoder
Copy link
Contributor

wonfix because:

  • Tracker expects idsite to be an int
  • piwik.js doesn't encode the idsite parameter, so it could get mangled in transport
  • piwik.js uses the site ID as part of the cookie name hash

That said, see the plugin in #2371.

@anonymous-matomo-user anonymous-matomo-user added this to the Future releases milestone Jul 8, 2014
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

3 participants