deco-cx / apps

App definitions by deco.cx
Apache License 2.0
77 stars 75 forks source link

Add posthog as a analytics component #847

Open matheusgr opened 2 weeks ago

matheusgr commented 2 weeks ago

Issue Type

Please inform the type(s) of issue(s) you are reporting:

Description

Posthog is a well known data analytics tool. It would be nice to provide a simple way to integrate it with your application.

My proposal:

The last topic (data-attr) seems like something that we should rethink with a more overall approach (i.e. allow any html element to be tagged via engine).

guitavano commented 2 weeks ago

solveddd

matheusgr commented 2 weeks ago

Not yet. Only the first two tasks are completed.

matheusgr commented 2 weeks ago

Current posthog implementation makes api as a secret on app, and also, non-optional on sections.

It doesn't need to be a secret (since it is a public key), and should be optional on sections.