rdjpalmer / no-persistence-mixpanel

Minimal wrapper of the Mixpanel HTTP api. Avoid cookie banners and add analytics to figma plugins
MIT License
1 stars 0 forks source link

Update API so it's a drop in replacement for the Mixpanel JavaScript SDK #5

Open rdjpalmer opened 2 years ago

rdjpalmer commented 2 years ago

The library currently opts to simplify the APIs into plain english. E.g., mixpanel.people.set has become mixpanel.setUserProperty.

We should use the same naming conventions and class structure so the library can be a drop in replacement instead

rdjpalmer commented 2 years ago

Alternatively, we should consider making no-persistence-mixpanel as small as possible, and allow for each method to be tree-shakable. E.g., if a project only uses mixpanel.track then we should support treeshaking of all the other methods