More Premium Hugo Themes Premium Nuxt Themes

Plausible

Plausible Analytics integration for Nuxt

Plausible

Plausible Analytics integration for Nuxt

Author Avatar Theme by nuxt-modules
Github Stars Github Stars: 115
Last Commit Last Commit: Jan 16, 2025 -
First Commit Created: Feb 24, 2024 -
default image

Overview

The Nuxt Plausible module offers native integration of Plausible Analytics for Nuxt, providing easy setup and configuration for tracking events and page views. With features like no configuration necessary, manual event tracking, .env file support, sensible default options, and SSR readiness, this module simplifies the process of integrating Plausible Analytics into a Nuxt application.

Features

  • No configuration necessary: Easy setup without the need for complex configurations.
  • Track events and page views manually with composables: Allows manual tracking of events and page views using composables.
  • .env file support: Supports configuration through environment variables in the .env file.
  • Sensible default options: Provides sensible default options to streamline the setup process.
  • SSR-ready: Designed to work seamlessly with server-side rendering (SSR) in Nuxt applications.

Installation

To install the Nuxt Plausible module, add @nuxtjs/plausible to the modules section of your Nuxt configuration. This will enable Plausible to run in the client-side of your application. You can configure additional options in your Nuxt configuration file or by setting environment variables in the .env file.

npm install @nuxtjs/plausible

Summary

The Nuxt Plausible module simplifies the integration of Plausible Analytics into Nuxt applications by offering a seamless setup process with features like manual event tracking, SSR compatibility, and .env file support. Whether you need to track events or monitor page views, this module provides a straightforward solution with sensible default options and minimal configuration required.