44 MapAreaContainer ,
55 MapView ,
66} from "@macrostrat/map-interface" ;
7- import { mapboxAccessToken } from "@macrostrat-web/settings" ;
7+ import { mapboxAccessToken , matomoToken } from "@macrostrat-web/settings" ;
88import { Footer } from "~/components/general" ;
99import { Divider , Spinner } from "@blueprintjs/core" ;
1010
@@ -138,7 +138,7 @@ function Map({coords}) {
138138}
139139
140140function 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
156156function 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
172172function 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