Skip to content
Permalink
Browse files

doc: add google analytics tracking to docs

This adds code to each page needed for gathering google analytics
tracking data to the LF-provided Global site tag.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
  • Loading branch information...
dbkinder authored and nashif committed Jun 6, 2019
1 parent eeb2e67 commit aa9b602e004176d3c995491e1736c6318f6cbc71
Showing with 13 additions and 0 deletions.
  1. +3 −0 doc/conf.py
  2. +10 −0 doc/static/ga-tracker.js
@@ -555,4 +555,7 @@

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")
@@ -0,0 +1,10 @@
// <!-- Global site tag (gtag.js) - Google Analytics -->

// 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');

0 comments on commit aa9b602

Please sign in to comment.
You can’t perform that action at this time.