Skip to content

Commit 8ad8fb5

Browse files
authored
amplitude integration (#135)
1 parent 48c1d6a commit 8ad8fb5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ extra:
4242
- icon: fontawesome/brands/youtube
4343
link: https://www.youtube.com/channel/UCgD4zSzAJwf3tBlOgJo7Qkw
4444
generator: false
45+
analytics:
46+
provider: custom
4547

4648
extra_css:
4749
- extra.css
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<script>
2+
if (window.location.hostname === "wallarm.github.io") {
3+
var script = document.createElement("script");
4+
script.src = "https://cdn.amplitude.com/script/78e35700de65a613b46a06dafca5d5e7.js";
5+
script.onload = function () {
6+
window.amplitude.init("78e35700de65a613b46a06dafca5d5e7", {
7+
fetchRemoteConfig: true,
8+
autocapture: true,
9+
minIdLength: 3
10+
});
11+
};
12+
document.head.appendChild(script);
13+
}
14+
</script>
15+

0 commit comments

Comments
 (0)