Skip to content

Commit

Permalink
adding umami analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRoehm committed Apr 1, 2024
1 parent 5e74c30 commit 905e72a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/nginx/default
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ server {
tcp_nodelay on;
keepalive_timeout 65;
access_log /var/log/nginx/mp3access.log custom buffer=1k flush=1m;
root /var/www/public;
root /var/www/;
}

location /s/ {
Expand Down
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default defineNuxtConfig({
modules: [
'@nuxtjs/i18n', '@nuxtjs/tailwindcss', '@nuxtjs/color-mode'
],
extends: [ 'nuxt-umami' ],
i18n: {
strategy: 'prefix_except_default',
defaultLocale: 'de',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"dependencies": {
"id3-parser": "^3.0.0",
"jwt-payloader": "^1.0.1"
"jwt-payloader": "^1.0.1",
"nuxt-umami": "^2.6.0"
},
"resolutions": {
"string-width": "4.2.3"
Expand Down
3 changes: 1 addition & 2 deletions pages/[episodeslug]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ async function changePodcast(podcastid: number) {
}
}
function play() {
const { $umami } = useNuxtApp();
$umami("Playing " + episode.value.title)
umTrackEvent("Playing " + episode.value.title)
}
</script>

0 comments on commit 905e72a

Please sign in to comment.