Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

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

Avatar

Former Community Member

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

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Correct answer by
Level 10

Avatar

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!

Avatar

Level 4

This page doesn't exist now