I have created a simple react app, and I try to send some events to mixpanel.
However nothing is sent. No api requests are shown in network console, when mixpanel.track('test') is called.
when mixpanel.init('token') is called, I receive this response:
{"notifications":[],"config":{"enable_collect_everything":false}}
this is my index.js:
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
let mixpanel = require('mixpanel-browser');
mixpanel.init('my-secret-token');
mixpanel.track('test');
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
I have initialized my react app by create-react-app, and installed mixpanel-browser module.
I also have created mixpanel project, and triple checked that token.
Any ideas what I am doing wrong?
Ok, it seems to have something to do with my chrome browser. When using safari, everything works fine, but with chrome nothing is sent.
macOS: high sierra, 10.13.6 (17G65) chrome version: 68.0.3440.106