I am using Sitecore-9 with Sitecore-IP-Geolocation-Service enabled.

I have a rendering based on presentation rule as follows:

  1. Where country == United states means we are showing unauthenticated rendering.

  2. If its other countries we are showing main rendering.

Below rule based rendering.

enter image description here

  1. Issue is what ever country I gave in the rules condition always fails.

  2. Even I tested with TestIp page. Its showing correct location information.

enter image description here

  1. Even I tried country code concepts, explained in below link. This also has fails for all the country-codes.
    Ref: https://sitecore.stackexchange.com/a/1570/2311

How to validate the rules with which country it is taking and why our rules getting failed.

  • Can you check this article grantkillian.wordpress.com/2016/10/31/… ? Commented Apr 11, 2019 at 13:03
  • Rule takes country from Sitecore.Analytics.Tracker.Current.Session.Interaction.GeoData.Country. Make sure that tracker GeoData is filled and country is equal to US.
    – x3mxray
    Commented Jun 26, 2019 at 11:41


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.