AEM Personalization Contexthub based on Cookie
I have a requirement to personalise the content of my site depending on Section selected by the visitor.
My site is currently split into 3 sections SectionA/SectionB/SectionC. Assuming a visitor selects the Section A ,we save this selection in the cookie and have to do the personalization on the basis of the value in this cookie.
I wrote the JS files for 3 sections and able to acheive the personalization by using script reference. But the problem is sections on the site are authorable and if in future author add the section then i have to write JS for it so that it can be referred in the script reference. Can anyone suggest any solution to my use case.

