[Plugin: WP-Ad-Manager] Use javascript to count clicks
-
I was wondering if it has been considered to use javascript in order to track the clicks rather than the current redirect. I know if I hover over a link and it isn’t going directly to the site I want I wonder what that is all about and sometimes even type in the address instead.
What could be done is that if javascript is not enabled the current redirect system would occur. If javascript is enabled the link address is direct to the site but an onclick would register the click and then send the user to the site.
I was looking at the code tonight to see if this could be done but since the link code is processed through the editor rather than a textfield you don’t know exactly what sort of html you are dealing with.
If the creation form was changed so that you
- Uploaded an image
- Enter the link to go to
Then the display code could generate the correct link based on whether javascript is enabled or not. Interested in your thoughts on this.
Also happy to help with this if this is considered worthwhile, or with anything else code related I can help with. I rely on this plugin so I’m happy to help make it the best it can be.
Cheers,
Nick
- The topic ‘[Plugin: WP-Ad-Manager] Use javascript to count clicks’ is closed to new replies.