How to integrate your Webchat into Google Tag Manager
Learn how to integrate your Webchat into Google Tag Manager.
If you want to integrate your Superchat webchat into your Google Tag Manager, you need to adjust the script as follows:
1. Create your webchat script
👉 Here
2. Copy the applicationKey from your webchat script
<script src='https://widget.superchat.de/snippet.js?applicationKey=AAAAAAAAAAAAAAAAAAA' referrerpolicy='no-referrer-when-downgrade'></script>
👉 Here, you need to copy the applicationKey (e.g., AAAAAAAAAAAAAAAAAA)
3. Insert it into the Google Tag Manager template:
<script>(function() {var script = document.createElement("script");script.type = "text/javascript";script.src = "https://widget.superchat.de/snippet.js?applicationKey=XXXXXXXXXXXXXXXXX";script.setAttribute("referrerpolicy","no-referrer-when-downgrade");document.body.appendChild(script);})();</script>
👉 Here, you need to replace XXXXXXXXXXXXXXXXX with your applicationKey