Integrate live chat in your feedback button. When creating your feedback form, you can let respondents leave specific feedback, give generic feedback, or use a custom option. You can use this custom option to integrate live chat.
You'll need the following to set up live chat in your feedback button:
To create your chat option:
Next, you’ll create a script to display the chat when a user clicks your custom option using our JavaScript API. To do this, you’ll need to add your live chat script as a variable to the code snippet below:
Once the code has been edited to include your live chat script, add it to your website.
It's best to install your web button using a tag management system. The tag management system helps you track all the code snippets installed on your pages. It also gives you control over the dependencies between different scripts and tags.
The steps below describe installing your code with Google Tag Manager. However, if you use a different tag manager, the same configuration applies.