Ready to get started?Download WordPress


Hwo to Capture Keyword? (6 posts)

  1. soulgeek
    Posted 4 years ago #


    I want to capture the keyword the visitor search me from SE, and based on that keyword i want to show ads.

    Supposed if the keyword is: "Law of Attraction" <<Show nothihng>>

    Keyword is : How to be happy <<Show ad>>

    All i want to know, how can i capture the Keyword, which visitor searched in SE and comes to Blog.

    Thanks All

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Something like:

    <?php $searchterm = trim(wp_specialchars($s,1));?>

    should work in search.php

  3. soulgeek
    Posted 4 years ago #

    did not get how will this give me the Search term, visitor used to come to my blog from Search Engine?

  4. rooodini
    Posted 4 years ago #

  5. soulgeek
    Posted 4 years ago #

    Google Adsense????

  6. rooodini
    Posted 4 years ago #

    I'm not sure how you can do what you're asking for. Google Analytics is able to do this, but that might be because they have access to information on both sides i.e. from the search engine and from your site via some javascript.

    I think google adsense does something like what you're suggesting, so it may or may not be any help to you.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.