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 Insights - Journeys forum
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
    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
    25,194 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

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard > Customer Insights - Journeys

Featured topics

Product updates

Dynamics 365 release plans