You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
902 B

  1. head: |
  2. <script type='text/javascript'>
  3. //some default pre init
  4. var Countly = Countly || {};
  5. Countly.q = Countly.q || [];
  6. //provide countly initialization parameters
  7. Countly.app_key = '{{appKey}}';
  8. Countly.url = '{{serverUrl}}';
  9. Countly.q.push(['track_sessions']);
  10. Countly.q.push(['track_pageview']);
  11. Countly.q.push(['track_clicks']);
  12. Countly.q.push(['track_scrolls']);
  13. Countly.q.push(['track_errors']);
  14. Countly.q.push(['track_links']);
  15. //load countly script asynchronously
  16. (function() {
  17. var cly = document.createElement('script'); cly.type = 'text/javascript';
  18. cly.async = true;
  19. //enter url of script here
  20. cly.src = 'https://cdnjs.cloudflare.com/ajax/libs/countly-sdk-web/18.8.2/countly.min.js';
  21. cly.onload = function(){Countly.init()};
  22. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(cly, s);
  23. })();
  24. </script>