diff --git a/components/analytics/Plausible.tsx b/components/analytics/Plausible.tsx
index 5d73d24..b4e6179 100644
--- a/components/analytics/Plausible.tsx
+++ b/components/analytics/Plausible.tsx
@@ -8,11 +8,12 @@ const PlausibleScript = () => {
>
diff --git a/data/siteMetadata.js b/data/siteMetadata.js
index c8989ba..0cfa735 100644
--- a/data/siteMetadata.js
+++ b/data/siteMetadata.js
@@ -22,13 +22,9 @@ const siteMetadata = {
lastfm: 'https://www.last.fm/music/augury',
locale: 'en-CA',
analytics: {
- // If you want to use an analytics provider you have to add it to the
- // content security policy in the `next.config.js` file.
- // supports plausible, simpleAnalytics, umami or googleAnalytics
- plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app
- simpleAnalytics: false, // true or false
- umamiWebsiteId: '', // e.g. 123e4567-e89b-12d3-a456-426614174000
- googleAnalyticsId: '', // e.g. UA-000000-2 or G-XXXXXXX
+ 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,