Context hub not working on publish environment? | Community
Skip to main content
shubhamg9400285
Level 2
May 29, 2019

Context hub not working on publish environment?

  • May 29, 2019
  • 25 replies
  • 16768 views

Hi,

I am using context hub for personalization in a component.

for that, I created an audience for chrome users and Firefox users and the activities and so on.

So I authored different content for "default", chrome and firefox audience.

So it is working well and as expected on the author instance.

But when I view the page on PUBLISH environment it is showing default content only and not chrome or firefox content.

Tested on both AEM 6.4 and 6.5

P.S. I have activated page, audience, activities everything.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

25 replies

shubhamg9400285
Level 2
June 5, 2019

Hi Aneet,

I have also tested with a user logged in on publish but still see only default data and not the personalized one.

I have done personlaization based on browser family.

I can see the correct browser family in context hub object in local storage and i am also not logged in as anonymous but as admin.

I am testing all this on we-retail site only.

Timmy's problem and mine are same.

Regards,

Shubham

Adobe Employee
June 5, 2019

Please log a Daycare support case and report the issue.

Enterprise Support

June 5, 2019

The AEM documentation state ContextHub is used when authoring pages. [0]

0. ContextHub

Level 2
June 6, 2019

Hi Joeb,

        Please read the documentation carefully. It doesn’t say it’s meant only for authors. As I mentioned before its a full fledged mechanism which works on both author and publish before 6.4 repository restructuring.

Only difference is on author you get the tools to simulate the behaviour in the UI module of contexthub so you can check if all the configurations are setup correctly and right audiences are selected but on publish it works only with javascript coz you dont want the end user to keep simulating things.

Also think practically what’s the benefit of having it only in author after doing all the configuration.

Also before 6.4 & 6.5 it was working as per the use case in 6.3 for author and publish.

I have raised the support ticket and adobe has identified it as issue.

I hope I have given you enough info for the same answer

shubhamg9400285
Level 2
June 6, 2019

Hi Timmy,

Please let me know when you hear anything from adobe regarding this issue.

It will be wonderful if you can just update this thread with your ticket resolution details.

Regards,

Shubham

Level 2
June 6, 2019

Sure I will.

Level 3
August 13, 2019

Hi timmymathew

Any update about the ticket? I have had this same problem and I have resolved when I restarted the publish instance.

Level 2
August 21, 2019

Hi timmymathew

I am facing the issue with AEM 6.3 SP3 its fine with SP2, It would be helpful if you share the resolution

Level 2
August 22, 2019

Hi shubhamg94002854alissonxavier0105suniln13212398​,

         I create a daycare ticket and they acknowledged that there was an issue at the publish. They will release the fix with the next cumulative pack somewhere in September, 2019. Meanwhile for testing purpose they sent me a code fix package which if you install via the crx/packmgr works fine for me.

I'm attaching the code fix for 6.4 (I haven't tested it yet with 6.5) but its soley for testing purpose and adobe doesn't recommend to use it on production though the fix works fine they want to launch it official release

This message box doesn't allow me to upload the zip file so I've uploaded it to the drive.

https://drive.google.com/open?id=1EXFwqABYTUJG-UTbi63Y2RUYuAGjY1dm

Hope this helps

shubhamg9400285
Level 2
August 22, 2019

Thanks a lot Timmy Mathew