<?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: Adding a Javascript widget to my website in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/181732#M5148</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/56824"&gt;@jspector&lt;/a&gt;&amp;nbsp;In addition to the above,&amp;nbsp;if you want to place the code on an individual page, go to the edit version of the page and click &lt;EM&gt;Settings&amp;nbsp;&lt;/EM&gt;from the top menu then scroll down and click &lt;EM&gt;Advanced.&amp;nbsp;&lt;/EM&gt;You'll find modules to add javascript to just the individual page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Ed Justen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Thanks for the input&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/202"&gt;@AJLaPorte_diagr&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Mar 2018 20:48:07 GMT</pubDate>
    <dc:creator>edjusten</dc:creator>
    <dc:date>2018-03-14T20:48:07Z</dc:date>
    <item>
      <title>Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/181617#M5133</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried reaching out to Hubspot support but they just recommended I post my question here. I want to add some javascript coded widgets to my homepage, but I'm not sure about how to do it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&lt;BR /&gt;src="&lt;A target="_blank"&gt;https://www.gartner.com/reviews/public/Widget/js/widget.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;GartnerPI_Widget({&lt;BR /&gt;size: "small",&lt;BR /&gt;theme: "dark",&lt;BR /&gt;widget_id: "Y2RmODI4N2UtOGQzMy00NjNkLWFmM2ItNGI1ZWRjZWZmZDYw",&lt;BR /&gt;container: //DOM node in which the widget is to be rendered [e.g. document.querySelector("#myNodeContainer")]&lt;BR /&gt;})&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple way to do this with the Hubsot&amp;nbsp;Design Manager? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:05:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/181617#M5133</guid>
      <dc:creator>jspector</dc:creator>
      <dc:date>2018-03-14T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/181650#M5139</link>
      <description>&lt;P&gt;Depending on the version of design manager you are using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DMv1: You should be able to go to the&amp;nbsp;&lt;STRONG&gt;edit&lt;/STRONG&gt; button and choose&amp;nbsp;&lt;STRONG&gt;edit head&lt;/STRONG&gt; and paste the code there. If you want this in the footer, you would have to add a custom HTML module to the bottom of your site and add the script in there as the original DM doesn't&amp;nbsp;have an "edit footer" option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DMv2: When you open the template you should be able to see options on the right that will let you add code to the header and footer of the template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option &amp;nbsp;is to go into your &lt;STRONG&gt;content settings&lt;/STRONG&gt; and on the&lt;STRONG&gt;&amp;nbsp;web pages options&lt;/STRONG&gt; towards the bottom, you will see areas to place the JS. This will place it on all pages on the site.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:58:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/181650#M5139</guid>
      <dc:creator>AJLaPorte_diagr</dc:creator>
      <dc:date>2018-03-14T15:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/181732#M5148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/56824"&gt;@jspector&lt;/a&gt;&amp;nbsp;In addition to the above,&amp;nbsp;if you want to place the code on an individual page, go to the edit version of the page and click &lt;EM&gt;Settings&amp;nbsp;&lt;/EM&gt;from the top menu then scroll down and click &lt;EM&gt;Advanced.&amp;nbsp;&lt;/EM&gt;You'll find modules to add javascript to just the individual page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Ed Justen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Thanks for the input&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/202"&gt;@AJLaPorte_diagr&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 20:48:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/181732#M5148</guid>
      <dc:creator>edjusten</dc:creator>
      <dc:date>2018-03-14T20:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182184#M5178</link>
      <description>&lt;P&gt;Hey thanks for the feedback, however, I still cannot get it to work. After doing some digging, I found some additional instructions from Gartner (it's their peer insights widget:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Practices for adding Gartner Peer Insights Widget to your pages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You must edit the script to include the HTML container to indicate widget location on the page (left rail, right rail, middle, etc.).&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;Please note that the script we provide contains only an example and not the actual HTML selector you should use when you implement it.&lt;/LI&gt;&lt;LI&gt;You should remove our example and replace it with your HTML selector.&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;The ideal placement of the edited widget script is at the end of the page code itself. You can add it right before the closing BODY tag.&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;This is the easiest way to implement the widget.&lt;/LI&gt;&lt;LI&gt;Please note that the HTML container must exist on the page and placed before the code snippet in the HTML document for the widget to work correctly.&lt;/LI&gt;&lt;LI&gt;Although the widget script can be placed in the HEAD tag, it will require additional development work from your team in order to work as expected.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not the most experienced with HTML and JS code so I'm not exactly sure the right way to go about this. Any help or feedback on how to get these to work in Hubspot would be very much appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 13:23:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182184#M5178</guid>
      <dc:creator>jspector</dc:creator>
      <dc:date>2018-03-19T13:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182227#M5187</link>
      <description>&lt;P&gt;Are you able to post the embed snippet that you have? If you are not able to post it here for privacy reasons, can you DM me the code and I can help further? Without being able to see the code, it would be hard to direct where to make changes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 15:54:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182227#M5187</guid>
      <dc:creator>AJLaPorte_diagr</dc:creator>
      <dc:date>2018-03-19T15:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182267#M5193</link>
      <description>&lt;P&gt;The code is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; src="&lt;A href="https://community.hubspot.com/" target="_blank"&gt;https://www.gartner.com/reviews/public/Widget/js/widget.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GartnerPI_Widget({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; size: "small",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; theme: "dark",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; widget_id: "Y2RmODI4N2UtOGQzMy00NjNkLWFmM2ItNGI1ZWRjZWZmZDYw",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container: //DOM node in which the widget is to be rendered [e.g. document.querySelector("#myNodeContainer")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 19:01:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182267#M5193</guid>
      <dc:creator>jspector</dc:creator>
      <dc:date>2018-03-19T19:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182293#M5195</link>
      <description>&lt;P&gt;Ah ok, so what you are going to want to do is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add a div in your page where you want the embed to show. This can be done&amp;nbsp;by simply going into the edit source button in your rich text editor. Looks like this: &amp;lt;/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;In there, you simply place this code:&lt;BR /&gt;&lt;PRE&gt;&amp;lt;div id="gartnerDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;If doing this site wide, you can go to your &lt;STRONG&gt;Content Settings &amp;gt; Web Site Pages &amp;gt; Page Templates Tab&amp;nbsp;&lt;/STRONG&gt;and then look for the&amp;nbsp;&lt;STRONG&gt;Site Footer HTML&lt;/STRONG&gt; box and place the following code there:&lt;BR /&gt;&lt;PRE&gt;&amp;lt;script type="text/javascript" src="https://www.gartner.com/reviews/public/Widget/js/widget.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript"&amp;gt;

    GartnerPI_Widget({
        size: "small",
        theme: "dark",
        widget_id: "Y2RmODI4N2UtOGQzMy00NjNkLWFmM2ItNGI1ZWRjZWZmZDYw",
        container: document.querySelector("#gartnerDiv")
    });

&amp;lt;/script&amp;gt;&lt;/PRE&gt;If doing this on just a single page, you can go the settings tab in your page editor and place this code in the Site Footer HTML as well. You will also then have to take the code from step 1 and add it to the rich text area of the page.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps at all. I have also created a codepen&amp;nbsp;where you can see this in action: &lt;A href="https://codepen.io/ajwsol/pen/jzyMLz" target="_self"&gt;https://codepen.io/ajwsol/pen/jzyMLz&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 20:55:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182293#M5195</guid>
      <dc:creator>AJLaPorte_diagr</dc:creator>
      <dc:date>2018-03-19T20:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182296#M5196</link>
      <description>&lt;P&gt;I'll give it a shot thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 20:59:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/182296#M5196</guid>
      <dc:creator>jspector</dc:creator>
      <dc:date>2018-03-19T20:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/390762#M19889</link>
      <description>&lt;P&gt;&amp;nbsp;Is it possible to add this script to just one of my website pages, using a similar methodology?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="&lt;A target="_blank" rel="noopener"&gt;https://cdn.logwork.com/widget/countdown.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;BR /&gt;&amp;lt;a href="&lt;A href="https://logwork.com/countdown-24tf" target="_blank" rel="noopener"&gt;https://logwork.com/countdown-24tf&lt;/A&gt;" class="countdown-timer" data-timezone="America/Los_Angeles" data-date="2021-01-04 05:00"&amp;gt;Changing the Landscape of IT Security&amp;lt;/a&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 21:04:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/390762#M19889</guid>
      <dc:creator>KEU174</dc:creator>
      <dc:date>2020-12-02T21:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/391013#M19902</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/143187"&gt;@KEU174&lt;/a&gt; , you should be able to add to the head or footer per page as documented &lt;A href="https://knowledge.hubspot.com/cos-general/how-can-i-add-code-snippets-to-the-head-and-footer-html-of-my-pages#:~:text=In%20your%20HubSpot%20account%2C%20navigate,HTML%20or%20Footer%20HTML%20field." target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:12:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/391013#M19902</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-12-03T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/418962#M21738</link>
      <description>&lt;P&gt;Hi, I am working on the same thing. But it didn't work for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 08:14:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/418962#M21738</guid>
      <dc:creator>Amit_Dhiman</dc:creator>
      <dc:date>2021-03-16T08:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Javascript widget to my website</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/419112#M21774</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/174333"&gt;@Amit_Dhiman&lt;/a&gt; , &lt;/P&gt;
&lt;P&gt;You can also use the require_js function detailed &lt;A href="https://developers.hubspot.com/docs/cms/hubl/functions#require-js" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 15:10:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Adding-a-Javascript-widget-to-my-website/m-p/419112#M21774</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-03-16T15:10:12Z</dc:date>
    </item>
  </channel>
</rss>

