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

SOLVED

What is the best placement for the Adobe Launch tag?

christopher2151
Level 2
Level 2

Looking to see the best placement for the adobe launch script tag on our pages in relation to other the DOM elements. Also since we are working with a data layer that is populating some of our data elements our assumption is that this declaration will need to be above the Adobe Launch tag.

1 Accepted Solution
gflare
Correct answer by
Level 4
Level 4

This is never a straightforward single answer, but it's generally accepted that the first approach would be to include the Data Layer in the <head>, and the Adobe Launch later in the <head>.  In many cases, the Adobe Launch script will be one of the last things in the <head>, and deployed in a synchronous manner (NOT async - but more on that later...).

Then, of course you'll have the pagebottom script as the last possible thing in the <body>.

Then you get into more discussions based on your individual needs.  How important is it that you avoid synchronous scripts?  How do you need Adobe Target or other Tools to function?  When/how are you going to control your collection to avoid missing event timing if the library isn't done loading?

For more info on sync vs. async, check out this page in the docs:  https://docs.adobelaunch.com/client-side-information/web/asynchronous-deployment

https://docs.adobelaunch.com/client-side-information/web/asynchronous-deployment

Hopefully this helps you get started on the discussion and investigation to what works best for you.

View solution in original post

1 Reply
gflare
Correct answer by
Level 4
Level 4

This is never a straightforward single answer, but it's generally accepted that the first approach would be to include the Data Layer in the <head>, and the Adobe Launch later in the <head>.  In many cases, the Adobe Launch script will be one of the last things in the <head>, and deployed in a synchronous manner (NOT async - but more on that later...).

Then, of course you'll have the pagebottom script as the last possible thing in the <body>.

Then you get into more discussions based on your individual needs.  How important is it that you avoid synchronous scripts?  How do you need Adobe Target or other Tools to function?  When/how are you going to control your collection to avoid missing event timing if the library isn't done loading?

For more info on sync vs. async, check out this page in the docs:  https://docs.adobelaunch.com/client-side-information/web/asynchronous-deployment

https://docs.adobelaunch.com/client-side-information/web/asynchronous-deployment

Hopefully this helps you get started on the discussion and investigation to what works best for you.

View solution in original post