underhive-analytics
v1.0.9
Published
automatic product analytics
Downloads
14
Readme
put this in your
vanilla web
<script src="https://unpkg.com/underhive-analytics/dist/index.js"></script>
<script>
window.atag('app_id');
</script>
nextjs
insert this in your layout.tsx
inside <html>...</html>
<head>
...
<Script type="text/javascript" src="https://unpkg.com/underhive-analytics/dist/index.js" strategy="beforeInteractive" />
<Script type="text/javascript" strategy="afterInteractive">
if(!window.atag?.appId) window.atag('app_id')
</Script>
...
</head>