add piwik directly to mediawiki template
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
145b6fc7f4
commit
cd80596a57
2 changed files with 32 additions and 0 deletions
|
@ -91,6 +91,22 @@ class FedoraTemplate extends QuickTemplate {
|
||||||
if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
|
if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
|
||||||
<!-- Head Scripts -->
|
<!-- Head Scripts -->
|
||||||
<?php $this->html('headscripts') ?>
|
<?php $this->html('headscripts') ?>
|
||||||
|
<!-- Piwik -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var _paq = _paq || [];
|
||||||
|
_paq.push(["setDomains", ["*.fedoraproject.org"]]);
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//piwik.fedorainfracloud.org/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>
|
||||||
|
<noscript><p><img src="//piwik.fedorainfracloud.org/piwik/piwik.php?idsite=12" style="border:0;" alt="" /></p></noscript>
|
||||||
|
<!-- End Piwik Code -->
|
||||||
</head>
|
</head>
|
||||||
<body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
|
<body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
|
||||||
<?php if($this->data['body_onload' ]) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?>
|
<?php if($this->data['body_onload' ]) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?>
|
||||||
|
|
|
@ -91,6 +91,22 @@ class FedoraTemplate extends QuickTemplate {
|
||||||
if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
|
if($this->data['trackbackhtml']) print $this->data['trackbackhtml']; ?>
|
||||||
<!-- Head Scripts -->
|
<!-- Head Scripts -->
|
||||||
<?php $this->html('headscripts') ?>
|
<?php $this->html('headscripts') ?>
|
||||||
|
<!-- Piwik -->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var _paq = _paq || [];
|
||||||
|
_paq.push(["setDomains", ["*.fedoraproject.org"]]);
|
||||||
|
_paq.push(['trackPageView']);
|
||||||
|
_paq.push(['enableLinkTracking']);
|
||||||
|
(function() {
|
||||||
|
var u="//piwik.fedorainfracloud.org/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>
|
||||||
|
<noscript><p><img src="//piwik.fedorainfracloud.org/piwik/piwik.php?idsite=12" style="border:0;" alt="" /></p></noscript>
|
||||||
|
<!-- End Piwik Code -->
|
||||||
</head>
|
</head>
|
||||||
<body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
|
<body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
|
||||||
<?php if($this->data['body_onload' ]) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?>
|
<?php if($this->data['body_onload' ]) { ?>onload="<?php $this->text('body_onload') ?>"<?php } ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue