Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Change URL to track via javascript (1 reply)

$
0
0
I am using PIWIK to track events along side the site. I have some ajax actions that I am attempting to track by using the following method inside the js function:

Quote

_paq.push(['trackPageView', 'Event/Crime/' + crimeid]);

This wirks great, but whatever the page the user is on when clicking this is the URL reported in PIWIK.

I want to set it to something similar to this:

http://domain.com/Event/Crime/{CRIME_ID}

But I cannot see how to do this. I am following the wiki here:
http://developer.piwik.org/api-reference/tracking-javascript

I just cant seem to find how there.

Viewing all articles
Browse latest Browse all 4243

Trending Articles