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

SOLVED

<noscript> tag - should it be used?

Avatar

Level 1

Hi,

We are using DTM to implement Third Party Tags.

Some time we get the third party tags as HTML <script> tags along with <noscript> tags.

As , I understand DTM is a Javascript library, hence <noscript> tag will never be useful. Is this correct?

As DTM will load only when Javascript is enabled.

Hence, it is not meaningful to have <noscript> tag. Is this correct?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Neha,

In general it's always useful to use <no script> tag as  <noscript> tag defines an alternate content for users that have disabled scripts in their browser or have a browser that doesn't support script.  Though in DTM , it is not meaningful to have <noscript> tag  as DTM is it's self a Javascript Library . However , <noscript> tag can be useful only if it is added while adding the staging/ production code script on each and every page of the website.Please refer the below snippet of code as an example.

<head>
......
<script src="//assets.adobedtm.com/280730d6732acf1b27f4dabc54536db9fcdae363/satelliteLib-7032f9b2b2d0eac5630c170998701d4153326f8e.js"></script>
<noscript> Javascript is not enabled on the browser Hnece DTM tags will not fire </noscript>
.......

Thanks & Regards

Parit Mittal

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Neha,

In general it's always useful to use <no script> tag as  <noscript> tag defines an alternate content for users that have disabled scripts in their browser or have a browser that doesn't support script.  Though in DTM , it is not meaningful to have <noscript> tag  as DTM is it's self a Javascript Library . However , <noscript> tag can be useful only if it is added while adding the staging/ production code script on each and every page of the website.Please refer the below snippet of code as an example.

<head>
......
<script src="//assets.adobedtm.com/280730d6732acf1b27f4dabc54536db9fcdae363/satelliteLib-7032f9b2b2d0eac5630c170998701d4153326f8e.js"></script>
<noscript> Javascript is not enabled on the browser Hnece DTM tags will not fire </noscript>
.......

Thanks & Regards

Parit Mittal