Skip to content

Commit 9e18130

Browse files
authored
Merge pull request #67 from UW-Macrostrat/heatmap
Change settings
2 parents 74ac1b0 + 2847572 commit 9e18130

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pages/heatmap/+Page.client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
MapAreaContainer,
55
MapView,
66
} from "@macrostrat/map-interface";
7-
import { mapboxAccessToken } from "@macrostrat-web/settings";
7+
import { mapboxAccessToken, matomoToken } from "@macrostrat-web/settings";
88
import { Footer } from "~/components/general";
99
import { Divider, Spinner } from "@blueprintjs/core";
1010

@@ -138,7 +138,7 @@ function Map({coords}) {
138138
}
139139

140140
function getAllCoords() {
141-
return useAPIResult('https://analytics.svc.macrostrat.org', {
141+
return useAPIResult('https://analytics.svc.macrostrat.org/', {
142142
date: '2025-07-01,today',
143143
period: 'range',
144144
filter_limit: 10000,
@@ -148,13 +148,13 @@ function getAllCoords() {
148148
module: 'API',
149149
idSite: '1',
150150
format: 'json',
151-
token_auth: import.meta.env.VITE_MATOMO_API_TOKEN,
151+
token_auth: matomoToken,
152152
method: 'Live.getLastVisitsDetails',
153153
})
154154
}
155155

156156
function getTodayCoords(): Array<{ latitude: number, longitude: number }> | undefined {
157-
return useAPIResult('https://analytics.svc.macrostrat.org', {
157+
return useAPIResult('https://analytics.svc.macrostrat.org/', {
158158
date: 'today',
159159
period: 'day',
160160
filter_limit: 10000,
@@ -165,17 +165,17 @@ function getTodayCoords(): Array<{ latitude: number, longitude: number }> | unde
165165
doNotFetchActions: true,
166166
idSite: '1',
167167
method: 'Live.getLastVisitsDetails',
168-
token_auth: import.meta.env.VITE_MATOMO_API_TOKEN
168+
token_auth: matomoToken
169169
})
170170
}
171171

172172
function getVisitsToday(): { visits: number, visitors: number } | undefined {
173-
return useAPIResult('https://analytics.svc.macrostrat.org', {
173+
return useAPIResult('https://analytics.svc.macrostrat.org/', {
174174
method: "Live.getCounters",
175175
lastMinutes: 1440,
176176
module: 'API',
177177
format: 'json',
178178
idSite: '1',
179-
token_auth: import.meta.env.VITE_MATOMO_API_TOKEN
179+
token_auth: matomoToken
180180
})?.[0]
181181
}

0 commit comments

Comments
 (0)