Skip to content

Commit

Permalink
Merge pull request #21 from InterwebAlchemy/feature/analytics
Browse files Browse the repository at this point in the history
feat(analytics): add simple analytics
  • Loading branch information
ericrallen authored Feb 8, 2022
2 parents ee9f5da + 0a74a8c commit 0af107c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ export default class Document extends NextDocument {
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
<Main />
<NextScript />
{process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' && (
<>
<script async defer src="https://user.workwithme.app/latest.js"></script>
<noscript>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="https://user.workwithme.app/noscript.gif"
alt=""
referrerPolicy="no-referrer-when-downgrade"
/>
</noscript>
</>
)}
</body>
</Html>
)
Expand Down

1 comment on commit 0af107c

@ericrallen
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for work-with-me ready!

✅ Preview
https://work-with-me-8gq7iw1e4-interweb-alchemy.vercel.app
https://work-with-me.vercel.app

Built with commit 0af107c.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.