Skip to content

Commit

Permalink
fix : analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Liry24 committed Mar 10, 2025
1 parent be769ca commit 373e52c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<script setup lang="ts">
import { Analytics } from '@vercel/analytics/nuxt';
</script>
<script setup lang="ts"></script>

<template>
<Analytics />
<NuxtRouteAnnouncer />
<NuxtLayout>
<NuxtPage />
Expand Down
3 changes: 3 additions & 0 deletions app/layouts/blank.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts" setup>
import { Analytics } from '@vercel/analytics/nuxt';
const env = ref<string | undefined>(undefined);
try {
env.value = process?.env?.NODE_ENV;
Expand All @@ -23,6 +25,7 @@ const handleError = (error: any) => {

<template>
<NuxtErrorBoundary @error="handleError">
<Analytics />
<div
class="max-w-7xl min-h-screen mx-auto pt-6 px-6 lg:px-8 flex flex-col gap-6 md:gap-12 items-center"
>
Expand Down
3 changes: 3 additions & 0 deletions app/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts" setup>
import { Analytics } from '@vercel/analytics/nuxt';
const route = useRoute();
const paddingExclude = ['/', '/release', '/setup/edit'];
const footerExclude = ['/setup/edit'];
Expand Down Expand Up @@ -27,6 +29,7 @@ const handleError = (error: any) => {

<template>
<NuxtErrorBoundary @error="handleError">
<Analytics />
<div
class="max-w-7xl min-h-screen mx-auto pt-6 px-6 lg:px-8 flex flex-col gap-6 md:gap-12 items-center"
>
Expand Down

0 comments on commit 373e52c

Please sign in to comment.