On my wordpress site, I downloaded the GTM plugin, there's an option on where to place the noscript:
Footer of the page (not recommended by Google, no tweak in your template required)
Custom (needs tweak in your template)
Codeless injection (no tweak, right placement but experimental, could break your frontend)
Off (only add data layer to the page source)
Code placement decides where to put the second, so called noscript part of the GTM container code. This code is usually only executed if your visitor has for some reason disabled JavaScript.
The main GTM container code will be placed into the head section of your webpages anyway (where it belongs to).
If the noscript only executes if the visitor disabled javascript, why is entering it necessary?
When I select "off", all my pixels stop firing, so obviously it is necessary. but why?
[link] [comments]
from Search Engine Optimization: The Latest SEO News https://www.reddit.com/r/SEO/comments/jhhfvi/why_do_you_need_the_noscript_code_from_google_tag/>
No comments:
Post a Comment