mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-08 00:42:35 +02:00
21 lines
515 B
TypeScript
21 lines
515 B
TypeScript
|
import Script from 'next/script';
|
||
|
|
||
|
export function GA() {
|
||
|
return (
|
||
|
<>
|
||
|
<Script
|
||
|
src="https://www.googletagmanager.com/gtag/js?id=UA-33344001-9"
|
||
|
strategy={'afterInteractive'}
|
||
|
/>
|
||
|
<Script id={'google-analytics'} strategy={'afterInteractive'}>
|
||
|
{`
|
||
|
window.dataLayer = window.dataLayer || [];
|
||
|
function gtag(){dataLayer.push(arguments);}
|
||
|
gtag('js', new Date());
|
||
|
gtag('config', 'UA-33344001-9');
|
||
|
`}
|
||
|
</Script>
|
||
|
</>
|
||
|
);
|
||
|
}
|