How to track your Google Adwords click

Discussion in 'Google AdWords' started by BhawaniGarg, Jul 29, 2013.

  1. #1
    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/
     
    BhawaniGarg, Jul 29, 2013 IP
  2. tareqjhe1

    tareqjhe1 Well-Known Member

    Messages:
    133
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    150
    #2
    Good,but be best.If you details write here.
     
    tareqjhe1, Jul 29, 2013 IP
  3. rahu_l_

    rahu_l_ Well-Known Member

    Messages:
    535
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    175
    #3
    rahu_l_, Jul 29, 2013 IP
  4. BhawaniGarg

    BhawaniGarg Banned

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Thank you for your comments!
     
    BhawaniGarg, Jul 30, 2013 IP
  5. tanmay.kamath1992

    tanmay.kamath1992 Member

    Messages:
    203
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    35
    #5
    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):
     
    tanmay.kamath1992, Jul 31, 2013 IP