I am following the “Setup Mixpanel” instructions for JavaScript:
I copied the JS snippet (with my token) just before the </head> tag of my page.
This is my HTML:
<html>
<head>
...
mixpanel.init("my token", {batch_requests: true})</script>
</head>
<body>
<script type="text/javascript">
alert("1");
mixpanel.track("Event name");
alert("2");
</script>
</body>
</html>
The alerts work, but I don’t see a request with event data in Chrome developer tools.
The “Check for Incoming Data” button produces “We haven't received any data yet” message.
What am I doing wrong?
