Using Google Analytics in a Figma Plugin

Hi everyone,

I’m trying to use Google analytics in my Figma Plugin to track usage. I get the following Security error when Google Analytics is initialized.
‘SecurityError: Failed to read the ‘cookie’ property from ‘Document’: Cookies are disabled inside ‘data:’ URLs.’

Has anyone had any luck with using a analytics solution inside your plugin ?

Thanks!

2 Likes

Up ! Interested by this topic :slight_smile:

@Matthieu_Lepine I was able to use mixpanel for this. Check out mixpanel-figma - npm

I’m also very interested in this.

But are we getting a cookie insent message first then? Or do you get notified about the fact you’re using GA? This because I’m not quite sure how this will work with GDPR