fix: add Plausible window initializer to estore layout

Matches the pattern used on all main-site pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chris 2026-05-10 10:40:54 -04:00
parent 973808088e
commit 8799892341

View File

@ -43,6 +43,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
/>
{/* Plausible Analytics */}
<script defer data-domain="beachpartyballoons.com" src="https://plausible.io/js/script.hash.outbound-links.js" />
<script dangerouslySetInnerHTML={{ __html: `window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }` }} />
{/* Favicon — prefix with basePath so nginx routes them to the estore */}
<link rel="apple-touch-icon" sizes="180x180" href="/shop/favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/shop/favicon/favicon-32x32.png" />