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

Notifications

Announcements

No record found.

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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans