Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about GDPR compliance #27

Open
fjtorres opened this issue May 15, 2019 · 2 comments
Open

Question about GDPR compliance #27

fjtorres opened this issue May 15, 2019 · 2 comments

Comments

@fjtorres
Copy link

Hello,

We are using your package to integrate our React Application with Mixpanel, however we are working to GDPR compliance and we are not sure if we can achieve it with your package. According to GPDR the cookie from Mixpanel should not be loaded until we obtain the consent of our users but.

How to achieve it using MixpanelProvider component? Some advice?

We are loading MixpanelProvider like next code.

ReactDOM.render((
    <BrowserRouter>
        <Provider store={store}>
          <MixpanelProvider mixpanel={mixpanel}>
            <Route component={App} />
          </MixpanelProvider>
        </Provider>
    </BrowserRouter>
  ), document.getElementById('root'));
@neciu
Copy link
Owner

neciu commented Jul 6, 2019

I'd say there need to be some kind of switch which initialises mixpanel code. Maybe you'd like to propose a solution?

@ak--47
Copy link

ak--47 commented Aug 23, 2019

Mixpanel library has this by default:
https://developer.mixpanel.com/docs/javascript#section-opting-users-out-of-tracking

// Opt a user out of data collection
mixpanel.opt_out_tracking();

// Check a user's opt-out status 
// Returns true if user is opted out of tracking locally
mixpanel.has_opted_out_tracking();

dunno if this library has those bindings though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants