Loglib

Astro Proxy


You can use astro to route all analytics traffic through your own server and domain. This will reduce DNS lookups, as well as prevent Adblockers from blocking requests.

By default the tracker sends request to loglib api so change that on that by passing "/api/loglib" to the config host paramter. Then modify your astro.config.ts to include redirect like below.

export default defineConfig({ redirects: { "/api/loglib": "https://api.loglib.io", }, })