Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nuxt-modules/plausible
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.1
Choose a base ref
...
head repository: nuxt-modules/plausible
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.2
Choose a head ref
  • 3 commits
  • 11 files changed
  • 1 contributor

Commits on Aug 6, 2024

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    a83fb35 View commit details
  2. fix: correctly allow empty ignoredHostnames array to exclude `local…

    …host` (fixes #30)
    johannschopplich committed Aug 6, 2024
    2

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    3ea26f9 View commit details
  3. chore: release v1.0.2

    johannschopplich committed Aug 6, 2024
    Copy the full SHA
    cce8b84 View commit details
2 changes: 2 additions & 0 deletions .nuxtrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports.autoImport=false
typescript.includeWorkspace=true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -51,6 +51,9 @@ export default defineNuxtConfig({
})
```

> [!TIP]
> To allow tracking events on localhost, set the `ignoredHostnames` option to an empty array.
### Runtime Config

Alternatively, leveraging [automatically replaced public runtime config values](https://nuxt.com/docs/api/configuration/nuxt-config#runtimeconfig) by matching environment variables at runtime, set your desired option in your project's `.env` file:
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nuxtjs/plausible",
"type": "module",
"version": "1.0.1",
"version": "1.0.2",
"packageManager": "pnpm@9.6.0",
"description": "Natively integrates Plausible Analytics into Nuxt",
"author": "Johann Schopplich <hello@johannschopplich.com>",
@@ -46,7 +46,7 @@
"defu": "^6.1.4"
},
"devDependencies": {
"@nuxt/eslint-config": "0.3.0-beta.9",
"@nuxt/eslint-config": "^0.5.0",
"@nuxt/module-builder": "^0.8.1",
"@nuxt/schema": "^3.12.4",
"@types/node": "^20.14.14",
2 changes: 2 additions & 0 deletions playground/app.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup lang="ts">
import { navigateTo, useRuntimeConfig, useTrackEvent, useTrackPageview } from '#imports'
const { plausible } = useRuntimeConfig().public
function trackEvent() {
Loading