2
0 Comments

Analytics on Chrome Extensions

I've recently built a chrome extension, but I'm struggling to implement analytics within the extension itself. I'm running with manifest v3 since v2 will be slowly deprecated. However, Google has decided that chrome extensions shouldn't easily access scripts from external locations, likely for security concerns. This change has become a large roadblock for me to implement analytics.

I've been trying to implement analytics through both google analytics and then now I'm trying with mixpanel, but I still haven't gotten it working. Unfortunately, my web development skills are lacking. I'm thinking I'm missing something with my content security policy or something as I really don't understand it well.

I'm hoping that this community with all it's small projects and extension development would be able to offer some advice with how to set up analytics within a chrome extension. Or perhaps suggest a tool I haven't tried yet.

on February 2, 2023