Google controls the content displayed on advertisements like Google, and uses common pages to submit connections, we are unable to count how many times Google ads are clicked on our page and who has clicked them. Because these pages are not under our control.
The following describes how to count the number of ad clicks like Google.
<Html>
<Head>
<Title> click count </title>
<Script language = "javascript">
<! --
Function keyDown (e)
{
If (event. srcElement. tagName = 'iframe'
& Event. clientX =-1
& Event. clientY =-1
& Event. fromElement = '[object]') {
// If you need to submit to other pages
// Document. adform. submit ();
Var num = parseInt (shownum. innerHTML );
Shownum. innerHTML = num + 1;
}
Return false;
}
Document. onmousemove = keyDown;
Document. onmouseover = keyDown;
Document. onmouseout = keyDown;
Document. onblur = keyDown;
// -->
</Script>
</Head>
<Body>
<! -- If you want to pass parameters to another page, use the following method. // -->
<Form name = "adform" method = "post" action = "ad_click.php" target = 'ad _ click'>
<Input name = "uid" value = '000000' type = "hidden" id = "uid">
<Input name = "keyid" type = "hidden"
Value = '000000' id = "keyid">
<Input name = "aid" type = "hidden" id = "aid">
</Form>
<Iframe name = 'ad _ click' marginwidth = "0"
Marginheight = "0" frameborder = "0" scrolling = "no"
Sr