APIs & Integrations

Danieloo
Member

VueJS + Nuxt SSG + HubSpot Chat Tracking Script

Hi, 

 

I am attempting to 

<!-- Start of HubSpot Embed Code -->
  <script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/8194032.js"></script>
<!-- End of HubSpot Embed Code -->

 

in my nuxt.js / vue.js website.
Problem:
Chat does not show up.

Attempted solution:
Direct integraton: I have tried vue-script2  which throws errors (component template must only contain one root element)/

Adding to vue.js return: compiles but no effect >> https://github.com/carbonight-network/collectivepage/commit/e0b10a8b294307a69b64e4a453f7905a3e7a2576

 

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee
HubSpot Employee

VueJS + Nuxt SSG + HubSpot Chat Tracking Script

Hey @Danieloo,

 

Just to clarify, the current issue is that your HubSpot chatflow isn't appearing on your external page? 

 

If so, looking at the chatflow target settings, I'm seeing that it is set to display the chatflow on all pages. However, in this case if the page is an external page, you'd need to include the specific website url. Could you try adding that and see if it works?

CNNNET
Member

VueJS + Nuxt SSG + HubSpot Chat Tracking Script

I do nut understan what you mean by external page. It is all on the same domain and there is only one page....

0 Upvotes
WendyGoh
HubSpot Employee
HubSpot Employee

VueJS + Nuxt SSG + HubSpot Chat Tracking Script

Hey @CNNNET,

 

By external page I mean non-HubSpot pages. Is that where you'd like the chatflow to appear?

0 Upvotes