简体   繁体   中英

Tracking email newsletter with piwik

I want to track email newsletter especially with piwik. Now there's the following image tracking code given ( source ):

<!-- Piwik Image Tracker -->
<img src="http://analytics.mysite.net/piwik.php?idsite={$IDSITE}amp;rec=1" style="border:0" alt="" />
<!-- End Piwik -->

I want to add something like _rcn to attach a campaign , to assign the email opening. The code could look like that (web beacon):

<img src="http://analytics.mysite.net/piwik.php?idsite=1&rec=1&_rcn=mycampaign" style="border: 0; display: none; width: 0px; height: 0px; margin: 0;padding: 0" alt="" />

But that doesn't work... Any Ideas?

Finally I found something. My first attempt was right xD

<!-- Piwik Image Tracker -->
<img src="http://analytics.mysite.net/piwik.php?idsite={$IDSITE}&action_name=test&_rcn=testcampaign&rec=1" style="border:0" alt="" />
<!-- End Piwik -->

Thats working oO

Just set {$IDSITE} to your site id, for example: 1

Parameters:

rec – (required) The parameter &rec=1 is required to force the request to be recorded
idsite – (required) Defines the Website ID being tracked
_rcn - the campaign name

More: http://piwik.org/docs/tracking-api/

The action_name ist tracked as simple site, I don't know why and the request ist shown as visitor. AND with _rcn you can set a campaign.

Thats it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM