Hello,
I am using Adobe DTM to deploy AT.js (0.9.6) and a Global MBox.
When I create my form based Experience in Adobe Target, and choose my HTML offer, I'm noticing that all of the HTML content is stripped away. Content inside an <style>, or <script> tags are preserved, but the HTML content is removed.
My guess is that AT.js inserts itself in the <HEAD> tags, and HTML content is not supported here. But how can I use a Global MBox but target the insertion in the page body, or alternatively, how can I configure the offer so all of the HTML content is safely encoded?
Solved! Go to Solution.
You are correct. The at.js fires the global mbox request from the HEAD of the document and so HTML content can't be rendered there. Depending on your use case there should be several options available for adding HTML with the visual composer:
The global mbox was designed for the visual composer so you may find those options work better for you. However, if you find that you must use the form composer you have these options available.
Here's a help doc on adding a regional mbox to your page: mboxCreate(mbox,params)
Hi Joris,
When you are using a Form based experience Composer to create an experience , you will be definitely choose an mbox which will identify the location on your page where you are trying to deliver content of the experience and Hence the content ( Htrml offer or any thing else) will be delivered to the chosen mbox location. So your guess that AT.js inserts itself in the <HEAD> tags, and HTML content is not supported here doesn't hold good here.
Also, Are you using document.write in the HTML offer ?.Can you please share Adobe Target Account credential & Activity URL in a private message on forum so that we can debug the issue at our end.
Regards
Parit
Views
Replies
Total Likes
You are correct. The at.js fires the global mbox request from the HEAD of the document and so HTML content can't be rendered there. Depending on your use case there should be several options available for adding HTML with the visual composer:
The global mbox was designed for the visual composer so you may find those options work better for you. However, if you find that you must use the form composer you have these options available.
Here's a help doc on adding a regional mbox to your page: mboxCreate(mbox,params)
Hi Ryan,
Thanks for the detailed reply. I think your suggestion to use the global mbox, but write a script to insert the HTML content is my best option here.
I played around with regional mboxes, but there was just too much flashing.
I also want to avoid using the VEC. I have around 150 dynamically generated HTML offers which I'm uploading into Target using the API. When I use VEC to add custom code, I can't select a pre-existing offer, I can only paste in code.
Views
Replies
Total Likes
Glad that helped. One other thing that might work for you in the VEC is the swap offer option. If you can select the appropriate div/container on the page that matches the scope of your API uploaded HTML offers you should be able to then pick from the uploaded offer set which one you want to replace the container you selected in the VEC.
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies