Skip to content

Commit

Permalink
fix: matomo url
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Nov 6, 2023
1 parent 3301d74 commit 7fb554b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/plugins/matomo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ async function setupMatomo(app: App, router: any) {
try {
const client = new SettingsClient()
const response = await client.fetchFrontendSettings()
if (!response['matomo_host'] || !response['matomo_site_id']) {
throw new Error('Matomo host and site ID must be set')
}

app.use(VueMatomo, {
host: response['matomo_host'],
Expand Down

0 comments on commit 7fb554b

Please sign in to comment.