Bug in outlinks dectection


(alpha_one_x86) #1

Hello, I have register the website:
http://ultracopier.first-world.info
http://ultracopier-fr.first-world.info
But in their stat in outlinks I can see:
http://ultracopier.first-world.info/forum/
Normal?


(vipsoft) #2

It is if you did this on both sites:

piwikTracker.setDomains(["files.firrst-world.info"]); // the currently tracked

Assuming you want to track both sites using the same site ID, this line should be:

piwikTracker.setDomains(["*.first-world.info"]); // note the wildcard

For more info, please refer to: http://piwik.org/docs/javascript-tracking/


(alpha_one_x86) #3

Yes but after I need edit that’s on all my website when I add the new domain.
Then I have create request:
http://forum.piwik.org/index.php?showtopic=1190


(alpha_one_x86) #4

In waiting, I have put:

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stat.first-world.info/" : "http://stat.first-world.info/");
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", 1);
piwikTracker.setDomains(["files.first-world.info","ultracopier.first-world.info","ultracopier-fr.first-world.info"]); // the currently tracked
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script>
<!-- End Piwik Tag -->

But that’s done in outlinks:
http://files.first-world.info
http://ultracopier.first-world….
Bug or wrong code?