Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

How to add scripts to the header section of web pages using Google Tag Manager

(1) ShareShare
ReportReport
Posted on by 7

Hi,

When using the tag "Custom HTML" it is not possible to add scripts to the header. The scripts are added to the "body" instead. The question I have is how to add scripts (for example form capturing scripts) to the header of pages using Google tag manager? Is this at all possible? If so how?

Also there is no out-of-the-box "Dynamics" tag-configuration to be found. That is why we used the tag "Custom HTML".

pastedimage1613405262026v1.png

  • Suggested answer
    mauro mar Profile Picture
    mauro mar on at
    RE: How to add scripts to the header section of web pages using Google Tag Manager

    Hello,

    yes is possible by manually add the GA tag directly into (the templates for) your web pages.

    HTH,

    M

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: How to add scripts to the header section of web pages using Google Tag Manager

    Hi hjberger,

    Is  "Custom HTML" a plugin or extension of Google Tag Manager?

    You could manually add div and script elements to header or body section of your HTML.

    czcz.JPG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans