How do I set up ad tracking in Adsense?

I know my question is about Custom Click Tracking for adsense

but I ask again about this because I need more answers to the above question. only one answer is already there, But that’s not what I need. can people answer the same question again please or answer this question?

Actually, I want to show a line diagram similar to google analytics showing how many times an ad was shown on mysite and how many times an ad was clicked. Can i achieve this?

+6
source share
2 answers

Have you tried this? I answered the question that refers to you. my answer: Although there is no good way, it is quite easy to do. First of all, put your adsense code in a div as:

<div id="adsDiv" class="adsDiv"> <!--here your adsense code--> </div> 

now in your jquery code use this:

 $(".adsDiv").on("click", function(){ setTimeout(function() { //here call to php function via ajax etc and in php you can easily check which user is currently online via session who clicked on ad. }, 5000); }); 

Please note that your php function will be called after 5000 ms, which means the user clicked and viewed your ad. You can increase or decrease it according to your needs.

+1
source

You can check your specific click in your part of the report, as shown below. enter image description here

Here you can check the addition of 970X250 size by pressing 7 times, and others - ..

+1
source

Source: https://habr.com/ru/post/985838/


All Articles