Why I removed google analytics (what how I track analytics now)
Вставка
- Опубліковано 6 сер 2024
- 00:00 - Introduction
01:06 - Alternative Approach for Analytics
02:02 - Using CloudWatch for Analytics
05:20 - Using Matomo for Analytics
07:26 - Conclusion
📘 T3 Stack Tutorial: 1017897100294.gumroad.com/l/j...
🤖 SaaS I'm Building: www.icongeneratorai.com/
▶️ ytchaptersgenerator.com
💬 Discord: / discord
🔔 Newsletter: newsletter.webdevcody.com/
📁 GitHub: github.com/webdevcody
📺 Twitch: / webdevcody
🤖 Website: webdevcody.com
🐦 Twitter: / webdevcody
¨I love deploying everything to AWS because i love wasting time¨ 🤣🤣🤣
Your site is amazing, good-looking, and well-designed.
I think it will be more comfortable for users if you change the color of the "Get Started Now" button from red to light green (the same color as your logo).
I think the red color may confuse the users that it feels like a dangerous button.
Good feedback, I’ll change that
Some good alternatives mentioned from people in the comment (thank you awesome community)
- Plausible - plausible.io/
- Matomo - matomo.org/
- Umami - umami.is/
- Mixpanel - mixpanel.com/
Just a heads-up:
1. UA-cam somehow messed up your links, including the closing parenthesis in the links, making them invalid.
2. Mamotoa is actually Matomo.
3. Unami is actually Umami, with an "m" instead of "n".
@@HeavenNextHD thanks for pointing all that out! those should all be fixed now
Plausible is also a popular alternative which is self hostable.
awesome, I'll check that out
What library you used for your cookie banner? Thanks!
I have this same exact problem and this video was super useful. I really love these kind of utility "no hype" videos that are just "hey this is my advice as a solo dev"
Thanks!
thanks for video! What do you use for logging?
Aws cloudwatch
I see your processed captions "Huevos al albañil | La capital" and I can tell you are a man of culture :p I'm curious, do you watch his content regularly or just did it for testing?
haha no someone uploaded this video to test my system. It turns out videos not in english cause openai some problems, so I'm happy that person uploaded that video in spanish
so how to set up self-hosted matomo?
Hey Cody! I am completely new to stripe and I was wondering how you are selling and keeping track of your user's credit? Could you please make a video on that?
I have a video publishing tomorrow on exactly that
@@WebDevCody Thank you! I will be waiting for it.
funny i did the same logging solution as u did in the middleware :D I have my portoflio website build on next js and for its content I also build a headless cms. So in the headless cms dashboard i wanted to check how many unique users and which pages were getting more requests from the portfolio (content consumer) site :) (i have a logic to save the loggs over my db). But yeah middleware kinda works for simple stuff like that.
yeah, it's simple and it works for my needs
Nice, in one of my apps im using 'party town' to run the analytics script in a service worker, kinda cool.
How u deploy your next, aws amplify?
Sst
would caching not affect those logs though? Good solution if all you care about is page views. Any other data such as events or conversion actions require a more in depth solution.
I actually just double checked this and yes, unless your landing page is set to be dynamic, cloudfront will cache your landing page and the middleware will never run again. Adding export const dynamic = "force-dynamic" will force the middleware to re-run each request (at the cost of a slower to load landing page 😭).
Does vercel also have analytics?
I guess they have for server monitoring logs not sure if they also have for data logs.
They have analytics on which endpoints are hit and which ones are cache hits, etc. that’s the extent of what I know
But the sad thing is they don't have api for the analytics though.
Vercel has built in Analytics but the free tier is more limited than other products. It doesn't make a lot of sense to use Vercel analytics imo if you have other alternatives like Umami, Matomo or Plausible (which are plug and play)
actually I should recitify myself: plausible and matomo do not have a free tier (just trial) but umami has free tier. All these 3 tools can be self hosted, and to self host them you only need a UI frontend and a database (so you can get it for free with Vercel or Netlify and Supabase free tiers)
Im not primarly a developer, im actully a devops guy, who have lots of experience in tooling, scripting, infrastructure, etc.
But would love to learn React. Do you have any longer form of education content available or could consider making it? :) Let's say i want to create a pokedex, or a simple portfolio page.
I have one course that is like $20 that builds a dumbed down version of my icon generator ai site, and I have a couple of longer videos on my channel you'd have to kind of search to find. I may try to make a longer form introduction to React video if I get some free time.
@@WebDevCody Yeah, if you find the free time, please consider a "longer form" tutorial for 2023/2024, react. You are very good with reat, and good communication and teaching skills, and i dont mind paying for it!
the google tag manager consent configuration/mode will help a lot regarding the cookie issue.
hey G I just checked the website, the image with ".scale-150" is causing overflow and a scroll bar on the body
Thanks I’ll fix that
It will be really helpfull if u make a video how to add logs to aws 2 cloudfront
im using vercel analytics its pretty cool and simple
"I like deploying everything to AWS because I like wasting time" 2:03 that is hilarious
Any sensible dev is going to have a retention period set on CW logs, usually 2 weeks to a month, so this approach will only allow you to query logs and hack together analytics from the previous few weeks. Maybe this is good enough for you but long term analytics are usually important to give you a bigger image of what is happening
Is there a reason you'd want a retention period?
@@parlor3115 yes there is a big reason, you can track back what happened on your systems if any problem occurs, there are also some legal requirements depending on the business to keep log data infinitely. so yeah, retention period is a great factor when it comes to choosing a method to store analytics and tracking data.
@@parlor3115usually because cost
Not sure why is this all needed, isn’t the new GA4 with its IP anonymization enough?
No because they still use cookies to track I believe. If your app stores anything on a users device (cookie, local storage, etc) they must be informed in your privacy policy or cookie policy page. Now, if you store a cookie that is not necessary for the app to function (google analytics), you must provide a consent banner and allow users to opt out.
Because "I like wasting time" lmaooo
The site still working?
not right now, I decided to take it down as I focus on other projects
I use mixpanel
"You're probably gonna laugh." Absolutely not. Simple and it works. +1
Good job babe!!!
thanks babe!
You said you’d use Remix 😔
I went back to next 🤣 the DX with server actions just feels better than the actions in remix honestly
That's fair. How has the caching and the whole parameters revealing secrets thing been? (you could just make a video on this honestly) @@WebDevCody
why are other services allowed to track user's data without setting up the consent? is it because google analytics collect more data than those services?
If you use a cookie to track user information, you need their consistent; therefore, you'd need a cookie banner and preference page. Google analytics uses cookies. Other services do not use cookies, and instead they probably just store events in a secure database to track when users click buttons, load pages, etc.
Are you actually certain that your "new" approach is GDPR compliant?
all type of analytics/tracking, even if it uses Google Analytics or something else requires you to ask for consent and your consent needs to explain exactly what type of data you are tracking and for what it's used for. The lawyers from a big company in a current project required us to do it even if there is no user data at all involved and not even any ip addresses (because we go through our own server first)
From what I understand, if you can’t associate the data with an ip or user, then it’s not applicable. But your lawyers probably either know more or are just extra cautious.
what how I track analytics now?
umami and matoma is another alternative to google analytics. I'm not sure if analytics really are that helpful from what I understand. It's nice to just see your app getting more traffic or not, but other than that I haven't seen anything on the google analytics dashboard that is super useful to track
I use umami
First?
HAHAH you stole the idea from the hackathon. Well done, as expected of every "hackathon".
it’s slightly similar, but I wouldn’t say stole. His idea was to allow users to lookup locations in a video using search, my app just summarized the video into timestamps which is something I’ve was wanting to do before the hackathon
I have done little research and I'm going with Umami: very generous free tier, no cookies, easy to selfhost. (Matomo would be easy to selfhost too, but does not offer free tier)
Umami UI also looks way better than Matomo's
For some reason my comment got deleted uhh (maybe because it's a link?)
But "umami" is also a good alternative to Google Analytics, one I really like.
I'll have to check it out