nuxt-umami
Advanced tools
Comparing version 2.5.4 to 2.5.5
{ | ||
"name": "nuxt-umami", | ||
"type": "module", | ||
"version": "2.5.4", | ||
"version": "2.5.5", | ||
"description": "Integrate Umami Analytics into Nuxt", | ||
@@ -9,2 +9,5 @@ "author": "ML <me.mlaure@gmail.com>", | ||
"homepage": "https://github.com/ijkml/nuxt-umami/", | ||
"sponsor": { | ||
"url": "https://github.com/sponsors/ijkml/" | ||
}, | ||
"repository": "https://github.com/ijkml/nuxt-umami/", | ||
@@ -41,13 +44,13 @@ "keywords": [ | ||
"dependencies": { | ||
"@vueuse/core": "^10.3.0" | ||
"@vueuse/core": "^10.5.0" | ||
}, | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.41.0", | ||
"@types/node": "^20.5.3", | ||
"@antfu/eslint-config": "~0.42.1", | ||
"@types/node": "^20.8.7", | ||
"bumpp": "^9.2.0", | ||
"eslint": "^8.47.0", | ||
"eslint": "^8.51.0", | ||
"eslint-plugin-vue": "^9.17.0", | ||
"nuxt": "^3.6.5", | ||
"typescript": "^5.1.6" | ||
"nuxt": "^3.8.0", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
@@ -9,6 +9,2 @@ # Nuxt Umami | ||
> **Heads up:** | ||
> This version uses features (Nuxt Layers) that are only available in **Nuxt 3**. | ||
> Check out [Nuxt Umami v1](https://github.com/ijkml/nuxt-umami/tree/v1) for Nuxt 2 compat. | ||
## Features | ||
@@ -25,2 +21,6 @@ | ||
> [!IMPORTANT] | ||
> Nuxt Umami v2 uses features that are only available in **Nuxt 3** (Nuxt Layers). | ||
> Check out [Nuxt Umami v1](https://github.com/ijkml/nuxt-umami/tree/v1) for Nuxt 2 compat. | ||
## Setup | ||
@@ -60,5 +60,2 @@ | ||
> **Warning**: | ||
> This might cause unwanted errors due to changes as the branch is still WIP. | ||
### Step 2: Configure Umami | ||
@@ -95,3 +92,3 @@ | ||
> **Note**: | ||
> [!NOTE] | ||
> Available in `^2.1.0` and takes precedence over `appConfig`. | ||
@@ -121,5 +118,9 @@ | ||
<template> | ||
<button @click="umTrackEvent('button-1')">Button 1</button> | ||
<button @click="umTrackEvent('button-1')"> | ||
Button 1 | ||
</button> | ||
<button @click="complexCalc">Button 2</button> | ||
<button @click="complexCalc"> | ||
Button 2 | ||
</button> | ||
</template> | ||
@@ -164,3 +165,3 @@ ``` | ||
> **Note**: | ||
> [!NOTE] | ||
> Available from `^2.5.0`. Add `useDirective: true` to your config. | ||
@@ -171,8 +172,16 @@ | ||
```vue | ||
<button v-umami="'Event-Name'">Event Button</button> | ||
<button v-umami="{name: 'Event-Name'}">as object</button> | ||
<button v-umami="{name: 'Event-Name', position: 'left', ...others}">with event details</button> | ||
<button v-umami="'Event-Name'"> | ||
Event Button | ||
</button> | ||
<button v-umami="{name: 'Event-Name'}"> | ||
as object | ||
</button> | ||
<button v-umami="{name: 'Event-Name', position: 'left', ...others}"> | ||
with event details | ||
</button> | ||
``` | ||
### Debugging | ||
### Live Debugging | ||
@@ -183,5 +192,2 @@ For cases where you need that `console.log('here')` in live sites, set `debug: true` in your config. | ||
> **Note**: | ||
> Support for Umami v2 is available in `2.3.0` and later. | ||
To use Umami v2, set `version: 2` in the Umami config. | ||
@@ -188,0 +194,0 @@ |
@@ -9,3 +9,3 @@ import { collect, getPayload, helloDebugger, isValidString, preflight, umConfig } from '../internal/utils'; | ||
* @param url page being tracked, eg `/about`, `/contact?by=phone#office` | ||
* @param referer page referrer, `document.referrer` | ||
* @param referrer page referrer, `document.referrer` | ||
*/ | ||
@@ -12,0 +12,0 @@ function trackView(url?: string, referrer?: string): void { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205
24389
Updated@vueuse/core@^10.5.0