Skip to content

[DEFECT] Setting The Visitor's Country as a Rules Engine condition is not setting the Persona in the Rule Action #34192

@DeanGonzalez

Description

@DeanGonzalez

Problem Statement

A "Set Persona" action can be triggered in the Rules engine by checking the condition of a Visitors Country. I the screenshot below you can see that on demo.dotcms.com running the latest Evergreen I set the condition that if the visitor's country is Canada, then set the persona to Eco Enthusiast:

Image

However, regardless of setting the rule to fire on Every Page or Every Request, the persona is not set on the front end of the site.

Steps to Reproduce

2025-12-31_14-39-29.mp4

Go to the rules engine and add a new rules engine rule that set a condition where if the visitor's country is Canada, then add an action to Set Persona to Eco Enthusiast

Image

Add the following Code snippet to both the default persona AND also to the Eco Enthusiast personalized versions of the demo homepage:
Visitor: $visitor<br> This is my persona: $visitor.persona

Then use a VPN to set the country to Canada and verify location to Canada using a google verification of locale. Then go the the front end homepage. The $visitor.persona is always null and never gets set to the Eco Enthusiast persona by the rules engine.

The Eco Enthusiast persona should be set if the users location is Canada

FreshDesk Issue: https://dotcms.freshdesk.com/a/tickets/34767

Acceptance Criteria

The Eco Enthusiast persona should be set (using the steps above) if the users location is Canada. This should also work for any other country being set by the rules engine rule.

dotCMS Version

dotcms-core / 25.12.29-01 - Evergreen tested on demo.dotcms.com

Severity

High - Major functionality broken

Metadata

Metadata

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions