mirror of
https://github.com/wassname/ray.git
synced 2026-07-16 11:21:10 +08:00
website_analytics (#1272)
This commit is contained in:
committed by
Philipp Moritz
parent
dd45664ab5
commit
7db07acc4f
@@ -15,6 +15,12 @@ To view the site, run:
|
||||
bundle exec jekyll serve
|
||||
```
|
||||
|
||||
To view the site with Google Analytics, run:
|
||||
|
||||
```
|
||||
JEKYLL_ENV=production bundle exec jekyll serve
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
To deploy the site, run
|
||||
|
||||
@@ -20,6 +20,7 @@ description: > # this means to ignore newlines until "baseurl:"
|
||||
baseurl: "" # the subpath of your site, e.g. /blog
|
||||
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
||||
github_username: ray-project
|
||||
google_analytics: true
|
||||
|
||||
# Build settings
|
||||
markdown: kramdown
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110413294-2"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-110413294-2');
|
||||
</script>
|
||||
Reference in New Issue
Block a user