We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cd22ca commit ecc5100Copy full SHA for ecc5100
index.html
@@ -62,6 +62,7 @@ <h1>What is your favorite place to travel?</h1>
62
<script type="text/javascript">
63
function identify(e){
64
e.preventDefault();
65
+ var userId = Math.floor(100000 + Math.random() * 900000);
66
var form = e.target;
67
var email = form["email"].value;
68
var fullname = form["fullname"].value;
@@ -73,7 +74,7 @@ <h1>What is your favorite place to travel?</h1>
73
74
destination: destination,
75
details: details
76
};
- analytics.identify('1234', {
77
+ analytics.identify(userId, {
78
email: email,
79
name: fullname
80
});
0 commit comments