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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
Jasmine_Liu
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Jasmine_Liu
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Jasmine_Liu
Level 1

15-10-2015

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

View Entire Topic

Avatar

Avatar
Validate 1
Level 2
bc11043975
Level 2

Likes

8 likes

Total Posts

23 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
bc11043975
Level 2

Likes

8 likes

Total Posts

23 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
bc11043975
Level 2

17-08-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!