Can not track email campaigns

Hi .,

I want to track an email campaign using image tracking as described here:

My Image URL is:

My idsite is correct. On the visitor log, I can see the incoming request. The action tells me “Site-URL ist not defined”.

On Referers -> Campaigns -> No campaign entry was found.

What can I do for recording campaigns in PIWIK. I’ve installed PIWIK 1.12.

Thanks für help, Manuel

the piwik.php request should have a &url= parameter

this url= param should contain URL encoded landing page URL and should contain campaign tracking parameters

Hi Matt,

many thanks for the quick response. You’ve right. The tracking API reference says url is required. Now I have come a step further, changed the image URL into:

The request is now triggered by the piwik host to the tracking host. On the visiter log I can see the request entry twice. What’s the reason?

On Referer -> Campaigns there is no entry.

Should I add the campaign tracking parameters on the landing page in javascript?

Thanks for all, Manuel

You forgot to urlencode the &url= parameter

I’ve the url encoded. But it has not effect.

On apache access.log the request in coming in. I can see the URL encoded request with all additional parameters.
Next Test: I add parameters pk_campaign and pk_kwd to the request URL in my browser.

No campaign is recorded!

Here is the full request on access.log
[30/Oct/2013:08:53:07 +0100] “GET /stat/piwik.php? HTTP/1.1” 200 269 “” “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0”

It will only track the campaign the first pageview of the visit. try after 30min.

I’ve wait a longer time clean by browser cache starts the browser again. It will not work.

It works fine now!

I’ve forgotten the campaign parameters to the end of the url with “?”

Here is my working tracking url using a image:


On the visitor log the url has now two logging entries.

How can we avoid this?