1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Get search engine keyword

Discussion in 'PHP' started by mkeen, Apr 18, 2005.

  1. #1
    Hi, is there a way to get the keyword used when a user searches on the 3 main engines?

    I would like to be able to use this when im tracking my sales to see which keywords are bringing in the most sales.
    SEMrush

    Thanks
    Matthew
     
    mkeen, Apr 18, 2005 IP
    SEMrush
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,220
    Likes Received:
    778
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can grab the referer from $HTTP_REFERER and then do some string_pos functions to find the location of the 'q' in the string. Then find the next '&' and grab everything between it as the search string. That's how I did it (don't have the code here now).
     
    T0PS3O, Apr 18, 2005 IP
  3. mkeen

    mkeen Peon

    Messages:
    186
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks TOPS30 ill look into doing that now.

    Matthew
     
    mkeen, Apr 18, 2005 IP
  4. mkeen

    mkeen Peon

    Messages:
    186
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ive had a good go at this now and still cant get it working, does anyone have the code available?


    Thanks
    Matthew
     
    mkeen, May 10, 2005 IP