Skip to content

Commit

Permalink
office commit
Browse files Browse the repository at this point in the history
  • Loading branch information
soulincsl committed Mar 20, 2024
1 parent 6aa2e07 commit dc11ac2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props;
<meta name="msvalidate.01" content="A4750DF417057BD77FDD08359A00BAF1" />
<!-- Google Anylitic -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-X5KVRBGT4S"></script>
<!-- Google Adsense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5349802525175772" crossorigin="anonymous" data-ad-client="ca-pub-5349802525175772" ></script>

<script type="javascript">
<!-- Google Anylitic -->
<script type="text/javascript">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'MEASUREMENT_ID');
gtag('config', 'G-X5KVRBGT4S');
</script>
10 changes: 10 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,15 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../consts';
<p>🤯</p>
</main>
<Footer />
<script type="text/javascript">
(function(w,d,s,l,i){
w[l]=w[l]||[];
w[l].push({"gtm.start":new Date().getTime(),event:"gtm.js"});
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!="dataLayer"?"&l="+l:"";
j.async=true;
j.src="https://www.googletagmanager.com/gtm.js?id="+i+dl;
f.parentNode.insertBefore(j,f);
})(window,document,"script","dataLayer","GTM-K9WFSZ8");
</script>
</body>
</html>

0 comments on commit dc11ac2

Please sign in to comment.