Comments (9)
For me it looks fine. On your page, /work gets tracked on navigating
from analytics.
Experiencing the same
from analytics.
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.
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.
Hey @tobiaslins, thanks for the reply. Here is the domain: https://www.hornxengineering.dev
from analytics.
@hchris21 which Next.js version are you on?
did you add the Analytics component to the layout.tsx?
from analytics.
@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.
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.
Will close this here! feel free to reopen if there are other issues
from analytics.
Related Issues (20)
- @vercel/analytics throws errors HOT 4
- Error 400 when using analytics/server track in server actions HOT 2
- Vercel build failed with Turborepo and multiple apps deployed HOT 5
- Vercel Analytics Endpoints HOT 1
- Docs: Specify if `track` runs in development mode or not HOT 1
- Feature Request: Allow nonce as optional prop in analytics component for content security policy HOT 1
- Integration with Docusaurus HOT 1
- Module resolution warnings under Yarn PnP: `Unable to resolve path to module '@vercel/analytics/react'.eslintimport/no-unresolved` HOT 5
- City-Level analytics HOT 3
- CJS files are missing in 1.2.0 HOT 10
- Feature request: Exports HOT 3
- Cannot install the latest version of `@vercel/analytics` with `[email protected]` HOT 2
- Vercel Analytics being blocked by AdBlockers HOT 1
- SvelteKitError: Not found: /_vercel/insights/script.js with playwright/test
- Use process.env.ASSET_PREFIX when sending tracking data #63 HOT 1
- Version Compatibility
- CORS errors
- script.js doesn't load with Next.js Dyamic Routes? [Error on build only] HOT 2
- unclear how to view and export custom events + properties? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analytics.