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

SOLVED

AEM SPA Limitation

1982luca
Level 8
Level 8

Hello everyone,

 

Any Limitation for Analytics or Launch in the case we have SPA in AEM?

Thanks 

1 Accepted Solution
hugo_louder
Correct answer by
Level 1
Level 1

Hi @1982luca 

 

There is no limitation as the Adobe Launch is built to support SPA, however, keep in mind that a SPA does not have a usual page load cycle, especially if you have client-side URL routing, so you will need to implement some events in your SPA to tell Adobe Launch when something is happening in your page/view. It's recommended three custom JS events:

 

event-view-start - to fire whenever a view start to load

event-view-end - to fire whenever a view finished loading - here it's where you will implement your Analytics)

event-action-trigger - to fire whenever there is an interaction with something on your website. 

 

You also should have a data layer set and updated before loading Adobe Launch. 

 

You will then set up all your Adobe Launch rules and triggers based on these events. 

 

I just deployed analytics for a SPA website and did not face any limitation doing what I just mentioned above

 

Here is a guide with more details:

 

Keep in mind that for Adobe Target you will face some limitations, to run VEC in Adobe Target you will need to implement a function called TriggerViews and will be able to run only A/B test and XT using the Visual Experience Composer.

 

I hope that helps.


Cheers

 

 

 

 

 

 

View solution in original post

1 Reply
hugo_louder
Correct answer by
Level 1
Level 1

Hi @1982luca 

 

There is no limitation as the Adobe Launch is built to support SPA, however, keep in mind that a SPA does not have a usual page load cycle, especially if you have client-side URL routing, so you will need to implement some events in your SPA to tell Adobe Launch when something is happening in your page/view. It's recommended three custom JS events:

 

event-view-start - to fire whenever a view start to load

event-view-end - to fire whenever a view finished loading - here it's where you will implement your Analytics)

event-action-trigger - to fire whenever there is an interaction with something on your website. 

 

You also should have a data layer set and updated before loading Adobe Launch. 

 

You will then set up all your Adobe Launch rules and triggers based on these events. 

 

I just deployed analytics for a SPA website and did not face any limitation doing what I just mentioned above

 

Here is a guide with more details:

 

Keep in mind that for Adobe Target you will face some limitations, to run VEC in Adobe Target you will need to implement a function called TriggerViews and will be able to run only A/B test and XT using the Visual Experience Composer.

 

I hope that helps.


Cheers

 

 

 

 

 

 

View solution in original post