Adding Hubspot Code - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Adding Hubspot Code

DA

Dina Abramson

SP Page Builder 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

0
5 Answers
DA
Dina Abramson
Accepted Answer
2 years ago #139221

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 years ago #139272

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

0
DA
Dina Abramson
Accepted Answer
2 years ago #139276

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

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #139288

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
0
DA
Dina Abramson
Accepted Answer
2 years ago #139291

Thanks. I will give it a try

0