nuxt-themes / alpine

The minimalist blog theme, powered by Nuxt & Markdown.
https://alpine.nuxt.space
MIT License
284 stars 57 forks source link

Microsoft Clarity or Google Analytics #179

Closed Kokolinio closed 6 months ago

Kokolinio commented 6 months ago

Hi,

I've set up a blog using Alpine template and deployed it on Vercel. It is working fine, however i would like to connect it to Microsoft Clarity or Google Analytics, but after installing a package ("nuxt-gtag" or "nuxt-microsoft-clarity") in the project it would not build. How can I install one of these analytics tools on Alpine blog?

Atinux commented 6 months ago

Hi @Kokolinio

You can add install the module and add it to your `nuxt.config.ts

Kokolinio commented 6 months ago

Hi, Thanks for replying! I installed modules and added them to nuxt.config file, but Vercel is unable to build and deploy with them installed. I've noticed that even locally, when I clone and build fresh alpine theme it's ok, but when I install packages it breaks and it won't build. I use yarn as a package manager.