Vue Matomo screenshot

Vue Matomo

Author Avatar Theme by Amazingdreams
Updated: 21 Sep 2023
288 Stars

Vue plugin for Matomo Analytics

Overview

VueMatomo is an impressive plugin designed to integrate Matomo analytics seamlessly into Vue applications, compatible with both Vue 2.x and 3.x. This tool stands out by offering a robust solution for tracking user behavior while ensuring compliance with consent regulations. Its asynchronous loading capability enhances performance while minimizing potential disruptions during data collection.

Whether you’re building a single-page application or managing external links, VueMatomo provides the versatility needed for modern analytics requirements. With features tailored specifically for developers, this plugin streamlines the process of implementing Matomo, ensuring that all necessary tracking is handled smoothly and efficiently.

Features

  • Compatibility: Works seamlessly with both Vue 2.x and 3.x, making it suitable for a variety of projects.
  • Asynchronous Loading: Loads matomo.js asynchronously, improving performance and user experience by preventing blocking during loading phases.
  • External Link Tracking: Automatically tracks external links after navigation events, ensuring that all interactions are captured accurately.
  • Route Ignoring: Provides options to ignore specific routes using route meta, allowing for tailored tracking setups.
  • Consent Management: Features built-in methods for managing user consent regarding tracking, which helps comply with privacy regulations.
  • Cookie Consent Handling: Offers options for managing cookie consent, enabling tracking without the need for consent banners if configured appropriately.
  • Bundled Output: Easily bundles JavaScript and CSS into the dist folder, simplifying deployment processes.
  • License: Released under the MIT license, ensuring flexibility for developers to use and modify the plugin as needed.