Passing URL Paramaters?

Hi,

We’ve got a site where we have profile pages at say mysite.com/user/myusername - We want to be able to let users track how many page views their getting, via the API.

We’re using an .htaccess rewrite to pass /myusername into page user.php so it can pull the right user data… Now we need to send that parameter to Piwik through the JavaScript somehow so it’s logged, and then later on, using the API, pull out the number of hits on user.php, where the username paramater was equal to “myusername”

I have no idea if I’m making sense or not, but if I am and you understand what we’re trying to do, pointing us in the right direction would be much appreciated.

You can use the Javascript tracking API to set custom names to your pages, if need be. http://piwik.org/docs/javascript-tracking/

Then you can use the analytics API to fetch these data (see the Actions plugin) http://dev.piwik.org/trac/wiki/API/Reference