Skip to main content
Miranda_Bailey
Jan 7, 2022 2:23 PM UTC
Question

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!

This topic has been closed for replies.

12 replies

Angga_Putra_Sundowo
Jun 28, 2023 5:12 AM UTC

Still working for me, I also had the same error, then I moved this init function inside the UI entry file not inside the code entry file, it has the console window function running once triggered.

Oct 3, 2023 7:40 PM UTC

Hi @Miranda_Bailey do you have instructions on how to connect Google Analytics to Figma prototype?