troX
August 25, 2012, 4:16pm
#1
Hi there,
I set up an AB test with different anchor texts and now want to track the number of clicks on each of the two links.
I found this solution:
<a href="#" onClick="javascript:piwikTracker.trackLink('/Register/Now', 'link');">Register now!</a>
<a href="#" onClick="javascript:piwikTracker.trackLink('/Register/Here', 'link');">Register here!</a>
But I can’t find out where to view the click numbers in the piwik backend.
One more thing: Would it be better to use this code?
<a href="#" onclick="javascript:piwikTracker.trackPageView('Register/Now');">Register now!</a>
matthieu
(Matthieu Aubry)
August 25, 2012, 9:16pm
#2
it’d be better to use trackPageView() indeed. The trackLink() should appear in Actions > Outlinks.
matthieu
(Matthieu Aubry)
January 10, 2017, 10:19pm
#3
Hello,
We have released a plugin that works on top of Piwik to run A/B Tests, Split Tests, Experiments see http://www.ab-tests.net/ . A full list of features is mentioned on the Marketplace at https://plugins.piwik.org/AbTesting
It lets you easily run experiments on websites, servers, apps and in campaigns and has lots of features to customize your experiment and to define your success and your expectations for an experiment to increases your sales, revenue, conversions, pageviews, and more.
More docs are available at: User Guides , FAQ , Developer docs