Nuxt5w ago

Partytown with Vercel Analystics & Vercel Speed Insights

How to integrate vercel analytics & vercel speed insights ith partytown in nuxt? Could not find any example. Happy for help! best regards, Annick
4 Replies
awacode4w ago
as no one is answering maybe you @danielroe can give me a hint? Would be really appreciated
Muhammad Mahmoud
Partytown is used with external scripts only (Which you load by adding a script tag). Vercel analytics is an npm package and not an external script. A workaround (Haven't tried this before so not sure) would be uploading vercel analytics to some cdn and import that script with a script tag and add type='text/partytown'
danielroe4w ago
The main issue with partytown is CORS - so just make sure that whatever is serving your analytics script adds CORS headers
awacode4w ago
hey @Muhammad Mahmoud & @danielroe thanks for your answers. i understand. What about plausible?? i followed the instructions posted here on examples: https://nuxt.com/modules/partytown#plausible-analytics to use plausible with partytown in nuxt. But i do not understand how then i can execute a custom click event push from javascript. Before i was using https://nuxt.com/modules/plausible with the composable https://nuxt.com/modules/plausible#usetrackevent but how to manually track an event in javascript with the partytown/plausible integration? The instructions forwarded $plausible and $plausible.push. But how to access that within nuxt components to push events? I appreciate any advice!
Want results from more Discord servers?
Add your server
More Posts
Partytown with plausible analysticsHi guys, i followed the instructions posted here on examples: https://nuxt.com/modules/partytown#pDynamic nested pagesIs there a way to have a route structure where there is an unknown amount of slugs eg: ``` example 1Create global instance of ofetchI want to create a global ofetch instance, on which I can add custom header and I want it to be presnuxt generate sets process.env.NODE_ENV to prerender after nuxt.config.tsWhen i run nuxt generate and i print the process.env.NODE_ENV in the nuxt.config.ts it is as expecteUForm schema arrayHello, I need to create an extensible form for my project I'm using zod, which looks like this (no Any guideline on using Lit based web components in Nuxt project?I'm new to Nuxt, just started to use today. I've some webcomponents coming from node_modules and somhow to chunk video file with fs.createReadStream on H3 and how to hundle it in frontend```ts import fs from "fs" import path from "path" function getFileNameFromPath(path: string) { Components changing as page transition starts instead of after leaveHello! I have a component that renders different content based on a prop that I am passing into it fpnpm run generate - not creating all pages in conten tSo can see pages with pnpm run dev ..,. pages are defined in content directory but do not see the pHow to come up with reproductions for production-only Nuxt crashes?We're having quite a few Sentry alerts in production due to stuff like manifest errors (similar to h