Skip to content

Commit

Permalink
Update READEME to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arefhosseini authored Mar 5, 2020
1 parent 81e6c42 commit 210d036
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This is the guide to the Javascript SDK of AdTrace™ for web apps. You can read
* [Recommendations](#recommendations)
* [Basic setup](#basic-setup)
* [Additional features](#additional-features)
* [Adtrace Identifier](#adtrace-id)
* [Event tracking](#event-tracking)
* [Revenue tracking](#revenue-tracking)
* [Callback parameters](#callback-parameters)
Expand Down Expand Up @@ -62,6 +63,16 @@ _adtrace.trackSession(function (result) {

Once you integrate the AdTrace JS SDK into your web app, you can take advantage of the following features.

### <a id="adtrace-id"></a>Adtrace Identifier

When initializing of SDK complete, you can get **Adtrace Identifier**.

```js
var adtraceId = _adtrace.getAdId();
```

**Note**: If adtrace id equals `null`, that means the SDK is installing your data and will take a little time (under 10 seconds).

### <a id="event-tracking"></a>Event tracking

You can use adtrace to track events. Lets say you want to track every tap on a particular button. You would create a new event token in your [dashboard], which has an associated event token - looking something like `abc123`. In order to track this event from your web app, you should do following:
Expand Down

0 comments on commit 210d036

Please sign in to comment.