Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jose Malone 121 posts 58 karma points
    Nov 09, 2009 @ 18:23
    Jose Malone
    0

    How to Display Dynamic Content Based on Keyword?

    I have a ton of people that visit my site based on a random keyword which I'd like to Dynamically display either a string of text and a link to the right site. or redirect to a node. I'm curious if anyone has done this before.

  • Chris Koiak 700 posts 2626 karma points
    Nov 09, 2009 @ 19:39
    Chris Koiak
    0

    I think you're going to have to provide more information.

    If the keyword is specified in the url, you could always write an xslt that reads the query string (umbraco.library:RequestQueryString('keyword')) and performs a <xsl:choose> action based on this.

  • Jose Malone 121 posts 58 karma points
    Nov 09, 2009 @ 21:48
    Jose Malone
    0

    Thanks Chris,

    I'm looking at Google Analytics and I see a lot off people enter my site via Google doing a search on these key words and then hit my homepage. What I'd like to do in those instances is display a blurb with a link "Hey, you got here from Google search for [keywords]. You might find this of more interest." 

    I'm assuming there would have to be a Javascript that would pull this data from the user session or something. Like this example: http://www.jdstiles.com/java/whoami.html

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Nov 09, 2009 @ 22:55
    Aaron Powell
    2

    You could look at the UrlReferrer property of the HttpRequest object - http://msdn.microsoft.com/en-us/library/system.web.httprequest.urlreferrer.aspx

    That should contain the google search performed which you can scrape and find their keywords

Please Sign in or register to post replies

Write your reply to:

Draft