From 289cd6f7bae5cf13b5510ce61074ce62ed477d8d Mon Sep 17 00:00:00 2001 From: saikumarrs Date: Thu, 26 Aug 2021 17:14:02 +0530 Subject: [PATCH] Additional tracking events added --- tests/SampleEventsTest.Html | 44 ++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/tests/SampleEventsTest.Html b/tests/SampleEventsTest.Html index 86c22660bf..a598f4a9de 100644 --- a/tests/SampleEventsTest.Html +++ b/tests/SampleEventsTest.Html @@ -24,7 +24,49 @@ }(method); } rudderanalytics.load("1weqc5iqxRkpaUXHgDgYo3g34mg", "http://localhost:8080", { logLevel: "DEBUG"}); - rudderanalytics.page(); + rudderanalytics.page( + "Home", + "Cart Viewed", + { + path: "", + referrer: "", + search: "", + title: "", + url: "", + }, + () => { + console.log("in page call"); + }); + + rudderanalytics.track( + "test track event 1", + { + revenue: 30, + currency: 'USD' , + user_actual_id: 12345 + }, + () => {console.log("in track call 1");} + ); + + rudderanalytics.track( + "test track event 2", + { + revenue: 45, + currency: 'INR' , + user_actual_id: 333 + }, + () => {console.log("in track call 2");} + ); + + rudderanalytics.track( + "test track event 3", + { + revenue: 10003, + currency: 'EUR' , + user_actual_id: 5678 + }, + () => {console.log("in track call 3");} + ); // TODO: Call other APIs here