I want to use PiwikPro analytics. There is a PiwikPro WordPress plugin but I try to avoid installing unnecessary plugins. I want to install the PiwikPro code in my header, can I do that like this in my Child themes functions.php file:
function piwik_analytics_header(){
?>
<script type="text/javascript">
put pwikpro code here
</script>
<?php
}
add_action('wp_head', 'piwik_analytics_header');
Thanks for the help!
Alwin