diff --git a/doc/conf.py b/doc/conf.py index 4090cdee964..53ffb18e2d6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -555,4 +555,7 @@ linkcheck_anchors = False def setup(app): app.add_stylesheet("zephyr-custom.css") + + app.add_javascript("https://www.googletagmanager.com/gtag/js?id=UA-831873-47") + app.add_javascript("ga-tracker.js") app.add_javascript("zephyr-custom.js") diff --git a/doc/static/ga-tracker.js b/doc/static/ga-tracker.js new file mode 100644 index 00000000000..7f322d42add --- /dev/null +++ b/doc/static/ga-tracker.js @@ -0,0 +1,10 @@ +// + +// Copyright (c) 2019, Intel Corporation +// SPDX-License-Identifier: Apache-2.0 + + + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + gtag('config', 'UA-831873-47');