File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!-- Google tag (gtag.js) -->
2+ <script
3+ is:inline
4+ async
5+ src =" https://www.googletagmanager.com/gtag/js?id=G-W1F2TBM03Q"
6+ ></script >
7+ <script is:inline >
8+ window.dataLayer = window.dataLayer || [];
9+ function gtag() {
10+ dataLayer.push(arguments);
11+ }
12+ gtag("js", new Date());
13+
14+ gtag("config", "G-W1F2TBM03Q");
15+ </script >
Original file line number Diff line number Diff line change 11---
2+ import GoogleAnalytics from " ./GoogleAnalytics.astro" ;
23import ThemeInit from " ./ThemeInit.astro" ;
34
45const { head } = Astro .locals .starlightRoute ;
@@ -13,6 +14,7 @@ const reactRefreshPreamble = `
1314---
1415
1516<ThemeInit />
17+ <GoogleAnalytics />
1618<style is:inline >
1719 html {
1820 background: #0b0c11;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import ChartKitFeatures from "../components/ChartKitFeatures.astro";
44import ChartKitStats from " ../components/ChartKitStats.astro" ;
55import ChartsSupported from " ../components/ChartsSupported" ;
66import Footer from " ../components/Footer.astro" ;
7+ import GoogleAnalytics from " ../components/GoogleAnalytics.astro" ;
78import Header from " ../components/Header.astro" ;
89import Hero from " ../components/Hero.astro" ;
910import Pricing from " ../components/Pricing.astro" ;
@@ -17,6 +18,7 @@ import ThemeInit from "../components/ThemeInit.astro";
1718 <meta name =" theme-color" content =" #06070a" />
1819 <title >React Native Chart Kit</title >
1920 <ThemeInit />
21+ <GoogleAnalytics />
2022 </head >
2123 <body >
2224 <Header />
You can’t perform that action at this time.
0 commit comments