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

AEM Targeting (Contexthub) - Avoid default context to 'flash'

Avatar

Avatar
Give Back
Level 1
davids23429739
Level 1

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Give Back
Level 1
davids23429739
Level 1

Likes

2 likes

Total Posts

16 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
View profile
davids23429739
Level 1

05-12-2019

Hi All,

I'm setting up Targeting using ContextHub as the engine for a project and it's pretty much done.

However, I noticed that when an audience matches a defined segment and the ContextHub replaces the default content with the targeted content it looks kinda ugly.

Is there a way to not display the default content for a component if it has a matching segment? I just don't want the end user to see how the default content appears and then when the JS runs it gets replaced with the targeted content. It looks weird.

This is an example of the JS that the contexthub injects.

<script type="text/javascript">

                if (window.ContextHub && ContextHub.SegmentEngine) {

                    ContextHubJQ(function() {

                        ContextHub.SegmentEngine.PageInteraction.Teaser({

                            locationId: '_id_of_my_component',

                            variants: [{..}]

                            strategy: '',

                            trackingURL: null

                        });

                    });

                }

</script>

After that piece of code runs, if the component matches a segment based on the defined traits then the default content is replace with the targeted one.

Is there a way to make this process little bit smoother, and avoid the display/hide of the default content?

Thanks!

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Jeanmaradiaga
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Jeanmaradiaga
Level 1

06-12-2019