Goal Conversions = Page views?


#1

I had piwik 1.5 running for a long time with no issue. Then… everything went crazy. Weird stats, goal issues, etc… it started showing page titles for every goal and custom variable, showing rediculous amount of page views daily (same each day), I dont know why or how… but all went crazy.

I started all over. Fresh install of latest 1.7.1 with fresh db.

Right Now… after fresh install, I viewed pages 8 times. And dashboard (Live) says 8 page views which is right, but goals says this for both goals:

8 conversions
$ 8 overall revenue
8.0% overall conversion rate (visits with a completed goal)

What the heck!!!???

I double checked all tracking codes… seem fine. I had to update token auth for api to save correct ip (user instead of server)

I redid my two goals as had in old install.

Both Goals: Triggered Manually, Once per visit.


<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.DOMAIN.com/piwik/" : "http://www.DOMAIN.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.enableLinkTracking();

{if $order_complete}  ########## I haven't gone to the page that triggers this code yet!
{if $order_paid}
piwikTracker.trackGoal(1,"{$amount}"); // Paid Product
{else}
piwikTracker.trackGoal(2);  // Free Product
{/if}
{/if}

/// I have several custom variables which show based on conditions.. like:
{if $promotion_code}
piwikTracker.setCustomVariable(3, "PromotionCode", "{$promotion_code}");
{/if}


piwikTracker.setRequestMethod('POST');   /// as suggested if using modsecurity
piwikTracker.trackPageView();
} catch( err ) {}
</script><noscript><p><img src="https://www.DOMAIN.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>


#2

No comments? Piwik team?


(Matthieu Aubry) #3

If goals are triggered, most like the piwikTracker.trackGoal() was output in your page, did you check it wasn’t output?


#4

And what would cause it to track or show as such if the piwikTracker.trackGoal() was not fired?


(Matthieu Aubry) #5

When it matches a URL definition, you can check the Goal name / description for errors


#6

Ok… so below is exact code on a landing page, plus some screenshots at bottom. Every time I hit refresh, on the dashboard Goals Overview widget, all of these increment +1:

[ul]
[li] x Conversions
[/li][li] x Overall revenue
[/li][li] x Overall conversion rate…
[/li][/ul]

Also, NOTHING EVER shows in these dashboard widgets:

[ul]
[li] List of keywords
[/li][li] Best search engines
[/li][li] List of external websites
[/li][li] Custom variables
[/li][li] Length of Visits
[/li][/ul]

Yet, the Visitors in Real Time widget seems to have all the data, shows live traffic with items like:

[ul]
[li] from Google - “keyword phrase” #5
[/li][li] from www.google.com
[/li][/ul]

And in the piwik_log_visit table I see rows with referrer, custom_var_kX+custom_var_vX data.

Under Goals Overview tab, EVERYTHING has NO DATA under “Conversions overview by type of visit”


<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://www.mydomain.com/piwik/" : "http://www.mydomain.com/piwik/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
piwikTracker.enableLinkTracking();
piwikTracker.setRequestMethod('POST');
piwikTracker.trackPageView();
} catch( err ) {}
</script><noscript><p><img src="https://www.mydomain.com/piwik/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>

MORE SCREENS with data on new reinstall:

DASHBOARD: http://s16.postimage.org/ypm4n5iat/dashboard.jpg
GOAL EDIT: http://s15.postimage.org/b38les4zv/goaledit.jpg
TABLES: http://s15.postimage.org/u4i18ae6j/tables.jpg
ROWDATA: http://s16.postimage.org/g2ehcma5h/rowdata.jpg


(Matthieu Aubry) #7

Sorry I don’t really understand what’s going on, it links are nothing works except goals?

try to enable browser archiving in the General settings maybe?


#8

That is enabled.

I know… this has been driving me crazy for weeks now. I’ve been holding up on some product launches because I need to be able to analyze the traffic/activity. I even ran a small PPC campaign for a couple days to get traffic running through it.

I don’t want to launch without reliable analytics and refuse to use google analytics.

When I first setup piwik, it worked great, was impressed… spent so much time making sure I had all my metrics setup. And now that products ready, analytics solution holding up.

I really hope this gets fixed. I’ve really integrated piwik… using both JS tracker and the API with php on some backend processing stuff.

Thanks for the reply Matt, anything else I can try?? Considering the specs I gave on other thread?


(Matthieu Aubry) #9

You can try sending me an email with short bug report to the point + ftp details + piwik url + password and ill try investigate in next 4-5 weeks :slight_smile: