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. Select the Copy to clipboard option.
    Messaging
  • If you use the Web Widget (Classic), find the script under Admin Center > Channels > Web <></>Widget > click your widget name > Installation > Select the Copy to clipboard option.
    Classic

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

For detailed instructions from different browsers, see:

  • Google Chrome
  • Mozilla Firefox
  • Microsoft Edge

Step 3: Search for the script

Search the source code for the piece of script you placed on your clipboard earlier. If you are unable to 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 are unable to locate the script, it is possible that it was removed or that someone on your team implemented the widget through a custom process that Zendesk doesn't support or document.

For more information, see these articles:

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