sync_media_event_capture_js

1.0.2 • Public • Published

About

Sync Browser library to track browser specific data

How to use

Include below snippet in query.

<script type="text/javascript" 
    src="https://unpkg.com/sync_media_event_capture_js@1.0.2/sync_media_event_capture.js?api_key=API_KEY" 
    charset="utf-8" 
    crossorigin="anonymous">
</script>

Track User Events

SMApp.setUser("user_id");

Log Custom Event

let event_json = {
    "key": "val",
    "dict":{
        "bool": true,
        "string": "str",
        "arr": ["arr"]
    }
};

SMApp.logEvent("ExampleEventName", event_json);

Contributors

Readme

Keywords

Package Sidebar

Install

npm i sync_media_event_capture_js

Weekly Downloads

47

Version

1.0.2

License

ISC

Unpacked Size

6.34 kB

Total Files

3

Last publish

Collaborators

  • syncmediaengg