May 10, 20213:51 AM - edited May 10, 20213:52 AM
Participant
Integrating chat sdk to the Vuejs template
SOLVE
Hi all,
I am totally new to vuejs and hubspot. I want to integrate the conversation sdk to my template and I want to display the chatbox in all the templates/pages.
So far what I have done is:
I added my js script to the head in nuxt config.js file and added these function inside my middleware file.
```
if (window.HubSpotConversations) { onConversationsAPIReady(); } else { window.hsConversationsOnReady = [onConversationsAPIReady]; } function onConversationsAPIReady() { window.hsConversationsSettings = { loadImmediately: false, identificationEmail: "xxxxx@gmail.com", }; } function loadChat() { window.HubSpotConversations.widget.load(); }