diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-10-02 18:31:30 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-10-08 13:22:27 +0300 |
commit | dbf1b48b12b80580a42fb22c9b1156b3c909cedf (patch) | |
tree | 04a2a72db17a1d7eec460e98984a58c7b700c573 /plugins/Morpheus | |
parent | 31462876a0490dd263194ee258c3bb7e4b44ef76 (diff) |
Plugin to track usage of Piwik
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r-- | plugins/Morpheus/templates/_piwikTag.twig | 30 | ||||
-rw-r--r-- | plugins/Morpheus/templates/layout.twig | 1 | ||||
-rw-r--r-- | plugins/Morpheus/templates/settingsMacros.twig | 2 |
3 files changed, 1 insertions, 32 deletions
diff --git a/plugins/Morpheus/templates/_piwikTag.twig b/plugins/Morpheus/templates/_piwikTag.twig deleted file mode 100644 index 101cb5dca7..0000000000 --- a/plugins/Morpheus/templates/_piwikTag.twig +++ /dev/null @@ -1,30 +0,0 @@ -{# Disabled by default, tracks activity of this Piwik instance #} - -{% if (piwikUrl == 'http://demo.piwik.org/' or enableMeasurePiwikForSiteId) %} - <div class="clear"></div> - <!-- Piwik --> - <script type="text/javascript"> - var _paq = _paq || []; - _paq.push(['setTrackerUrl', 'piwik.php']); - _paq.push(['setSiteId', {{ enableMeasurePiwikForSiteId }}]); - _paq.push(['setCookieDomain', '*.piwik.org']); - // set the domain the visitor landed on, in the Custom Variable - _paq.push([function () { - if (!this.getCustomVariable(1)) { - this.setCustomVariable(1, "Domain landed", document.domain); - } - }]); - // Set the selected Piwik language in a custom var - _paq.push(['setCustomVariable', 2, "Demo language", piwik.languageName]); - _paq.push(['setDocumentTitle', document.domain + "/" + document.title]); - _paq.push(['trackPageView']); - _paq.push(['enableLinkTracking', true]); - _paq.push(['enableJSErrorTracking']); - - (function() { - var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.type='text/javascript'; g.async=true; g.defer=true; g.src='js/piwik.js'; s.parentNode.insertBefore(g,s); - })(); - </script> - <!-- End Piwik Code --> -{% endif %} diff --git a/plugins/Morpheus/templates/layout.twig b/plugins/Morpheus/templates/layout.twig index 1e9f1f0d5c..88695bcd9f 100644 --- a/plugins/Morpheus/templates/layout.twig +++ b/plugins/Morpheus/templates/layout.twig @@ -22,7 +22,6 @@ {% include "@CoreHome/_favicon.twig" %} {% include "_jsGlobalVariables.twig" %} - {% include "_piwikTag.twig" %} {% include "_jsCssIncludes.twig" %} <!--[if IE]> diff --git a/plugins/Morpheus/templates/settingsMacros.twig b/plugins/Morpheus/templates/settingsMacros.twig index cbb410f4a5..19a88bfa28 100644 --- a/plugins/Morpheus/templates/settingsMacros.twig +++ b/plugins/Morpheus/templates/settingsMacros.twig @@ -5,7 +5,7 @@ <div class="form-group"> {% if setting.introduction %} - <p>{{ setting.introduction }}</p> + <p class="settingIntroduction">{{ setting.introduction }}</p> {% endif %} {{ _self.field(setting, index) }} |