Possible to calculate CTR (Click Through Rate)?

Does anybody know, if it’s possible to calculate a links CTR from visitors (clicks) and pageviews (impressions) and show it in a graph?

I know how to calculate the CTR: clicks / impressions x 100 = CTR%

but I don’t know if it’s possible to store the information in piwik and then show the CTR in a graph?

Hope anybody can help.

Thanks,
Daniel

The correct way to do it would see if its possible to get a reports analysis from lets say DART then take an API feed from it and bring that into piwik. Piwik tracks page views and referrers etc but DART does CTR rates (since it serves ads) What ad serving system are you using?

Hi lesjokolat,

I’m using Orbit Open Ad Server - it’s open source.

You can see the website here: http://orbitopenadserver.com/

So how do you get reports there? Does it allow for an API export?

Custom functions in wordpress display the impressions and clicks, but the issue is we want the CTR on the same graph as piwik.

The piwik API is called when the open ad server registers a user click to generate analytics and we are implementing a piwik api call to generate analytics on impressions as well.

I am working on this project as well. There are two API calls in the ad server which generate piwik analytics, one for ad impressions, and one for ad clicks. A custom variable is used to distinguish click and impression analytic visits. My current issues are:

  1. Calculating a custom dataset of CTR for the piwik graph module. WIth impressions and clicks, I can filter by the custom variable and the graph automatically counts the results. For CTR I need extra calculation besides the standard count of a filtered recordset.

  2. Displaying multiple custom data lines for impressions, clicks and CTR on the same graph.

Another idea I had was querying the archive_blob tables directly and building the graph in jqplot, however I would like to check first the piwik does not already have this capability built.

ok my thought was actually pulling an api of a finished calculated report from the actual ad server.

DART or OPENX allow CTR reports as i understand it so my thought was to see if an API of the finished calculated results was possible.

Instead of it being n the same graph what if you had 3 reportlets in a dashboard (and excuse my naivetee) but

1 for ad impressions
2 for ad click
3 a custom variable based on a calculation of 1 and 2 (If piwik allows any sort of custom API variable manipulation this way I dont honestly know, but a custom calcuated metric perhaps?)

Sounds like you both are 90% there Im afraid its beyond my reach to help. Hope I may have given another user an idea to solve it worst case this would be an incredibly powerful feature were it possible when leveraged against GA or Omniture.

Good Luck

This is quite an advanced question that would require much thinking so i’m afraid I can’t help, but everything is possible for sure, by building a new plugin to extend the VisitsSummary graph for example. Please contact: http://piwik.org/consulting/ if you 'd like to Piwik experts to help!

Thank you to your both, for helping us with our question.

I have now sent a mail to Piwik Consulting, asking them for help.

Once again, thank you!