Piwik campaign not working in typo3 site

(endroix) #1

Hi All,

I am using piwik in my typo3 site. Piwik is able to track normal page visits and I can see the statistics. Now, when I use piwik for campaign, it is not working at all, I see no reports in Referrers - Campaigns at all. But can see page visits in Action - Pages.

I am trying to test the user path in a site, eg s/he can click a link or a button in page source to land to page destination.
Here, is my simple html


<title> This is piwik campaign testing </title>
<p> This is piwik campaign testing</p>
<a href=“http://localhost/mysite/index.php?id=75&piwik_campaign=testClick&piwik_kwd=clickLink”>Goto Login Using Link</a>
<a href=“http://localhost/mysite/index.php?id=75&piwik_campaign=testClick&piwik_kwd=clickButton”>
<input type=“submit” value=“Click to go Login Page” />

and this is my piwik tracking code

<!-- Piwik -->
<script language="javascript" src="http://localhost/mysite/typo3conf/piwik/piwik/piwik.js" type="text/javascript"></script>
<script type="text/javascript">
  /* <![CDATA[ */
    try {
      var piwikTracker=Piwik.getTracker("http://localhost/mysite/typo3conf/piwik/piwik/piwik.php",1);
    } catch(err) {}
  /* ]]> */
<noscript><p><img src="http://localhost/mysite/typo3conf/piwik/piwik/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript>
<!-- /Piwik -->

I can’t figure out why it is not working or if I am doing sth wrong somewhere ?
Any tips or ideas would be really helpful.
Thanks very much.

(vipsoft) #2

The campaign is detected on the entry pagr of a visit.

If you’re testing, you have to clear your cookies and wait, so you’re a new visit.

(endroix) #3

[quote=vipsoft @ Nov 1 2010, 02:14 PM]The campaign is detected on the entry pagr of a visit.

If you’re testing, you have to clear your cookies and wait, so you’re a new visit.[/quote]

I installed whole piwik again, and then cleared all caches and cookies, but still it doesn’t show anything in Referrals - Campaigns but it shows the page stats in Action - Pages.
Is there any place that I should be careful or start looking for debugging purpose.

(daCaPo) #4

Any news about this? I’m currently facing the same problem.

Maybe the problem is related to the use of the realurl extension (for URL rewriting / speaking URLs). However, I still could not figure out how to solve or even debug this issue.

(Matthieu Aubry) #5

This is probably the bug in: Campaigns referers are not attributed to Goal Conversions · Issue #2168 · matomo-org/matomo · GitHub

(Matthieu Aubry) #6

Tracking Campaigns (newsletter, paid ads, display ads, affiliates, etc.) is now available!