I need to track clicks on content that is dynamically loaded. The content is ads by Google adsense. You include their script in the header of a webpage:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000"
crossorigin="anonymous"></script>
and then the ads are dynamically placed on different locations of the website.
Because we are facing the problem of fraudulent clicks, we'd like to track who is clicking on them. Is it possible to achieve this through Javascript?
Is it a good idea to intercept all clicks on the web page and then check if the clicked content is an ad?
Are there certain characteristics of the dynamically loaded ads that make them identifieable?