Getting Hubspot Call-To-Action to Work in Sitefinity

Working with HubSpot Call to Action (CTA) is easier than ever with Sitefinity’s Embed Code widget, part of Feather. Here are the four simple steps that will make the HubSpot CTA work on a Sitefinity page:

  1. Place the HubSpot Call-to-Action HTML code on a page using the Content Block widget.

  2. Place the HubSpot JavaScript either on the page or on the template if more pages are based on a common template. Note this JavaScript is not specific to the Call to Action widget. It’s important to choose ‘Before the closing body tag’:

    https://js.hscta.net/cta/current.js/script

  3. Next, use the ‘embed code’ widget to place the HubSpot JavaScript, which is specific to your portal. In the following example, note that the 123456.js is the portal ID and will change based on your portal:

    script type=text/javascript id=hs-script-loader async defer 
                    src=//js.hs-scripts.com/123456.js/script

  4. Finally, add the HubSpot JavaScript, which is specific to the Call to Action (CTA). In the example below, note there is a portal ID and the CTA’s form guide ID:

    script type=text/javascript
                    hbspt.cta.load(123456, f46c693f-bcc5-4de9-a954-db20ad916633, {});
                    /script

We have helped many of our clients implement HubSpot CTAs with Sitefinity. We have also imported HubSpot blogs to Sitefinity using the HubSpot API. We are happy to help you! Contact Us.

About the Author

staff at americaneagle.com

Staff

Americaneagle.com has a dedicated team of strategists, technologists, and content writers to help you stay up to date with the latest and greatest trends in the technology industry. We cover a wide variety of topics on a regular basis, some of which include website design, website development, digital marketing services, ecommerce, accessibility, website hosting and security, and so much more. Educating our clients, prospects, and readers is very important to us and we appreciate the opportunity to be an authoritative voice in the industry.