Skip to content

Commit 64b3000

Browse files
authored
Merge pull request appwrite#107 from umami-software/gtm-tracker-update
add GTM snippet on tracker config page
2 parents fc5e030 + a9f4484 commit 64b3000

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

content/tracker-configuration.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,19 @@ Usage:
7272
data-domains="mywebsite.com,mywebsite2.com"
7373
></script>
7474
```
75+
76+
### Google Tag Manager
77+
78+
Google Tag Manager will strip the attributes from the tracker, so you can bypass this by using the format below.
79+
80+
Usage:
81+
```
82+
<script>
83+
(function() {
84+
var el = document.createElement("script");
85+
el.setAttribute("src", "http://mywebsite.com/umami.js");
86+
el.setAttribute("data-website-id", "94db1cb1-74f4-4a40-ad6c-962362670409");
87+
document.body.appendChild(el);
88+
})();
89+
</script>
90+
```

0 commit comments

Comments
 (0)