Skip to content

Commit

Permalink
docs: added piwik tracking code
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Dec 20, 2018
1 parent 22a905a commit d80b38b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions docs/manuals/en/new_main_reference/source/_templates/layout.html
@@ -0,0 +1,20 @@
{% extends "!layout.html" %}

{% block footer %}
{{ super() }}
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//piwik.dass-it.de/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '12']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
{% endblock %}
4 changes: 2 additions & 2 deletions docs/manuals/en/new_main_reference/source/conf.py
Expand Up @@ -65,7 +65,7 @@


# Add any paths that contain templates here, relative to this directory.
templates_path = ['templates']
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
Expand Down Expand Up @@ -149,7 +149,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['static']
html_static_path = ['_static']

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down

0 comments on commit d80b38b

Please sign in to comment.