From 51c2de6a999f5cd7d8c1a0be09c380c1dd7165ee Mon Sep 17 00:00:00 2001 From: sayan-mitra Date: Mon, 18 Jan 2021 11:35:34 +0530 Subject: [PATCH] update readme --- dist/rudder-sdk-js/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/rudder-sdk-js/README.md b/dist/rudder-sdk-js/README.md index f98319518d..1b55d7b8af 100644 --- a/dist/rudder-sdk-js/README.md +++ b/dist/rudder-sdk-js/README.md @@ -81,8 +81,8 @@ It is recommended to use the snippet above to use Rudder SDK in your websites, b - Since, the module exports a bunch of api's on a already defined object combined with node module caching, you should perform the below only once and use the exported object throughout your project : ``` import * as rudderanalytics from "rudder-sdk-js" -rudderanalytics.ready(() => {console.log("we are all set!!!")}) rudderanalytics.load("YOUR_WRITE_KEY", "DATA_PLANE_URI") +rudderanalytics.ready(() => {console.log("we are all set!!!")}) export { rudderanalytics } ``` For es5, with *require*: @@ -229,7 +229,8 @@ rudderanalytics.load("YOUR_WRITE_KEY", "DATA_PLANE_URI", We will be adding similar callbacks for apis such as `track, page, identify` etc. # [](https://github.com/rudderlabs/rudder-sdk-js/blob/master/README.md#autotrack)Autotrack - +| **IMPORTANT**: We have deprecated the Autotrack feature for the RudderStack JavaScript SDK. If you still wish to use it for your project, refer to [this security checkpoints](https://github.com/rudderlabs/rudder-sdk-js-autotrack#security). | +|:------| It may happen that the need arises to track most of user interactions with a web-app. It becomes hard for a developer to capture these DOM interactions and make track calls for all. The autotrack feature of Rudder SDK helps in tracking all user interactions like `click | change | submit` automatically. The data generated will be verbose and to make sense of the data, one can use `user transformations` from the config-plane to build use-cases like monitoring user journeys etc. For more information and payload structure, click [here](https://docs.rudderstack.com/sdk-integration-guide/getting-started-with-javascript-sdk/rudderstack-autotrack-feature). To enable autotracking, make the load call as: