JSFiddle - React, Tailwind, and code Playground
by Vladimir
HTML
<input type="button" value="!!!" />
<a href="https://jsfiddle.net/br3t/ywpLx4zb/" target="_blank">Click</a>
<script type='text/javascript'>
//some default pre init
var Countly = Countly || {};
Countly.q = Countly.q || [];
//provide countly initialization parameters
Countly.app_key = '86bdd00593e67d381b94df70cfcf84d9c13fd82b';
Countly.url = 'https://try.count.ly';
Countly.q.push(['track_sessions']);
Countly.q.push(['track_pageview']);
Countly.q.push(['track_clicks']);
//load countly script asynchronously
(function() {
var cly = document.createElement('script'); cly.type = 'text/javascript';
cly.async = true;
//enter url of script here
cly.src = 'https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/18.1.0/countly.min.js';
cly.onload = function(){Countly.init()};
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(cly, s);
})();
</script>
<script type='text/javascript'>
Countly.q.push(['add_event',{
"key": "Download",
"count": 1,
"segmentation": {
"test_segment": "test_segment_value"
}
}]);
Countly.q.push(function(){
Countly.user_details({
name: "Ivan",
username: "Ivanov",
email: "[email protected]",
organization: "Insallpack",
phone: "02",
gender: "M",
byear: "1970"
});
Countly.userData.set("fb", "installps");
});
</script>