Many dynamic generated Websites are using session-IDs to track users. In this case a URL kooks like: domain.tld/site1.html?SID=12345678. But the SID is different for each visitor.
In actions/pages PIWIK shows ten lines with the same page (domain.tld/site1.html) with ten different session IDs. It would be a great feature if there were an option to eliminate everything in the URL starting at a userdefined character string like “?SID=”.
Result should be on line with a 10 times visited URL.
I´m using xt:commerce shop-software and I know about only two different strings possible after the URL. This would be ?=XTSid and ?=RefID. I don´t see the need for more than two strings per site, but I would suggest to have five fields where the admin can enter the relevant strings for his system.
I don´t know how Piwik handles tracking for multiple websites, but these fields should be separate for each website (different content management systen, different IDs)
Yes, cleaning up the URL (e.g., removing session IDs) is desirable. I posed this earlier and as I recall, it was believed that server side filtering would add unnecessary load given the wide assortment of session ID var names (e.g., sid, PHPSESSID, …) and platform-specificity. (?)
So… I guess that means moving the filtering to the client (i.e., piwik.js). What would be a reasonable approach?
tracker.filterUrlParameters( array|string )
specify a string or array of strings containing var names to be removed from the URL
and/or
tracker.filterUrlParameters( function )
a user defined callback function to be called with the raw URL and which returns a clean URL
Secondly, should the referrer URL also be filtered?
[quote=alpha_one_x86 @ Jul 24 2009, 04:24 PM]I have put this code:
piwikTracker.filterUrlParameters([“sid”,“p”]);
In my tag. That’s should work?
I thinks some filter need by in js, other (like registred/owned site) in db for not change all tag on each modification.[/quote]
I’m proposing to add such a method – this isn’t in the API now, so don’t change your tracking code yet. That said, yes, that would be one example given the above proposal.
Sorry, I don’t quite follow the second part of your post.