From 210d036574a9634471cf34379930de37930c1ccf Mon Sep 17 00:00:00 2001 From: Aref Hosseini Date: Thu, 5 Mar 2020 21:14:51 +0330 Subject: [PATCH] Update READEME to 1.1.0 --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1b5a3ff..b01a95a 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. +### 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). + ### 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: