How do I Pass on Search Term to 1ShoppingCart?

3 replies
Ok. I'm stuck. I need your help.

I need to track conversions when they come in organically on the search engines. Currently, I am able to track to the shopping cart with cookies + variables added to the URL's. Google Analytics picks up a lot of this stuff for me, which allows the tracking.

Problem is -- I can't track the organics.

I want to pass on the search term that landed the person on my landing page to Aweber, then ultimately to 1ShoppingCart.


Can anyone help? Any suggestions on a PHP code I can add to chomp the data?


Thank you a MILLION!


-- Casey
#1shoppingcart #aweber #pass #search #term
  • Profile picture of the author bs5143
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[638567].message }}
    • Profile picture of the author csstanton
      Does anyone have any tips on how to do this? It seems that it would be a simple PHP code, but it's not my expertise. Any pointers?


      Thanks for the help!
      Signature
      Casey Stanton
      Outdoor Guy

      Twitter: twitter.com/CaseyStanton
      {{ DiscussionBoard.errors[643247].message }}
  • Profile picture of the author RedMatrix
    Casey, search engines do pass organic keywords, you just need to check them.
    I'm sure there's PHP that will allow you to see them, but I am not familiar with the
    tokens used.

    For example:

    $keyword = $_GET["token"]

    where token is the word used to pass a variable. Look at this URI:

    http://yoursitename.con/landing-page.php?token={variable}

    But I don't know what Google uses as its token to pass this data.
    Signature

    ~Dave

    {{ DiscussionBoard.errors[644701].message }}
  • Profile picture of the author RedMatrix
    I have finally found the codes! (For google that is)


    //find out what keywords they entered in search engine
    $parsed_url=parse_url($_SERVER['HTTP_REFERER']);
    if(stripos($parsed_url['host'],'google'))
    {

    parse_str($parsed_url['query'],$parsed_query_string);
    $keyword_string=$parsed_query_string['q'];
    $keywords=explode('?',$keyword_string);
    }


    All of they words the visitor typed into google search are in the variable $keywords.
    Signature

    ~Dave

    {{ DiscussionBoard.errors[714290].message }}

Trending Topics