adding Hubspot code - Forum | JoomShaper
Awaiting an answer SP Page Builder

adding Hubspot code

Asked by Dina Abramson 2 years ago Last activity 2 years ago

Where can I add hubsport code such as the sample below to different individual pages in Pagebuilder?

I have code that is different for different pages so it isn't all the same.

var _hsq = window._hsq = window._hsq || [];
_hsq.push(['setContentType', 'CONTENT_TYPE']);

Thanks

5 replies

Dina Abramson Asked this

Do I have to plead with you to get a response to my question?

Toufiq Senior Staff

Hi there,

I appreciate you reaching out. I sincerely apologize for this oversight. Do you wanna add any custom code inside the individual page? I need to understand what exactly want to do.

-Thanks

Dina Abramson Asked this

As I explained, I have to connect individual pages to Hubspot for a client. There has been a blanket JS code added to the /body area but there are individual code snippits that must be inserted on related landing pages. For example, I need to insert this code in the About Us page.

 var _hsq = window._hsq = window._hsq || []; _hsq.push(['setContentType', 'listing-page']);

Thanks

Paul Frankowski Senior Staff
2 years ago · edited

Hi Dina,

I would use AnyCode module to use that code inside, then publish it Or,

  1. In module position above component area
  2. Or inside Module addon
Dina Abramson Asked this

Thanks. I will give it a try

Log in to reply.