Giter VIP home page Giter VIP logo

Comments (9)

tobiaslins avatar tobiaslins commented on July 3, 2024 1

For me it looks fine. On your page, /work gets tracked on navigating
image

from analytics.

mschmdb avatar mschmdb commented on July 3, 2024

Experiencing the same

from analytics.

hchris21 avatar hchris21 commented on July 3, 2024

It has (most probably) nothing to do with SvelteKit, I am using plain Next.js (latest version) and unfortunately I am experiencing the same issues as described by @mattpilott.

It will only recognise the route of the initial page load OR on a full refresh.

I am using the next/link package for navigation.

from analytics.

tobiaslins avatar tobiaslins commented on July 3, 2024

Hey @mattpilott

This should be resolved by the SvelteKit patch you see linked above.

@hchris21
This shouldn't happen. Can you share a domain with us so I can check? Soft navigations should be reported as expected for all frameworks

from analytics.

hchris21 avatar hchris21 commented on July 3, 2024

Hey @tobiaslins, thanks for the reply. Here is the domain: https://www.hornxengineering.dev

from analytics.

tobiaslins avatar tobiaslins commented on July 3, 2024

@hchris21 which Next.js version are you on?
did you add the Analytics component to the layout.tsx?

from analytics.

hchris21 avatar hchris21 commented on July 3, 2024

@tobiaslins, on my latest build I am using Next.js 14.0.3, and yes, the Analytics component is added inside the root layout.tsx as mentioned in the docs, like:

<html lang="en">
   <body>
       <main>
          <Navbar /> // this is the component with the Links
          {children}
       </main>
       <Analytics />
   </body>
</html>

I have also tried it out with the <Analytics /> being inside the <main> (together with the Navbar and children), but it did not make a difference

from analytics.

hchris21 avatar hchris21 commented on July 3, 2024

Hey @tobiaslins, I have updated the dependencies and now it is showing the page views on my non-root pages as well. (tested it with different users on different devices)

I assume it has to do with the fact that the next version is now 14.0.4, because the other deps that were updated were packages like: autoprefixer, classnames, eslint-config-next, geist and tailwindcss, I believe none of these packages have conflicted with the Analytics.

from analytics.

tobiaslins avatar tobiaslins commented on July 3, 2024

Will close this here! feel free to reopen if there are other issues

from analytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.