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

Pixel tracking with urlref needs url parameter?

$
0
0
Hello All,

using the image tracking, it seems that I need to provide the "url" parameter as soon as I add the urlref parameter.

Example: Using the default image tracking code:

<img src='http://myserver.com/piwik.php?idsite=1&amp;rec=1' />

I get the URL information (page visited) although I didn't add it explicitly to the image URL, but using

<img src='http://myserver.com/piwik.php?idsite=1&amp;rec=1&amp;urlref=http%3A%2F%2Ffoo.bar' />

tracks the referer, but not the URL ("Page URL not defined"). When I add urlref, both are logged.

Is this by intention? It makes things more complicated since I get the referrer rather simply with PHP but assembling the URL is somewhat more effort.

TIA,

Oliver

Viewing all articles
Browse latest Browse all 13117

Trending Articles