Issue piwik goal tracking calls correctly
authorTom Hughes <tom@compton.nu>
Wed, 5 Sep 2012 20:10:23 +0000 (21:10 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 5 Sep 2012 20:10:23 +0000 (21:10 +0100)
app/views/layouts/_piwik.html.erb

index 0ba307437c53393fc5ecc04110014314a199b142..38db9692f2b06dfcb496675b8f6e639fcb7f1594 100644 (file)
@@ -6,7 +6,7 @@ _paq.push(['setTrackerUrl', u+'piwik.php']);
 _paq.push(['trackPageView']);
 _paq.push(['enableLinkTracking']);
 <% if flash[:piwik_goal] -%>
-_paq.push(['setSiteId', <%= flash[:piwik_goal] %>);
+_paq.push(['trackGoal', <%= flash[:piwik_goal] %>);
 <% end -%>
 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js';
 s.parentNode.insertBefore(g,s); })();