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

Inclusion of mbox.js in AEM page

Avatar

Avatar
Validate 1
Level 2
prajwalreddy
Level 2

Likes

5 likes

Total Posts

31 posts

Correct Reply

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

Avatar
Validate 1
Level 2
prajwalreddy
Level 2

Likes

5 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
prajwalreddy
Level 2

19-09-2018

We are integrating with Adobe target with AEM 6.3. We are using the Experience fragments approach to personalize the content. However, We already have an mbox included in the template. When we add Target cloud service in AEM and load the page. mbox.js is throwing errors. I have read in one of the documentation that if we want to include any custom mbox.js it should be done via cloud service upload option.

1.Could you please confirm if we are configuring the cloud service there is no need of adding any additional mbox.js on the page as it is already referring to the mbox using the cloud service?

2. Also, If we upload the custom mbox.js would it update the mbox configuration in the adobe target?

Let me know if you need any other information.

Replies

Avatar

Avatar
Boost 5
Level 4
pranavkaushik
Level 4

Likes

39 likes

Total Posts

37 posts

Correct Reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Level 4
pranavkaushik
Level 4

Likes

39 likes

Total Posts

37 posts

Correct Reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
pranavkaushik
Level 4

20-09-2018

Hi Prajwal

1) You need to include the cloud service libraries at the page also in the <head> section.

Detail you can find at:

Developing for Targeted Content

2) Yes.you just need to Specify a custom mbox.js file to use as necessary.

Details you can find at:

https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/target-configuring.html

Hope this helps.

Thanks

Pranav

Avatar

Avatar
Validate 1
Level 2
prajwalreddy
Level 2

Likes

5 likes

Total Posts

31 posts

Correct Reply

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

Avatar
Validate 1
Level 2
prajwalreddy
Level 2

Likes

5 likes

Total Posts

31 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
prajwalreddy
Level 2

20-09-2018

Thanks Pranav for the reply..It helps

I have follow-up question on this topic. Now we have included the cloudservice related script. It is also including the mbox.js with in AEM and calling it based on the clientcode that we provide. We see a difference in the mbox.js file that is in  this location /etc/clientlibs/foundation/testandtarget/mbox.js and the one in the target.

Could you please let me know if it is going to load the mbox hosted on target on the fly? If Yes, If we update the mboxParameters() function in the target directly we should need not load it as custom js right?

/etc/clientlibs/foundation/testandtarget/mbox.js

Avatar

Avatar
Boost 5
Level 4
pranavkaushik
Level 4

Likes

39 likes

Total Posts

37 posts

Correct Reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Level 4
pranavkaushik
Level 4

Likes

39 likes

Total Posts

37 posts

Correct Reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
pranavkaushik
Level 4

20-09-2018

Hi Prajwal,

Yes the default mbox  file is uses to  create mboxes is located at /etc/clientlibs/foundation/testandtarget/mbox/source/mbox.js.

It will load and i dont think that you need to use custom js there.

Hope this helps.

Regards,Pranav