Segmentation client side resolve - /etc/segmentation.segment.js | Community
Skip to main content
October 16, 2015
Solved

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

  • October 16, 2015
  • 3 replies
  • 3164 views

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.
Best answer by smacdonald2008
Please read the following AEM doc topic: http://dev.day.com/docs/en/cq/current/administering/segmentation.html

3 replies

yuriy_shestakov
New Participant
December 21, 2017

This page doesn't exist now

New Participant
August 17, 2017

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!

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015