Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1367947

    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

    #1367960

    Hey Alwin,

    I don’t see any problem with that, as long as the code is working.

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.