Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
lzhabo committed Jun 19, 2024
2 parents 9f71a7e + f74f3f5 commit 3175e6f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/core/components/DocumentHead.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
/* eslint-disable @next/next/next-script-for-ga */
import Head from "next/head";

import { googleTagId } from "../constants/googleTagId";
const DocumentHead = () => {
return (
<Head>
<title>Spark | Trade & Swap on Fuel</title>
<meta name="description" content="Spark landing for spark app" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="./spark.ico" />

<script
async
src={`https://www.googletagmanager.com/gtag/js?id=${googleTagId}`}
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${googleTagId}');
`,
}}
/>
</Head>
);
};
Expand Down
1 change: 1 addition & 0 deletions src/core/constants/googleTagId.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const googleTagId = "G-9F8CHDE49T";

0 comments on commit 3175e6f

Please sign in to comment.