Tracking of multiple pages with same url - Cookie length error

Dear all,

I am tracking with one piwik installation multiple pages (~300). All of these pages have the same base URL. (Reason for that: Users can create pages on our site and those pages have the url: http://www.baseurl.com/#!/username)
For each (first) visit of a tracked user page piwik creates a cookie. So if one user visits a lot of different user pages the browser has to send an longer getting cookie string in the http request. Visiting more than ~ 40 user pages finally causes an error, because the sent cookie string is to long.

Thanks for any help in advance!

See the section “If you track one domain sub directories or pages in different Piwik websites” in: http://piwik.org/docs/javascript-tracking/#toc-cookies-configuration-for-domains-and-sub-domains
you can use setCookiePath()