Looking for help on inserting this code via functions.php or anywhere else in Wordpress. I tried this and it does not seem work... I cannot see it in the source code
<?php
function add_this_script_footer(){ ?>
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stats.domain.com/statsapp/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "445"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script> <?php }
add_action('wp_footer', 'add_this_script_footer'); ?>
Thank-you for your help.
`