Determine whether a visitor came from an AdWords link

Discussion in 'C#' started by purplelizzard513, Jul 31, 2008.

  1. #1
    Hi,

    I was wondering if it was possible to use ASP to determine if a visitor reached one of my landing pages from a AdWords link or from an in-site link, web search or just typing in the URL. I don't think checking the HTTP Referrer will work because Google redirects visitors to the landing page when they click on an ad, so the Referrer header will just show the page that displayed the ad (which could be a Google Search.)

    Thanks for any help.
     
    purplelizzard513, Jul 31, 2008 IP
  2. Sleeping Troll

    Sleeping Troll Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yeah, ask the user!
     
    Sleeping Troll, Aug 5, 2008 IP
  3. dylanj

    dylanj Peon

    Messages:
    173
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #3
    For AdWords:
    You can change the URL to go to in the Google Ad options by logging into your AdWords account, to something like this: http://www.yoursite.com/track.asp?ref=adwords
    Then, you can do something like this:
    
    If Request.Querystring("ref") = ("adwords") Then
      'do something if user clicked AdWords ad
    End If
    Response.Redirect("/")
    
    Code (markup):
     
    dylanj, Aug 8, 2008 IP