sitecoresitecore7.5

Can I use a Query String to drive personalized content in Sitecore 7.5?


I'm trying to display personalized content on a page IF I have clicked on a specific link on a specific page. My thought was to have a parameter on the link such as:

<a href="Product-Page/?home=1">Go to product page</a>

Then, on "Product Page", hopefully using the rules engine, check if the parameter home exists in the query string. If so, then display a piece of content.

I can't seem to figure out the best way to do this with Sitecore 7.5. Maybe this is the wrong approach.


Solution

  • Out of the box in Sitecore 7.5 there is no rule for using the querystring. but you can easily create a rule and use with the personalize feature from Sitecore.

    See http://blog.martinmiles.net/post/rules-engine-and-sitecore-personalization-based-on-url-query-string-parameters for a complete description and Example include a link to github with the code https://github.com/MartinMiles/Personalization