web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    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

  • Suggested answer
    mauro mar Profile Picture
    Microsoft Employee on at

    Hello,

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

    HTH,

    M

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 208 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 80

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans