added google analytics, resolves #5

pull/33/head
Scott Anderson 2019-01-23 17:30:22 -07:00
parent ce847be877
commit 4c2cccc8b7
2 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,7 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "header/google-analytics.html" }}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="{{ if .Description }}{{ .Description }}. {{ end }}">
@ -9,11 +10,11 @@
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon">
<title>{{ if .Params.seotitle }} {{ print .Params.seotitle " | " }} {{ else if .Title }} {{ print .Title " | " }} {{ end }}InfluxData {{ if $currentVersion }}{{print $currentVersion " " }}{{ end }}Documentation</title>
{{ partial "header/stylesheets.html"}}
{{ partial "header/stylesheets.html" }}
<link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700,700i|Titillium+Web:300i,700i|Inconsolata:400,700" rel="stylesheet">
{{ partial "header/javascript.html"}}
{{ partial "header/javascript.html" }}
<meta name="Copyright" content="InfluxData Inc." />
</head>

View File

@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-45024174-12"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-45024174-12');
</script>