Ultra Analytics SDK Documentation
Overview
This part of SDK helps developers send user generated events to Ultra Platform.
1. Add the dependency
First step is to add the dependency for the analytics library.
For react native or node
Add the latest version of SDK to your package.json
:
1 |
|
Then import the analytics module wherever you want to push an event.
1 |
|
For webview
Include the following script inside a <script>
tag:
1 |
|
2. Create Event Object
After importing SDK, you can create event object of any type described in this page, passing in all the required arguments for that event.
3. Sending the event
Finally push the event passing in the event object created as the argument.
1 |
|
Note
If the event is invalid then an error log will be printed on console describing the issue with the event. This error will include the list of parameter which are invalid.
Sample error log message :
Invalid event, ensure you resolve following issues: fromLocation is empty.