countly-sdk-web
Version:
Countly Web SDK
21 lines (19 loc) • 592 B
HTML
<html>
<head>
<script type='text/javascript' src='../../lib/countly.js'></script>
<script type='text/javascript'>
Countly.init({
app_key: "YOUR_APP_KEY",
url: "https://your.domain.count.ly",
debug:true
})
// create a new button element and assign values of user agent functions to them here:
var cly = document.createElement('button');
cly.value = Countly._internals.userAgentDeviceDetection();
cly.name = Countly._internals.userAgentSearchBotDetection();
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(cly, s);
</script>
</head>
<body>
</body>
</html>