Last Published: 2009-03-23 | Insight > Insight Release Engineering

Using Piwik Site tracking

From version 1.1 and above The Insight Site Skin supports tracking of site usage and analytics using Sourceforge's Piwik Hosted App.

To enable the generation javascript code in the generated html files for supporting Piwik, you need to add the piwik element in the site.xml under project/body/head. The element takes two attributes (both mandatory):

  • siteId: The id of the site in your piwik setup * baseUrl: The base URL for your Piwik setup. Do not include the protocol information.

    A sample for the MindTree Insight sites is below:

    <project>
            ...
            <body>
                    <head>
                            ...
                            <piwik siteId="1" baseUrl="apps.sourceforge.net/piwik/mindtreeinsight/"/>
                            ...
                    </head>
            ...
            </body>
    </project>
    

    For more information on Piwik see http://piwik.org.

Privacy Policy

As part of this change the template is also introducing a way to link to a privacy policy for the site. To use the privacy policy link in the footer add a privacy element to project/body/head element of the site.xml.

The element takes only a single attribute href, which is required and takes a location to the privacy policy.

A sample for MindTree Insight sites is below:

<project>
        ...
        <body>
                <head>
                        ...
                        <privacy href="http://mindtreeinsight.sourceforge.net/privacy.html"/>
                        ...
                </head>
        ...
        </body>
</project>
Insight Site Skin
Project Documentation
Parent Project