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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

gabe2
gabe2
Offline

Badges

Badges
3

Accepted Solutions

Accepted Solutions
0

Likes

Likes
1

Posts

Posts
1

Discussions

Discussions
0

Questions

Questions
1

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by gabe2
Customize the badges you want to showcase on your profile
HTML Offer escaping Javascript
Avatar
Ignite 1
Level 1
gabe2
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Ignite 1
Validate 1
Boost 1
View profile
gabe2
- Adobe Target
I'm trying to set up a new Experience in Target Premium that uses an HTML offer. However, the script tag and javascript is being escaped. How can I prevent this? I have read in multiple places that it is possible to use javascript inside an HTML offer. Here's the code I am inserting into the html offer: var jvUser = "returning"; Here's the code that is rendering on our page:var mboxCurrent=mboxFactories.get('default').get('target-global-mbox',0);mboxCurrent.setEventTime('include.start');document.write('');document.write('\nvar jvUser = \'returning\';\n<\/script>');document.write('<!-- Offer Id: 9024 --><script type=\"text\/javascript\">window.ttMETA=(typeof(window.ttMETA)!=\'undefined\')?window.ttMETA:[];window.ttMETA.push({\'mbox\':\'target-global-mbox\',\'campaign\':\'Gabe\'s Test Experience\',\'experience\':\'Experience B\',\'offer\':\'Set Returning User Var1438712143868-1438712144015\'});window.ttMBX=function(x){var mbxList=[];for(i=0;i<ttMETA.length;i++){if(ttMETA[i].mbox==x.getName()){mbxList.push(ttMETA[i])}}return mbxList[x.getId()]}<\/script>');document.write('</div>');mboxCurrent.setEventTime('include.end');mboxFactories.get('default').get('target-global-mbox',0).loaded();

Views

1.2K

Like

1

Replies

4
Likes from