Capture URL of a mouse click?
-
Hello,
I was wondering if there was a way to easily capture the URL of a mouse click on a page view. I am trying to capture a user’s path in the raw data without having to convert XY coordinates to URLs. Although hotspots captures the XY coordinates of a mouse click, I don’t get the URL that was visited from this mouse click unless it is another wordpress page on the same domain (thus creating a new page view).
The main example of what I am trying to capture is if someone clicks on a link to a pdf, I would like the URL of that pdf to be captured as well as the XY coordinates. This would allow for easy interpretation of the log data instead of having to determine where all the XY coordinates are on a page by viewing the heat map.
I have a few pages that have a variety of resources for visitors. These are predominantly pdfs. When viewing a user report in hotspots, all I get is a list of XY coordinates. This makes it difficult to determine what people are clicking on at a glance, and XY coordinates still need to be converted to URLs by a human if I were to do any kind of advanced statistical or frequency counting.
I am hoping there may be a simple answer? Is there is a quick snippet of code that can be added to the plugin to capture this in a new field in mysql to come up on user reports? Where would I go about looking to do this in the plugin’s code if I wanted to try writing this functionality on my own and what elements should I consider?
Thank you for your consideration,
Jeremy RIel
- The topic ‘Capture URL of a mouse click?’ is closed to new replies.