feat: analytics modules backend + admin panel
This commit is contained in:
45
server/modules/analytics/countly/definition.yml
Normal file
45
server/modules/analytics/countly/definition.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
key: countly
|
||||
title: Countly
|
||||
description: Countly is the best analytics platform to understand and enhance customer journeys in web, desktop and mobile applications.
|
||||
author: requarks.io
|
||||
logo: https://static.requarks.io/logo/countly.svg
|
||||
website: https://count.ly/
|
||||
isAvailable: true
|
||||
props:
|
||||
appKey:
|
||||
type: String
|
||||
title: App Key
|
||||
hint: The App Key found under Management > Applications
|
||||
order: 1
|
||||
serverUrl:
|
||||
type: String
|
||||
title: Server URL
|
||||
hint: The Count.ly server to report to. e.g. https://us-example.count.ly
|
||||
order: 2
|
||||
codeHead: |
|
||||
<script type='text/javascript'>
|
||||
//some default pre init
|
||||
var Countly = Countly || {};
|
||||
Countly.q = Countly.q || [];
|
||||
|
||||
//provide countly initialization parameters
|
||||
Countly.app_key = '{{appKey}}';
|
||||
Countly.url = '{{serverUrl}}';
|
||||
|
||||
Countly.q.push(['track_sessions']);
|
||||
Countly.q.push(['track_pageview']);
|
||||
Countly.q.push(['track_clicks']);
|
||||
Countly.q.push(['track_scrolls']);
|
||||
Countly.q.push(['track_errors']);
|
||||
Countly.q.push(['track_links']);
|
||||
|
||||
//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.8.2/countly.min.js';
|
||||
cly.onload = function(){Countly.init()};
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(cly, s);
|
||||
})();
|
||||
</script>
|
Reference in New Issue
Block a user