I’m using AEM’s default targeting to add an experience for a user. I’m using “gender equals male” as a simple trait to try the sample text to show up.
I’ve setup to create an experience for logged in users to see different TEXT based on their gender (as an example). And on Publishing the content and login into to our portal on Publish, I cannot see the experience (a different text should appear). Not even the default would appear.
Few observations:
- On Author i can see the Audience traits under /etc/segmentation/contexthub/my-audience but the same is not there on Publish instance. I'm assuming this will be published along with the page, but is not happening.
If the logged-in user does not have permission to /content/campaigns, then i see this error in the logs. If i give permissions then i do not see. Can i assume the component is loading?
2017 03:01:22.427 *WARN* [192.150.10.207 [1498374082395] GET /content/brand/en-us/emp.html HTTP/1.1] com.day.cq.personalization.impl.AreaServiceImpl Area at /content/campaigns/ups/master not found or not accessible.
If we look at the page source, we see the below. "campaignName" is empty?
<div class="target parbase"> <script type="text/javascript"> if (window.ContextHub && ContextHub.SegmentEngine) { ContextHubJQ(function() { ContextHub.SegmentEngine.PageInteraction.Teaser({ locationId: '_content_brand_en-us_comms_jcr_content_searchpar_title_631229628', variants: [{"path":"/content/brand/en-us/comms/default","name":"default","title":"Default","campaignName":"","thumbnail":"/content/brand/en-us/comms.thumb.png","url":"/content/brand/en-us/comms/_jcr_content/searchpar/title_631229628.default.html","tags":[]}], strategy: 'first', trackingURL: null }); }); } </script> <div id="_content_brand_en-us_comms_jcr_content_searchpar_title_631229628" class="campaign "> <noscript><div class="default title"> <div class="ups-title"> <h1 class="title-text">Default Title</h1> </div> </div> </noscript> </div>
We are enabling the below url's through Dispatcher.
/0024 { /type "allow" /url "/etc/segmentation.segment.js" } /0025 { /type "allow" /url "/etc/clientcontext*" } /0026 { /type "allow" /url "/libs/cq/personalization/components/clickstreamcloud/content/config.json" } /0027 { /type "allow" /url "/libs/wcm/stats/tracker.js" } /0028 { /type "allow" /url "/libs/cq/personalization/*" } /0062 { /type "allow" /glob "* /libs/cq/personalization/*" } # enable personalization
What am i missing?