How do I find the widget code embedded in my website?
To find the widget's code on your website
Step 1: Copy the script
Copy a piece of the script to your clipboard.
- If you use the Web Widget, find the script under Admin Center > Channels > Web Widget > Setup. Select Copy to clipboard.
- If you use the Chat widget, find the script under Chat > Settings > Widget > Getting started. Click the script to copy it to your clipboard.
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.
For detailed instructions from different browsers, see:
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:
Please sign in to leave a comment.