Skip to content

Commit

Permalink
added test browser
Browse files Browse the repository at this point in the history
  • Loading branch information
prabrisha-rudder committed Oct 10, 2019
1 parent e1049da commit f60cfbf
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions rudder-client-javascript/analytics/tests/html/test_browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h1>Page Loaded</h1>
analytics.page("Wishlist"+ ++counter)
}, 2000); */
//analytics.page();
analytics.identify(
/* analytics.identify(
{
name: "Tintin",
city: "Brussels",
Expand All @@ -69,9 +69,9 @@ <h1>Page Loaded</h1>
title: "How to Create a Tracking Plan",
course: "Intro to Analytics",
revenue: 10
});
}); */
</script>
<script src="../dist/browser.js"></script>
<script src="browser.js"></script>

<script type="text/javascript">
//var testObj = new analytics.test();
Expand Down Expand Up @@ -105,6 +105,32 @@ <h1>Page Loaded</h1>
)
.build()
); */
analytics.identify('12345', {email: "sayan@gmail.com"}, {
context: {
ip: '0.0.0.0',
},
page: {
path: '',
referrer: '',
search: '',
title: '',
url: '',
},
anonymousId: '00000000000000000000000000',
});
analytics.page('ApplicationLoaded', {
path: '',
referrer: '',
search: '',
title: '',
url: '',
},
{
context: {
ip: '0.0.0.0'
},
anonymousId: '00000000000000000000000000'
});
</script>
</body>
</html>

0 comments on commit f60cfbf

Please sign in to comment.