doc: some additional google analytics code

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2020-04-07 15:54:34 -07:00 committed by David Kinder
parent 7b969d15c0
commit 3a326056fd
2 changed files with 7 additions and 0 deletions

View File

@ -218,6 +218,7 @@ html_static_path = ['static']
def setup(app):
app.add_stylesheet("acrn-custom.css")
app.add_javascript("https://www.googletagmanager.com/gtag/js?id=UA-831873-64")
# note more GA tag manager calls are in acrn-custom.js
app.add_javascript("acrn-custom.js")
# Custom sidebar templates, must be a dictionary that maps document names

View File

@ -3,3 +3,9 @@
$(document).ready(function(){
$( ".icon-home" ).attr("href", "https://projectacrn.org/");
});
/* Global site tag (gtag.js) - Google Analytics */
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-831873-64');