Add Amplitude tracking to docs (#40494)

Closes #ISSUE

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Gaauwe Rombouts
2025-10-17 17:10:59 +02:00
committed by GitHub
parent b27fd3b8d7
commit 7f9898a90b
3 changed files with 21 additions and 1 deletions
+17 -1
View File
@@ -311,7 +311,23 @@
})();
</script>
<!-- Amplitude Analytics -->
<script>
(function() {
var amplitudeKey = '#amplitude_key#';
if (amplitudeKey && amplitudeKey.indexOf('#') === -1) {
var script = document.createElement('script');
script.src = 'https://cdn.amplitude.com/script/' + amplitudeKey + '.js';
script.onload = function() {
window.amplitude.init(amplitudeKey, {
fetchRemoteConfig: true,
autocapture: true
});
};
document.head.appendChild(script);
}
})();
</script>
</div>
</body>
</html>