Goal not assigned to campaign when triggered manually


(Klaus) #1

Hello,

I have a strange problem with Piwik 1.6 and the goal statistics. Tracking goals seem to work, but if someone arrives trough a campaign and I track a goal manually it is not displayed under campaigns on the goal page.

I am tracking a goal manually with foo. In “Visitor Log” I can see that the visitor came from the campaign I use and the goal is also tracked there.

On the goal overview page when I see under “Campaigns” or “Referrer Type” I can see that the Visits are counted for the campaign, but for the goal count there is 0. The goals seem to appear under “Search Engines” instead of Campaigns. Also the revenue from the goals is correctly tracked, but it appears under “Search Engines” and not the campaign where it should be I think.

I am also tracking another goal on external links automatically and they get correctly assigned to the campaign.

Someone else who has seen such a behaviour? Can someone reproduce it as a bug, or am I tracking something wrong?


#2

I have the same problem, not just with google. Visitors come in through a campaign and the goal is being attributed to the referring domain rather then the campaign itself.


(Klaus) #3

Thanks for your feedback. Sounds to be a bug for me. I have created a ticket: Goal not attributed to campaign when triggered manually · Issue #2873 · matomo-org/matomo · GitHub


(Matthieu Aubry) #4

Thanks for the report. I committed a fix in http://dev.piwik.org/trac/changeset/5788

Can you please try the fix, it would be VERY appreciated since i’m not 100% sure it works for your case.
the new file to replace is http://dev.piwik.org/trac/browser/trunk/core/Tracker/GoalManager.php?format=txt