Skip to content

Google Tag Manager

Unfortunately, the one-liner provided on the How to set up page doesn't work with Google Tag Manager (GTM). The reason behind it is that GTM strips data-* attributes from script tags.

To overcome that, use the following snippet instead

html
<script>
  (function () {
    var script = document.createElement("script")
    script.src = "https://sdk.feedback.one/v0/core.min.js"
    script.dataset.projectId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    script.defer = true
    document.body.appendChild(script)
  })()
</script>

P.S. Do not forget to replace xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx with your project id.