Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-umami

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-umami - npm Package Compare versions

Comparing version 2.5.4 to 2.5.5

17

package.json
{
"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 {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc