Adding Talkative Scripts To A Website

Modified on Tue, 3 Sep at 4:28 PM

What is this feature and why you should use it.

The Talkative script is needed to display Talkative onto your website. Without the script on the website, Talkative will not be visible.



Who can use this feature?

Licence
Role
Teams Licence
Agent
Business Licence
Supervisor
Enterprise Licence
Account Holder


Find Your Chat Widget Script

Head to the Chat Widgets Menu item and find the chat widget under 'Script Snippet'



Are you using direct injection or GTM. Follow the appropriate step below.


Direct Code Injection

The code presented to you is ready to be pasted into your website or CMS (example below):

<script>
import(`https://eu.engage.app/api/ecs/v1/loader/44444444-4444-4444-4444-444444444444.js?path=${encodeURIComponent(window.location.origin+window.location.pathname)}`)
</script>


Google Tag Manager Injection

The code will need to be adapted slightly for GTM. Press the Google Tag Manager toggle (example below):

<script>
  var a = document.createElement('script')
a.innerHTML = "import(`https://eu.engage.app/api/ecs/v1/loader/444444-4444-4444-4444-444444444444.js?path=${encodeURIComponent(window.location.origin+window.location.pathname)}`)"
  document.body.appendChild(a);
</script>


Adding the code to the website

Please add the code into the head section of all pages of the website. You can control which pages the Talkative widget appears on in the chat widget settings.


WARNING: Publishing the script may show the widget on your website. Please make sure you are ready for the Talkative widget to show or you have appropriately disabled the chat widget in the page rules in the Talkative chat widget area of the platform.




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article