Analytics in Next.js 13 with Plausible

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 24

  • @colbyfayock
    @colbyfayock  6 місяців тому

    Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course

  • @DrSarge37
    @DrSarge37 Рік тому +4

    A couple of things to keep in mind, even though you can have 50 websites for $9/month, the 10,000 “pageviews” is across all 50 websites. Furthermore, any custom event tracking counts towards that pageview count. That means if you have only 5,000 actual page views but have 5,000 custom events in a span of a week, you have now gone over your limit.
    You also don’t have to add the provider in the head of your layout. It can still wrap your application like normal. This is helpful if you embed lets say a Sanity studio into your Next.js application, you don’t want your editors messing with your analytics data.

    • @colbyfayock
      @colbyfayock  Рік тому +2

      good points, thanks for sharing!

    • @DrSarge37
      @DrSarge37 Рік тому

      @@colbyfayock no problem! I learned the hard way of adding it to the head and noticed I had an 18 minute visit duration and then noticed it was primarily all the sanity studio 😂

    • @JacksonHan-u3k
      @JacksonHan-u3k 3 місяці тому

      It seems that it's only 9 sites at the moment.

  • @GatoNordico
    @GatoNordico Рік тому

    Great video! It seems like plausible is going to be my analytics option 🙌🏻

    • @colbyfayock
      @colbyfayock  Рік тому

      Thanks glad it was helpful!

    • @GatoNordico
      @GatoNordico Рік тому

      @@colbyfayock absolutely! Then I saw a few other of your vids and now I’m a subscriber. Looking forward for more!

  • @pranavsonawane7647
    @pranavsonawane7647 9 місяців тому

    A very helpful video Colby! Thank you so much!

  • @QtheCoder
    @QtheCoder Рік тому

    Nice, this is a good walkthrough. Was looking for one now I have a good reference

  • @sshadow2
    @sshadow2 Рік тому

    Excellent tutorial. Exactly what I needed!

  • @julianbustos3079
    @julianbustos3079 Рік тому

    Thanks Colby got this setup in 10 mins

  • @qwertzez
    @qwertzez 3 місяці тому

    Hey, I hope I still get some answer here :D. I'm self hosting plausible and NextJS and when I click on a link to go for example to /privacy-policy, it doesn't fire an event and it doesn't track it. When I refresh the website after that, I get the event. It also works, when I write /privacy-policy into the URL. It just doesn't work when I click on the link button on the page. Does anyone know how I can fix that?

  • @colbyfayock
    @colbyfayock  Рік тому

    Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news

  • @saltcod63
    @saltcod63 11 місяців тому

    Great video - amazing radio voice! :^)

  • @Kim-by5uy
    @Kim-by5uy 4 місяці тому

    Great vid. Thanks

  • @ts8960
    @ts8960 9 місяців тому

    can I fetch the amount of views on a page, so for example I want my blog articles to show how many visitors

    • @colbyfayock
      @colbyfayock  8 місяців тому

      looks like they do have an API! plausible.io/docs/stats-api#get-apiv1statsaggregate