Skip to content

Commit

Permalink
Additional tracking events added
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Aug 26, 2021
1 parent 05b0fee commit 289cd6f
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion tests/SampleEventsTest.Html
Original file line number Diff line number Diff line change
Expand Up @@ -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
</script>
Expand Down

0 comments on commit 289cd6f

Please sign in to comment.