I have a need to track referrers within the same domain. Within our intranet we have several sites that live on the same domain but are in different paths,
Since setDomains allows paths, can this also be used to indicate what referrers should be considered local?
For example.
If I set
_paq.push(['setDomains', 'myintranetdomain/foo]);
Referrals from http://myintranetdomain/bar should be tracked because I explicitly set the /foo path thus /bar would not be local.
I think setDomains is usually used to expand what is considered local but it would be nice if this or another API allowed users to limit the scope of local.
Thoughts? Somewhere I saw that campaigns can be used for this tracking but I’m not running a campaign so it seems a little forced.
If you find any feedback with this new feature in the beta, please let us ASAP as we’d like to make sure it works well in 2.16.0 release coming up in a few days!
I got this installed now and I am testing it out but I am still not seeing referrers from the same domain name. Are referrers updated in real time? About page has “About Piwik 2.16.0-rc1”
The changelog only mentions outlinks and not referrers
“The JavaScript Tracker method PiwikTracker.setDomains() can now handle paths. This means when setting eg _paq.push(['setDomains, '*.piwik.org/website1']) all link that goes to the same domain piwik.org but to any other path than website1/* will be treated as outlink”
Glad it’s working now. Referrers are tracked on the first action of a visit, which is usually a pageview. On a new visit (eg 30 minutes later), referrers will be tracked again even though Piwik cookie might already exist