Open live chat

SOLVE
Highlighted
Occasional Contributor

Hi.

I have the Live Chat icon down the bottom and works perfectly.

 

On my Contact Page, I have created another icon on the page and I was wondering what is the link I can use to launch the Live Chat?

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
Solution
Regular Advisor

Hey @Handemmet you should append your link with the following:

 

<a class="cta-primary" href="" onclick="window.hubspot.messages.EXPERIMENTAL_API.requestWidgetOpen();">Link text</a>

 

This is taken from this earlier post.  Hope this helps!

Chris Bryant | Your Dedicated HubSpot Expert

View solution in original post

3 Replies 3
Highlighted
Solution
Regular Advisor

Hey @Handemmet you should append your link with the following:

 

<a class="cta-primary" href="" onclick="window.hubspot.messages.EXPERIMENTAL_API.requestWidgetOpen();">Link text</a>

 

This is taken from this earlier post.  Hope this helps!

Chris Bryant | Your Dedicated HubSpot Expert

View solution in original post

Highlighted
Occasional Contributor

Thanks, that worked perfectly!

Highlighted
Occasional Contributor | Gold Partner

@Bryantworks I am attempting this same implementation but not having any luck. Here's the code I'm using inside of a module:

 

<a class="cta_button" onclick="window.hubspot.messages.EXPERIMENTAL_API.requestWidgetOpen();">{{ module.cta_two.button_text }}</a>

 

The "Start a Live Chat" button on this contact page doesn't appear to pop open the chat window. I also remember an href target of "#hs-chat-open" as another solution but I don't see that working either. 

 

Any additional help you can offer?

Reply
0 Upvotes