mathieudutour / medium-to-own-blog

Switch from Medium to your own blog in a few minutes
MIT License
3.03k stars 107 forks source link

integrated google analytics #43

Closed dbarochiya closed 4 years ago

dbarochiya commented 5 years ago

I have added the steps to integrate google analytics, this can also be added as the separate module.

note: I have added this package for integrating the google analytics "gatsby-plugin-google-analytics": "^2.0.20"

mathieudutour commented 5 years ago

So I don't really want to add GA by default, way too much info gathered by Google. I was more thinking about just adding a document about how to add GA to the created project (pretty much the steps you wrote here).

If I were to add a default analytic service, I'd add https://simpleanalytics.io

dbarochiya commented 5 years ago

Even I had that concern about Google gathering the sheer amount of data. Please recommend any free alternative available for the people who are just starting into the blogging world and don't have much bandwidth to pay for analytics service

mathieudutour commented 5 years ago

for now I don't have any recommendation. Tbh we might be able to use netlify's functions to spin up a small analytic service. That's in my backlog of ideas somewhere.

That's why I think the best for now is to just have a doc with how to install GA and simpleanalytics, for the user to choose

dbarochiya commented 5 years ago

So I don't really want to add GA by default, way too much info gathered by Google.

By the way, it will ask the user first for the permission before adding analytics, not a default option.

paramaggarwal commented 5 years ago

I propose that GA support is not added to the initial onboarding, but is an advanced step that people can choose to setup via a config variable. The beauty of this tool is in the simple onboarding and adding a GA step just adds one more step.

mathieudutour commented 5 years ago

That also look interesting: https://www.netlify.com/blog/2019/07/10/netlify-analytics---accurate-insights-without-performance-impacts

alexfinnarn commented 5 years ago

My two cents...since this project uses Gatsby, just link to https://www.gatsbyjs.org/docs/adding-analytics/ or provide a section in the readme with that link and one about Netlify and some more about x, y, and z.

I do agree that analytics shouldn't be installed by default even though Medium does provide you some analytics data. To me, "owning your content" is all about taking the power away from large entities that provide free services to horde and use your data. I will add analytics to my site, but I will choose to do so rather than have some solution forced upon me.

mathieudutour commented 4 years ago

I think I'd like to add an easy path to support https://www.goatcounter.com/. Probably just setting the goatcounter code in the config and conditionally add the gatsby plugin (https://www.gatsbyjs.org/packages/gatsby-plugin-goatcounter) if present.

Seems like the best free indie option out there