Segmentation client side resolve - /etc/segmentation.segment.js | Community
Skip to main content
Oct 16, 2015 2:28 AM UTC
Solved

Segmentation client side resolve - /etc/segmentation.segment.js

Hi,

I'm new to use CQ5 Segmentation. I found that every time when accessing the page, below JS file will be loaded:

http://localhost:7503/etc/segmentation.segment.js

This JS is including all the segmentation information, i.e.

CQ_Analytics.SegmentMgr.register("/etc/segmentation/geometrixx/left","( ( clientcontext.mouseposition.x < 400 ) )",0);
CQ_Analytics.SegmentMgr.register("/etc/segmentation/geometrixx/right","( ( clientcontext.mouseposition.x >= 400 ) )",0);

Is this CQ OOTB feature? If yes, does this mean if I have 100 segmentation, CQ will return all of 100 segmentation information in JS in each request?
Is there any way to restrict the content in segment.js, i.e. only load segmentation from particular path?

Thanks

Jasmine

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

3 replies

yuriy_shestakov
Level 3
Dec 21, 2017 9:59 AM UTC

This page doesn't exist now

Translate
Level 2
Aug 17, 2017 11:22 PM UTC

Could you elaborate further? If the /segmentation.segment.js is too large, what are the best practices to improve page loading speed? e.g. make it cached in Dispatcher? Thank you!

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC
Please read the following AEM doc topic: http://dev.day.com/docs/en/cq/current/administering/segmentation.html
Translate