This is for People who are using Google Adwords to promote their website. Whenever you submit your URL in adwords account, provide them link with trackingid query or url, for an instance :- http://www.yoursite.com/?url=gadwords&trackingid=true And copy paste below code to your index page, or home page. Now, whenever any one will click on your Add, You will get mail Receiving below information :- 1). IP of person. 2). Useragent info [Includes Browser info, OS info] 3). Referer :- from where did he come to your site, if that was from google, what did he searched in google , you can see that in “q=” section of google link Read full article at http://www.bhawanigarg.com/blog/how-to-track-your-google-adwords-click/
Just directly get the PDF file of that post from here : http://www.bhawanigarg.com/blog/wp-content/uploads/2013/07/How-to-track-google-adwords-clicks.pdf
This is for People who are using any Adwords account to promote their website. Whenever you submit your URL in adwords account, provide them link with trackingid query or url, for an instance :- http://yoursite.com/?url=gadwords&trackingid=true And copy paste below code to your index page, or home page. Now, whenever any one will click on your Add, You will get mail Receiving below information :- 1). IP of person. 2). Useragent info [Includes Browser info, OS info] 3). Referer :- from where did he come to your site, if that was from google, what did he searched in google , you can see that in "q=" section of google link 4). And time, When did he come to your page. Change $to part in 3rd line with your email id in double quotes. Chaneg to your website email id in mail function.. ########## Below is the Code ##################### <?php if(isset($_GET['url']) || isset($_GET['trackingid'])) { $to = "your_email_id_here@gmail.com"; // change this to your email $ip = $_SERVER['REMOTE_ADDR']; $ua = $_SERVER['HTTP_USER_AGENT']; $referer = $_SERVER['HTTP_REFERER']; $url = $_GET['url'] ? $_GET['url'] : "None "; $tid = $_GET['trackingid'] ? $_GET['trackingid'] : "None "; $c = "URL = ".$url."\r\nTracking ID ".$tid."\r\nIP: ".$ip."\r\nUser-agent ".$ua."\r\nReferer :- ".$referer."\r\nDate: ".gmdate("H:i d-M-Y"); $mail = mail($to, "Adwords Click Found", $c, "From: no-reply@yourwebsite.com"); } ?> Code (markup):