Skip to content

Commit 865e2ba

Browse files
committed
fix: add IDs to plausible tracking scripts for better identification
1 parent b92f083 commit 865e2ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ export default function Layout({ children }: { children: ReactNode }) {
2626
defer
2727
data-domain={process.env.NEXT_PUBLIC_ANALYTICS_DOMAIN}
2828
src={process.env.NEXT_PUBLIC_ANALYTICS_URL}
29+
id="plausible-script"
2930
/>
3031
<Script
3132
dangerouslySetInnerHTML={{
3233
__html: `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }`,
3334
}}
35+
id="plausible-window"
3436
/>
3537
<RootProvider>{children}</RootProvider>
3638
</body>

0 commit comments

Comments
 (0)