Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add posthog as product analytics dashboard #268

Open
codecakes opened this issue Jul 10, 2022 · 0 comments · May be fixed by #269
Open

Add posthog as product analytics dashboard #268

codecakes opened this issue Jul 10, 2022 · 0 comments · May be fixed by #269
Labels
enhancement New feature or request good first issue Good for newcomers up-for-grabs

Comments

@codecakes
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We have been using simpleanalytics for a while now and it gives us an anonymous albeit not so precise indication of user traffic by region, date range, hits and devices. This is a good start but not enough.

We are missing on features like:

  • users who sign up
  • drop off rate
  • user funnels
  • privacy compliant tracking
  • trends

We would like to see via an easy to use GUI our product analytics for the aforementioned metrics to better understand and validate the service. We don't do this currently.

Describe the solution you'd like
See Posthog; It captures the events, based on actions which can be used to built or connect to external vendor apps and ingest data all available on a single dashboard.

Describe alternatives you've considered
We could capture the data and store it using firebase analytics but it is not 100% privacy-compliant; We could then generate the visualization on metabase but the setup investment would be too much. Other tools could be used to record metrics and then we could use metabase but compared to posthog, the setup time is not worth it. I have not researched posthog alternatives but you are free to do so.

Additional context
Insert this snippet in your website within the tag.

Insert this snippet in your website within the <head> tag.

<script>
    !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
    posthog.init($'{POSTHOG_INIT}',{api_host:'https://app.posthog.com'})
</script>

Remember this will work only if the constant POSTHOG_INIT is present. This is added to the gh secrets.

@codecakes codecakes added enhancement New feature or request good first issue Good for newcomers up-for-grabs labels Jul 10, 2022
@codecakes codecakes linked a pull request Jul 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers up-for-grabs
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

1 participant