diff --git a/data/siteMetadata.js b/data/siteMetadata.js index 8add741..0cfa735 100644 --- a/data/siteMetadata.js +++ b/data/siteMetadata.js @@ -22,9 +22,9 @@ const siteMetadata = { lastfm: 'https://www.last.fm/music/augury', locale: 'en-CA', analytics: { - plausibleDataDomain: '', - plausibleSrcUrl: '', - plausibleApiUrl: '', + plausibleDataDomain: 'augurymetal.com', + plausibleSrcUrl: '/script.12587e3213z2t1891zaz.js', + plausibleApiUrl: '/api/12761a4481f2x6771zab', }, newsletter: { // supports mailchimp, buttondown, convertkit, klaviyo diff --git a/next.config.js b/next.config.js index e9af962..b6fb2a1 100644 --- a/next.config.js +++ b/next.config.js @@ -69,6 +69,18 @@ module.exports = withBundleAnalyzer({ }, ] }, + async rewrites() { + return [ + { + source: '/script.12587e3213z2t1891zaz.js', // plausible script proxy + destination: 'https://plausible.io/js/script.outbound-links.js', + }, + { + source: '/api/12761a4481f2x6771zab', // plausible api proxy + destination: 'https://plausible.io/api/event', + }, + ] + }, webpack: (config, { dev, isServer }) => { config.module.rules.push({ test: /\.(png|jpe?g|gif|mp4)$/i,