Can I track an image being clicked?


#1

Hi,

We are considering using Piwik for our ASP.NET application. Our application allows our subscriber to upload ad images and publish the ads on a certain url; for which url, we will create an idSite and put tracking code on the page for this url.

Now, if there are 3 images on this page, and we’d like to track the # of clicks that each image gets…is there an existing API call that we can use for this purpose?

Note: this url will lead to other pages, but the 3 images will be on all of them. What I mean is: the starting url is: http://mysite.com/AAA/.../1 (the idSite will be created based on this url), then the user click the “Next” button on this page and go to http://mysite.com/AAA/Form, then the user fill in a form here, click “Submit” and go to the final page, which url is: http://mysite.com/AAA/ShowResult.

So i have 2 questions:

  1. Can we dynamically put the same tracking code that was generated based on the same idSite to all 3 urls listed above? The user will go through all 3 steps and hit all 3 urls mentioned above.

  2. The user could click on any image ( a pop-up window will show upon click) on any page - it will be the same user though, in the same session. How do I track the clicks on each image?

Note: there will be different users hitting the same url (http://mysite.com/AAA/.../1) simultaneously; so we need to consider this as well.

Please let us know exactly what to use.

Thanks,

SoftDev


(Matthieu Aubry) #2

Hi there,

Now, if there are 3 images on this page, and we’d like to track the # of clicks that each image gets…is there an existing API call that we can use for this purpose?

Please consider using Content Tracking which is a feature designed to let you track how many times a user saw a given block of content (text, image, etc.) and how many times they clicked on it. see the doc here: Content Tracking - Analytics Platform - Matomo