Added canonical tag configuration to config file.

Added GA tracking snippet (cross-domain) to layout template.

Signed-off-by: Kristal Dale <kristal.dale@intel.com>
This commit is contained in:
Kristal Dale
2019-08-05 14:28:00 -07:00
parent 8ed9b2ddfb
commit ae818da5d8
2 changed files with 19 additions and 0 deletions
@@ -1,5 +1,23 @@
{% extends "sphinx_rtd_theme/layout.html" %}
{% block htmltitle %}
<script>
(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,"script","//www.google-analytics.com/analytics.js","ga");
ga("create", "UA-61272224-1", “auto", {“allowLinker”: true});
ga(“require”, “linker”);
ga(“linker: autoLink”, [“clearlinux.org”]);
ga("set", "anonymizeIp", true);
ga("send", "pageview");
</script>
{{ super() }}
{% endblock %}
{% block extrahead %}
<link rel="stylesheet" href="{{ pathto('_static/tcs_theme.css', 1) }}" type="text/css" />
+1
View File
@@ -127,6 +127,7 @@ version = current_version = "latest"
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
'canonical_url': 'docs.01.org/clearlinux/',
'style_nav_header_background': '#007ab2',
'navigation_depth': 4,
'display_version': False,