Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Posts
    571
    Thanks
    25
    Thanked 28 Times in 28 Posts

    Get Keyword From Google

    Hello,
    Is their away to get the keyword someone used on google to find my site? Then once I get the keyword I will store it in a variable and display that variable on the site.

    For example:
    Person X searches google with the following keyword: "PHP Tutorials"
    They see my site in the search listing and click on my link.
    Now I want my site to store the keyword "PHP Tutorials" in a variable since this is the phrase they used on google. Once it is stored in a variable ill echo it onto my site as the main header.

    I want to do this to increase relevancy and have better bounce rate.

    Is it possible?

    Thanks in advance
    Last edited by srule_; 03-03-2008 at 11:13 PM.

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Retrieve and parse the $_SERVER['HTTP_REFERER'] superglobal. If the string contains "Google", then proceed to extract the keywords and process these for display (remove plus symbols, capitalise etc).

  • #3
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you looking for this php class:
    http://www.phpclasses.org/browse/package/2864.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •