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

КОМЕНТАРІ • 75

  • @oscarljimenez5717
    @oscarljimenez5717 10 місяців тому +34

    ¨I love deploying everything to AWS because i love wasting time¨ 🤣🤣🤣

  • @ultimatescript
    @ultimatescript 10 місяців тому +8

    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.

    • @WebDevCody
      @WebDevCody  10 місяців тому +2

      Good feedback, I’ll change that

  • @WebDevCody
    @WebDevCody  10 місяців тому +4

    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/

    • @HeavenNextHD
      @HeavenNextHD 10 місяців тому

      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".

    • @WebDevCody
      @WebDevCody  10 місяців тому +1

      @@HeavenNextHD thanks for pointing all that out! those should all be fixed now

  • @arthur936
    @arthur936 10 місяців тому +6

    Plausible is also a popular alternative which is self hostable.

    • @WebDevCody
      @WebDevCody  10 місяців тому +1

      awesome, I'll check that out

  • @zaritzki
    @zaritzki Місяць тому

    What library you used for your cookie banner? Thanks!

  • @luiswebdev8292
    @luiswebdev8292 25 днів тому

    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!

  • @user-ci5hf5oe1f
    @user-ci5hf5oe1f 10 місяців тому

    thanks for video! What do you use for logging?

  • @naylord5
    @naylord5 10 місяців тому

    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?

    • @WebDevCody
      @WebDevCody  10 місяців тому

      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

  • @luiswebdev8292
    @luiswebdev8292 25 днів тому

    so how to set up self-hosted matomo?

  • @amorto3420
    @amorto3420 10 місяців тому

    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?

    • @WebDevCody
      @WebDevCody  10 місяців тому +2

      I have a video publishing tomorrow on exactly that

    • @amorto3420
      @amorto3420 10 місяців тому

      @@WebDevCody Thank you! I will be waiting for it.

  • @miro0o92
    @miro0o92 10 місяців тому +1

    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.

    • @WebDevCody
      @WebDevCody  10 місяців тому

      yeah, it's simple and it works for my needs

  • @FlygOnLiTe
    @FlygOnLiTe 10 місяців тому

    Nice, in one of my apps im using 'party town' to run the analytics script in a service worker, kinda cool.

  • @javierperezmarin6039
    @javierperezmarin6039 10 місяців тому

    How u deploy your next, aws amplify?

  • @Kevin-fl4rn
    @Kevin-fl4rn 10 місяців тому

    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.

    • @WebDevCody
      @WebDevCody  10 місяців тому +1

      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 😭).

  • @yashsolanki069
    @yashsolanki069 10 місяців тому

    Does vercel also have analytics?
    I guess they have for server monitoring logs not sure if they also have for data logs.

    • @WebDevCody
      @WebDevCody  10 місяців тому

      They have analytics on which endpoints are hit and which ones are cache hits, etc. that’s the extent of what I know

    • @Kurogane-el2vq
      @Kurogane-el2vq 5 місяців тому

      But the sad thing is they don't have api for the analytics though.

    • @luiswebdev8292
      @luiswebdev8292 25 днів тому

      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)

    • @luiswebdev8292
      @luiswebdev8292 25 днів тому

      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)

  • @zamarinen
    @zamarinen 10 місяців тому +3

    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.

    • @WebDevCody
      @WebDevCody  10 місяців тому +1

      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.

    • @zamarinen
      @zamarinen 10 місяців тому

      ​@@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!

  • @TheZhouh12
    @TheZhouh12 10 місяців тому

    the google tag manager consent configuration/mode will help a lot regarding the cookie issue.

  • @ajzack983
    @ajzack983 10 місяців тому

    hey G I just checked the website, the image with ".scale-150" is causing overflow and a scroll bar on the body

    • @WebDevCody
      @WebDevCody  10 місяців тому +1

      Thanks I’ll fix that

  • @king-virat-kohli
    @king-virat-kohli 10 місяців тому +1

    It will be really helpfull if u make a video how to add logs to aws 2 cloudfront

  • @romaind4853
    @romaind4853 10 місяців тому +2

    im using vercel analytics its pretty cool and simple

  • @zi_t
    @zi_t 10 місяців тому +1

    "I like deploying everything to AWS because I like wasting time" 2:03 that is hilarious

  • @TheStruders
    @TheStruders 10 місяців тому +2

    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

    • @parlor3115
      @parlor3115 10 місяців тому +1

      Is there a reason you'd want a retention period?

    • @abdirahmann
      @abdirahmann 10 місяців тому

      @@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.

    • @AmirulAbu1
      @AmirulAbu1 10 місяців тому

      ​@@parlor3115usually because cost

  • @miromannino
    @miromannino 10 місяців тому

    Not sure why is this all needed, isn’t the new GA4 with its IP anonymization enough?

    • @WebDevCody
      @WebDevCody  10 місяців тому

      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.

  • @eshw23
    @eshw23 10 місяців тому +3

    Because "I like wasting time" lmaooo

  • @lookingforbino
    @lookingforbino 7 місяців тому

    The site still working?

    • @WebDevCody
      @WebDevCody  7 місяців тому

      not right now, I decided to take it down as I focus on other projects

  • @shakapaker
    @shakapaker 10 місяців тому +2

    I use mixpanel

  • @jakubmatousek9429
    @jakubmatousek9429 10 місяців тому +2

    "You're probably gonna laugh." Absolutely not. Simple and it works. +1

  • @SeibertSwirl
    @SeibertSwirl 10 місяців тому

    Good job babe!!!

  • @st-jn2gk
    @st-jn2gk 10 місяців тому +1

    You said you’d use Remix 😔

    • @WebDevCody
      @WebDevCody  10 місяців тому +3

      I went back to next 🤣 the DX with server actions just feels better than the actions in remix honestly

    • @st-jn2gk
      @st-jn2gk 10 місяців тому

      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

  • @yunyang6267
    @yunyang6267 10 місяців тому

    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?

    • @WebDevCody
      @WebDevCody  10 місяців тому +1

      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.

  • @wezter96
    @wezter96 10 місяців тому

    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)

    • @WebDevCody
      @WebDevCody  10 місяців тому

      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.

  • @jfluffydog2110
    @jfluffydog2110 10 місяців тому

    what how I track analytics now?

    • @WebDevCody
      @WebDevCody  10 місяців тому

      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

  • @tugrulerdemdogru
    @tugrulerdemdogru 10 місяців тому

    I use umami

  • @wriddhihazra
    @wriddhihazra 10 місяців тому

    First?

  • @ooogabooga5111
    @ooogabooga5111 10 місяців тому

    HAHAH you stole the idea from the hackathon. Well done, as expected of every "hackathon".

    • @WebDevCody
      @WebDevCody  10 місяців тому

      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

  • @luiswebdev8292
    @luiswebdev8292 25 днів тому

    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)

    • @luiswebdev8292
      @luiswebdev8292 25 днів тому

      Umami UI also looks way better than Matomo's

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 10 місяців тому

    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.

    • @WebDevCody
      @WebDevCody  10 місяців тому

      I'll have to check it out