Skip to content

Commit

Permalink
update ga code
Browse files Browse the repository at this point in the history
  • Loading branch information
yufree committed Feb 2, 2023
1 parent d13a210 commit 2689dd1
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ This is a book written in **Bookdown**. You could contribute it by a pull reques

[**R**](https://www.r-project.org/) and [**Rstudio**](https://www.rstudio.com/) are the software needed in this workflow.

```{=html}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6S0CPNLV6R"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-43118729-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-6S0CPNLV6R');
</script>
```

0 comments on commit 2689dd1

Please sign in to comment.