diff options
| author | Dmitri Shuralyov <dmitshur@golang.org> | 2019-10-01 15:53:18 -0400 |
|---|---|---|
| committer | Dmitri Shuralyov <dmitshur@golang.org> | 2019-10-02 17:10:47 +0000 |
| commit | 6bb846ce41cdca087b14c8e3560a679691c424b6 (patch) | |
| tree | 71342ee91029da7d2ae71b63de6e0987ebb225f1 /app.yaml | |
| parent | 45121acd746573507cdaaf902958dba082f7c25b (diff) | |
| download | golang-id-tour-6bb846ce41cdca087b14c8e3560a679691c424b6.tar.xz | |
tour: add analytics HTML and deploy instructions
When deployed with App Engine on tour.golang.org,
insert analytics HTML at the beginning of <head>.
Add deploy instructions to the README.
Also update to the App Engine Go 1.12 runtime.
Change-Id: Ib3333290783f34eb00843006cf949308302b342d
Reviewed-on: https://go-review.googlesource.com/c/tour/+/198320
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'app.yaml')
| -rw-r--r-- | app.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,8 +1,17 @@ service: tour -runtime: go111 +runtime: go112 env_variables: GOLANGORG_CHECK_COUNTRY: true + TOUR_ANALYTICS: | + <script async src="https://www.googletagmanager.com/gtag/js?id=UA-11222381-5"></script> + <script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag("js", new Date()); + gtag("config", "UA-11222381-5"); + gtag("config", "UA-49880327-6"); + </script> default_expiration: "7d" |
