<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trying to ad a tracking code to the &amp;lt;body&amp;gt; of my Hubspot Website in Blog, Website &amp; Page Publishing</title>
    <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Trying-to-ad-a-tracking-code-to-the-lt-body-gt-of-my-Hubspot/m-p/599244#M6025</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267522"&gt;@amber_guilbeau&lt;/a&gt;, just so you know as well, there is a native Google Tag Manager integration built into HubSpot's settings tool where you need to only provide the tag ID rather than insert the embed codes yourself. You can learn how to do that here:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/website-pages/add-the-google-tag-manager-code-to-your-pages" target="_blank"&gt;https://knowledge.hubspot.com/website-pages/add-the-google-tag-manager-code-to-your-pages&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 13:55:56 GMT</pubDate>
    <dc:creator>Mark_Ryba</dc:creator>
    <dc:date>2022-03-22T13:55:56Z</dc:date>
    <item>
      <title>Trying to ad a tracking code to the &lt;body&gt; of my Hubspot Website</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Trying-to-ad-a-tracking-code-to-the-lt-body-gt-of-my-Hubspot/m-p/597428#M6020</link>
      <description>&lt;P&gt;I am trying ad a tracking code for a website-to-mailbox program I am implementing. I can easily add the GTM to the harder globally, but I am stuck on how to add the additional tracking code to the opening &amp;lt;body&amp;gt; tag. Any help would be much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Install Google Tag Manager
Copy the code below and paste it onto every page of your website.
Paste this code as high in the &amp;lt;head&amp;gt; of the page as possible:

&amp;lt;!-- Google Tag Manager --&amp;gt;
&amp;lt;script&amp;gt;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&amp;amp;l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NJF8KTG');&amp;lt;/script&amp;gt;
&amp;lt;!-- End Google Tag Manager --&amp;gt;

Additionally, paste this code immediately after the opening &amp;lt;body&amp;gt; tag:

&amp;lt;!-- Google Tag Manager (noscript) --&amp;gt;
&amp;lt;noscript&amp;gt;&amp;lt;iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJF8KTG"
height="0" width="0" style="display:none;visibility:hidden"&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/noscript&amp;gt;
&amp;lt;!-- End Google Tag Manager (noscript) --&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 14:21:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Trying-to-ad-a-tracking-code-to-the-lt-body-gt-of-my-Hubspot/m-p/597428#M6020</guid>
      <dc:creator>amber_guilbeau</dc:creator>
      <dc:date>2022-03-18T14:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to ad a tracking code to the &lt;body&gt; of my Hubspot Website</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Trying-to-ad-a-tracking-code-to-the-lt-body-gt-of-my-Hubspot/m-p/598532#M6022</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267522"&gt;@amber_guilbeau&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Community!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You should be able to add code to the &amp;lt;body&amp;gt; of a HubSpot website by &lt;/SPAN&gt;&lt;STRONG&gt;editing the page template in Design Manager&lt;/STRONG&gt;&lt;SPAN&gt; that the website is using. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To locate the template used by a page, you can go into the page editor &amp;gt; &lt;/SPAN&gt;&lt;EM&gt;Settings&lt;/EM&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;EM&gt;Advanced Options&lt;/EM&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;EM&gt;Template&lt;/EM&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;EM&gt;Edit this template.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When editing the code of a template, we do recommend working with a developer.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers&lt;BR /&gt;Mia, Community Team&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 14:35:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Trying-to-ad-a-tracking-code-to-the-lt-body-gt-of-my-Hubspot/m-p/598532#M6022</guid>
      <dc:creator>MiaSrebrnjak</dc:creator>
      <dc:date>2022-03-21T14:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to ad a tracking code to the &lt;body&gt; of my Hubspot Website</title>
      <link>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Trying-to-ad-a-tracking-code-to-the-lt-body-gt-of-my-Hubspot/m-p/599244#M6025</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/267522"&gt;@amber_guilbeau&lt;/a&gt;, just so you know as well, there is a native Google Tag Manager integration built into HubSpot's settings tool where you need to only provide the tag ID rather than insert the embed codes yourself. You can learn how to do that here:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/website-pages/add-the-google-tag-manager-code-to-your-pages" target="_blank"&gt;https://knowledge.hubspot.com/website-pages/add-the-google-tag-manager-code-to-your-pages&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:55:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Blog-Website-Page-Publishing/Trying-to-ad-a-tracking-code-to-the-lt-body-gt-of-my-Hubspot/m-p/599244#M6025</guid>
      <dc:creator>Mark_Ryba</dc:creator>
      <dc:date>2022-03-22T13:55:56Z</dc:date>
    </item>
  </channel>
</rss>

