If you want to integrate your Superchat webchat into your Google Tag Manager, you need to adjust the script as follows:
Insert the applicationKey into the template (below)
Integrate into your Google Tag Manager
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