How to embed "script src" i DTM

Avatar

Avatar
Validate 1
Level 1
PThillemann
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
PThillemann
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
PThillemann
Level 1

28-04-2017

Hi,
I' trying to embed to following code:

<script src="//static.whisbi.com/common/tools/whisbi-tools.js"></script>

<script>
whisbiTools.whisbiOnAir(
{ lang: 'DK', woaGuid: 'xxx', woaBranchGuid: 'yyy' }
);
</script>
But DTM do not like the <script> tag, so how to embed a javascript src. ?
script src="//static.whisbi.com/common/tools/whisbi-tools.js"></script>

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
PThillemann
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
PThillemann
Level 1

Likes

0 likes

Total Posts

3 posts

Correct reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
PThillemann
Level 1

01-05-2017

Problem solved by using another methode without script tag

var whisbiTag = document.createElement("script");
whisbiTag.async = "true";
whisbiTag.src = “//xx.js”;

Thanks,

Peter

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,340 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile

Avatar
Validate 1000
Community Manager
jantzen_belliston-Adobe
Community Manager

Likes

339 likes

Total Posts

2,340 posts

Correct reply

819 solutions
Top badges earned
Validate 1000
Springboard
Validate 500
Validate 250
Validate 100
View profile
jantzen_belliston-Adobe
Community Manager

28-04-2017

Hi,

Can I ask you where in the interface you are trying to embed this tag? If this is a page load rule, the third-party sequential HTML section should allow this. You could also try placing this inside one of the tools in the same section.

Typically, JavaScript would go in one of the JavaScript sections. However, if the <script> tag is needed, you'll need to place it in the sequential HTML section as referenced in the following documentation.

https://marketing.adobe.com/resources/help/en_US/dtm/load_order.html

"Sequential HTML: Injected into <HEAD/> below DTM library include script if <SCRIPT/> tags are used, otherwise is injected at top of <BODY/>"

Cheers,
Jantzen