mirror of
https://github.com/iconoir-icons/iconoir
synced 2024-06-27 01:40:07 +02:00
22 lines
542 B
TypeScript
22 lines
542 B
TypeScript
import React from 'react';
|
|
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>
|
|
</>
|
|
);
|
|
}
|