Skip to content

Commit

Permalink
feat: 📈 tweak new analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
lucca180 committed Jan 25, 2025
1 parent 27d17a6 commit 96a7270
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,19 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
<DefaultSeo {...SEOConfig} />
{getLayout(<Component {...pageProps} />, pageProps)}
<Script
src={process.env.NEXT_PUBLIC_UMAMI_URL}
src={'/plutonita.js?v=1.0.0'}
data-website-id={process.env.NEXT_PUBLIC_UMAMI_ID}
data-host-url={'https://umami.itemdb.com.br'}
data-url-overwrite="unamiOverwriter"
defer
/>
<Script id="pathOverwriter2">
{`function unamiOverwriter(path) {
if (path.startsWith("/pt")) path = path.replace("/pt", "");
return path;
}
`}
</Script>
<Script id="pathOverwriter">
{`function myPathOverwriter({ path }) {
if (path.startsWith("/pt")) path = path.replace("/pt", "");
Expand Down
1 change: 1 addition & 0 deletions public/plutonita.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96a7270

Please sign in to comment.