File: examples/example_sync.html

Recommend this page to a friend!
  Classes of Arturs Sosins   Countly Web SDK   examples/example_sync.html   Download  
File: examples/example_sync.html
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Countly Web SDK
Track site accesses and errors the Countly API
Author: By
Last change: [SDK-697] Changes before publishing (#173)

* compiled

* examples

* package

* index

* index

* 500

* 5

* .

* ..

* 10

* .

* testser

* ..

* mini

* megapush
[SDK-555] WEB SDK tests (#166)

* first test

* improved the logic and added event check

* more improvement

* stash

* tests

* tests?

* tests!

* tests!!

* (╯°□°)╯︵ ┻━┻

* more time

* var to let

* changes

* mid work stash

* helper

* just checking the waters

* some tweaks

* time+

* 8

* more

* plenty

* timing

* log

* consents test

* 50

* sessions

* erased

* linted

* timing

* timing

* tweaks times and roses

* 100

* fixed

* +250

* consent checks

* patch 1.5

* patch 2.5

* patch 3.2

* yea

* 10

* gogo

Co-authored-by: ArtursKadikis <kadikis.arturs@gmail.com>
Date: 1 year ago
Size: 801 bytes
 

Contents

Class file image Download
<html> <head> <input type="button" id="testButton" onclick="clickEvent()" value="Test Button"> <p><a href='http://count.ly/'>Count.ly</a></p> <!--Countly script--> <script type='text/javascript' src='../lib/countly.js'></script> <script type='text/javascript'> //initializing countly with params Countly.init({ app_key: "YOUR_APP_KEY", url: "https://try.count.ly", //your server goes here debug:true, offline_mode: true }) //track sessions automatically Countly.track_sessions(); //track pageviews automatically Countly.track_pageview(); Countly.track_errors(); </script> </head> <body> <script type='text/javascript' > //send event on button click function clickEvent(){ Countly.add_event({ key: "buttonClick", "segmentation": { "id": "id" } }); } </script> </body> </html>