Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Jasmine_Liu
Level 2
Level 2

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

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10
3 Replies
smacdonald2008
Correct answer by
Level 10
Level 10
bc11043975
Level 3
Level 3

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!