Question

How do I find the widget code embedded in my website?

Answer

To find the widget's code on your website:

  • Step 1: Copy the script
  • Step 2: View the website's source
  • Step 3: Search for the script
  • Step 4: Verify if the script matches

Step 1: Copy the script

Copy a piece of the script to your clipboard.

  • If you use messaging, find the script under Admin Center > Channels > Messaging > click your widget name > Installation. Click the Copy to clipboard icon.
    Web Widget messaging installation script
  • If you use the Web Widget (Classic), find the script under Admin Center > Channels > Web Widget > click your widget name > Installation. Click the Copy to clipboard icon.
    Web Widget (Classic) installation script

Step 2: View the website's source

Viewing the source of a website can vary according to the browser, but generally, the method is adding view-source: to the front of your URL.
View source URL sample

For detailed instructions from different browsers, see the guides for Google Chrome, Firefox, and Microsoft Edge.

Step 3: Search for the script

Search the source code for the piece of script you copied earlier. If you can't locate it, put a different snippet of the code on the clipboard and try again.

Step 4: Verify if the script matches

For optimal results, verify that the code in the website matches the code in your Zendesk interface from step one. To ensure the scripts match, remove the entirety of the widget code and re-add it to the website.

If you can't find the script, it's possible that someone on your team removed it or implemented the widget through a custom process that Zendesk doesn't support.

For more information, see:

  • Adding Web Widget (Classic) to your website or help center
  • Adding the Zendesk Chat widget to your website
Powered by Zendesk