If you want to integrate your Superchat Web Widget 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 Web Widget script
👉 Here
2. Copy the applicationKey from your Web Widget 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.
4. Add the script to your Google Tag Manager
Exchange ideas with experts from your industry in our community. This is the best place to gather initial ideas, especially at the beginning:
Join our Superchat Community