plausible tracking not working with custom domain #53
Unanswered
janoschherrmann
asked this question in
Q&A
Replies: 1 comment 18 replies
-
Hi @janoschsworkspace, Can you paste your next configuration? Also, is there a public link to your site you can share so that I can have a look? |
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are self-hosting Plausible and I want to try using
next-plausible
to help set things up. Here's how my_app.tsx
looks:<PlausibleProvider domain='ourdomain.com' customDomain='https://plausible.ourdomain.com' trackOutboundLinks selfHosted> <Component key={router.asPath} {...pageProps} /> </PlausibleProvider>
I've also wrapped our next-config with the next-plausible proxy.
https://plausible.ourdomain.com
is where we're self-hosting our Plausible instance, so I added it as a custom domain, but I'm not quite sure whether that's correct.We're deploying to Vercel running
next build
, but from what I know, Vercel will runnext start
as well (we're using SSR). I saw that thenext-plausible
docs mention the proxy only working withnext start
.Currently, the tracking doesn't work. Anything I'm missing here?
Beta Was this translation helpful? Give feedback.
All reactions