Zendesk chat widget issue | Community
Skip to main content

Zendesk chat widget issue

  • December 10, 2021
  • 1 reply
  • 0 views

We've been having issues with integrating the Zendesk chat widget (classic) into our website. Our website is built in React, uses Server Side Rendering, and injects the widget via GTM. We're seeing odd/broken behaviour when integrating the widget, such as triggers not firing unless the user reloads the page
 
To rule out our React application or GTM integrations interfering with the chat widget, we created a simple React application that places the chat widget script in the <head> of the site.
<script
      id="ze-snippet"
      src="https://static.zdassets.com/ekr/snippet.js?key=1bf95eb2-d4f4-460f-a8ee-9f3138524c28"
    ></script>
We then setup two basic triggers, but neither of these fired - we're actually using the trigger configuration one of your support agents suggested, to ensure that wasn't the issue. You can see these widget settings in the attached screenshots.This means that we have ruled out our React application or GTM integration from being the reason the triggers don't work, and it must be due to the widget itself, or some settings within our account.

Has anyone else experienced issues with this or any solutions/suggestions?

1 reply

CJ99
  • December 10, 2021

Have you had any successful chats? You might want to look at what they show as the visitor site they started on. One thing I ran into recently when my widget trigger wasn't firing, is that Chat wasn't picking up the actual correct URL that the visitor was on, so my trigger rule for visitor URL page, didn't work as expected.