Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#2795 closed Bug (fixed)

One single campaign appearing twice in campaigns report

Reported by: rob_st Owned by:
Priority: normal Milestone: 1.7 Piwik 1.7
Component: Core Keywords:
Cc: Sensitive: no

Description

I have a campaign running. On a website there a - basically - four different links to my site, all using the same campaign-parameters, but different keyword-parameters.

The problem is that all links, that direct to the landing-page as

index.php?utm_campaign=campaign&utm_term=keyword

are counted as one single campagin. And all deep-links to my shop, where the landing page-url is something like

index.php?option=com_virtuemart&category_id=1234&page=
shop.browse&utm_campaign=campaign&utm_term=keyword

are counted as a different campaign that has the same name as the first one. See the screenshot.

API output to these campaigns is:

- <result date="2011-11-19">
- <row>
  <label>Zubehörshop Homepage Link-Building</label> 
  <nb_uniq_visitors>49</nb_uniq_visitors> 
  <nb_visits>49</nb_visits> 
  <nb_actions>297</nb_actions> 
  <max_actions>32</max_actions> 
  <sum_visit_length>11597</sum_visit_length> 
  <bounce_count>14</bounce_count> 
  <nb_visits_converted>0</nb_visits_converted> 
  <idsubdatatable>131</idsubdatatable> 
  </row>
- <row>
  <label>Zubehörshop Homepage Link-Building</label> 
  <nb_uniq_visitors>7</nb_uniq_visitors> 
  <nb_visits>7</nb_visits> 
  <nb_actions>42</nb_actions> 
  <max_actions>18</max_actions> 
  <sum_visit_length>782</sum_visit_length> 
  <bounce_count>2</bounce_count> 
  <nb_visits_converted>0</nb_visits_converted> 
  <idsubdatatable>132</idsubdatatable> 
  </row>
  </result>}}}

Attachments (1)

piwik_campaign-tracking_bug.png (19.7 KB) - added by rob_st 2 years ago.
a single campaign appears twice

Download all attachments as: .zip

Change History (5)

Changed 2 years ago by rob_st

a single campaign appears twice

comment:1 Changed 2 years ago by matt (mattab)

  • Milestone set to 1.7 Piwik 1.7

Thanks for the report. Have you experienced this bug in several days?

Could you send me the full DB dump (or the table piwik_log_visit for these days)?
matt att piwik.org

Thanks!

comment:2 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5498]) Fixes #2795 The campaign name and keywords were not URL decoded and trimmed, before recorded in the log table (as opposed to search engine keywords which were correctly decoded and trimmed)
This caused the same keyword to be recorded as Hello%20World and Hello+World
This fix will only fix reports for new data AFTER applying the patch

comment:3 Changed 2 years ago by matt (mattab)

(In [5499]) Ensuring consistent output (on my box plugins load in different orders causing Xml comparison to fail) + adding test refs #2795

comment:4 Changed 2 years ago by rob_st

To report back: the fix seems to work.

Note: See TracTickets for help on using tickets.