Updated packages
This commit is contained in:
@@ -18,7 +18,9 @@ import "../styles/footer.scss";
|
||||
import "../styles/navbar.scss";
|
||||
import "../styles/darkmode.scss";
|
||||
|
||||
gsap.registerPlugin(SplitText);
|
||||
if (typeof window !== "undefined") {
|
||||
gsap.registerPlugin(SplitText);
|
||||
}
|
||||
|
||||
export default class Site extends App {
|
||||
constructor(props) {
|
||||
@@ -204,19 +206,19 @@ export default class Site extends App {
|
||||
</SwitchTransition>
|
||||
<Footer />
|
||||
|
||||
<Script
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-504FPVG74X"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
<Script id="google-analytics" strategy="afterInteractive">
|
||||
{`
|
||||
<Script
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-504FPVG74X"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
<Script id="google-analytics" strategy="afterInteractive">
|
||||
{`
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){window.dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-504FPVG74X');
|
||||
`}
|
||||
</Script>
|
||||
</Script>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user