how to implement target-global-mbox (at.js 2.x) for a SPA inside of iframe

Avatar

Avatar
Give Back 5
Level 2
ca90883831
Level 2

Likes

7 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 2
ca90883831
Level 2

Likes

7 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
ca90883831
Level 2

23-11-2020

Hi, 

 

Our newly developed mobileweb (MW) experience is an Angular based SPA that will be hosted inside of iFrame on many of our client's sites. We plan to implement at.js 2.x using Tealium (TMS). 

 

Since Target VEC (visual based exp composer) doesn't support iframe, we are exploring FEC option (form based exp composer). Below are some FEC topics that we are running researches on: 

 

  1. Do we still need to create multiple reginal mbox using get/applyoffer function or we can just utilize one global mbox?

  2. If the latter, is there any resource that shows how to do so? 
  3. Can we implement both global and reginal mbox for our MW SPA? 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 10
Employee
mosesmaxen
Employee

Likes

11 likes

Total Posts

10 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Give Back 5
Give Back 3
Boost 3
View profile

Avatar
Boost 10
Employee
mosesmaxen
Employee

Likes

11 likes

Total Posts

10 posts

Correct reply

1 solution
Top badges earned
Boost 10
Boost 5
Give Back 5
Give Back 3
Boost 3
View profile
mosesmaxen
Employee

23-11-2020

Hello @ca90883831 , 

 

With the help from a colleague please refer to the answers below:  

 

  1. Regional mboxes can be created using getOffer/applyOffer individually as well as in batch using getOffers/applyOffers. Additionally you can use the FEC using the Target Global Mbox as well if preferred.
  2. If you wish to use AT.js to execute the content, the offer code must be delivered as HTML/JavaScript. Other offer code types (JSON etc.) can be used if the app will consume it and render experience.
  3. Both global and regional mboxes can be used in SPA. Both types of mboxes can be made compatible with a SPA with the right design and architecture.

 

Answers (0)