From 8a47649091182a5bff9b8194d5e860dc3f7ba411 Mon Sep 17 00:00:00 2001 From: sayan-rudder <52495529+sayan-rudder@users.noreply.github.com> Date: Thu, 19 Mar 2020 19:25:31 +0530 Subject: [PATCH] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eaff058222..5e9f6fcd5d 100644 --- a/README.md +++ b/README.md @@ -73,8 +73,7 @@ rudderanalytics.identify( search: "", title: "", url: "" - }, - anonymousId: "12345" + } }, () => {console.log("in identify call");} ); @@ -102,7 +101,7 @@ In the above example, the method tracks the event ‘test track event GA3’, in You can use this method to track various other success metrics for your website, such as user signups, item purchases, article bookmarks, and much more. -**NOTE**: To override contextual information, for ex: anonymising IP and other contextual fields, the following template can be used. Similarly one can override the auto generated anonymousId with provided id. For this: +**NOTE**: To override contextual information, for ex: anonymising IP and other contextual fields like page properties, the following template can be used. Similarly one can override the auto generated anonymousId with provided id. For this: ``` rudderanalytics.track( @@ -113,6 +112,13 @@ rudderanalytics.track( user_actual_id: 12345 }, { + page: { + path: "", + referrer: "", + search: "", + title: "", + url: "" + }, context: { ip: "0.0.0.0" },