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

Deploying Launch async - alternative tag syntax

Avatar

Avatar
Contributor
MVP
joshd7227840
MVP

Likes

275 likes

Total Posts

241 posts

Correct Reply

70 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Contributor
MVP
joshd7227840
MVP

Likes

275 likes

Total Posts

241 posts

Correct Reply

70 solutions
Top badges earned
Contributor
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
joshd7227840
MVP

16-01-2018

So this new feature to deploy Launch async.

I see that it gives you a tag like this:

<script src="//assets.adobedtm.com/launch-12345-development.min.js" async></script>

From my perspective, I should be able to instead do something like this:

(function() {

  var s = document.createElement('script');

  s.src = "//assets.adobedtm.com/launch-12345-development.min.js";

  s.async=true;

  var t = document.getElementsByTagName('script')[0];

  t.parentNode.insertBefore(s, t);

})();

I want to be able to do this because it would allow me to dynamically output "12345" and/or "development" parts of the script URL - something that has been a sore spot with DTM for a lot of people.

Will Adobe support async deployment of the Launch script like this?

.josh

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Employee
Aaronius9er9er9
Employee

Likes

34 likes

Total Posts

44 posts

Correct Reply

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

Avatar
Boost 5
Employee
Aaronius9er9er9
Employee

Likes

34 likes

Total Posts

44 posts

Correct Reply

16 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
Aaronius9er9er9
Employee

14-03-2018

Yes. You can start using it that way right now if you choose.

Answers (0)