Skip to content

Commit ecc5100

Browse files
authored
update userId
1 parent 9cd22ca commit ecc5100

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ <h1>What is your favorite place to travel?</h1>
6262
<script type="text/javascript">
6363
function identify(e){
6464
e.preventDefault();
65+
var userId = Math.floor(100000 + Math.random() * 900000);
6566
var form = e.target;
6667
var email = form["email"].value;
6768
var fullname = form["fullname"].value;
@@ -73,7 +74,7 @@ <h1>What is your favorite place to travel?</h1>
7374
destination: destination,
7475
details: details
7576
};
76-
analytics.identify('1234', {
77+
analytics.identify(userId, {
7778
email: email,
7879
name: fullname
7980
});

0 commit comments

Comments
 (0)