Want to store what keyword was used if ref from Google

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tedpottel@gmail.com

    Want to store what keyword was used if ref from Google

    Hi,
    I am trying to write my own stat program. I would like to be able to
    store in a database what keywords where used to arrive at my website.
    How can I get that informtion? I imagin it is really simple.
    -Ted

  • Hendri Kurniawan

    #2
    Re: Want to store what keyword was used if ref from Google

    tedpottel@gmail .com wrote:
    Hi,
    I am trying to write my own stat program. I would like to be able to
    store in a database what keywords where used to arrive at my website.
    How can I get that informtion? I imagin it is really simple.
    -Ted
    >
    If you meant refferer: $_SERVER['HTTP_REFERER']
    But be aware that it can be spoffed

    Hendri Kurniawan

    Comment

    • Bocah Sableng

      #3
      Re: Want to store what keyword was used if ref from Google

      On Apr 20, 8:28 am, tedpot...@gmail .com wrote:
      I am trying to write my own stat program. I would like to be able to
      store in a database what keywords where used to arrive at my website.
      How can I get that informtion? I imagin it is really simple.
      Maybe the variable 'q' from referer's query string, but check first
      whether its referer from google domain or not.
      Just try googling some keywords and see where your keywords lies.
      As Hendri's response, it can be spoofed.

      HTH



      Comment

      Working...