You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Derek (JIRA)" <ji...@apache.org> on 2009/11/24 02:40:39 UTC

[jira] Created: (JSPWIKI-614) Create a Piwik plugin

Create a Piwik plugin 
----------------------

                 Key: JSPWIKI-614
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
             Project: JSPWiki
          Issue Type: New Feature
          Components: Plugins
    Affects Versions: 2.8.2
            Reporter: Derek
             Fix For: 2.8.3


Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-614) Create a Piwik plugin

Posted by "Derek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784710#action_12784710 ] 

Derek commented on JSPWIKI-614:
-------------------------------

Your assumption is correct.  I'm looking for something that allows me to define a site id, Piwik server and port and have that included in the localheader.jsp.  Either that or a means, via an admin screen, to allow the admin to include the Piwik provided javascript that would be included in each page.

Example of the standard js is as follows:


<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://{$PIWIK_URL}" : "http://{$PIWIK_URL}");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {$IDSITE});
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script>
<!-- End Piwik Tag -->


> Create a Piwik plugin 
> ----------------------
>
>                 Key: JSPWIKI-614
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
>             Project: JSPWiki
>          Issue Type: New Feature
>          Components: Plugins
>            Reporter: Derek
>            Priority: Minor
>
> Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JSPWIKI-614) Create a Piwik plugin

Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Florian Holeczek updated JSPWIKI-614:
-------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s:     (was: 2.8.2)
        Fix Version/s:     (was: 2.8.3)

Good idea!
Adjusted entry settings.

> Create a Piwik plugin 
> ----------------------
>
>                 Key: JSPWIKI-614
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
>             Project: JSPWiki
>          Issue Type: New Feature
>          Components: Plugins
>            Reporter: Derek
>            Priority: Minor
>
> Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JSPWIKI-614) Create a Piwik plugin

Posted by "Derek (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Derek resolved JSPWIKI-614.
---------------------------

    Resolution: Not A Problem

Thanks that work's a treat.  Have marked this a resolved.

> Create a Piwik plugin 
> ----------------------
>
>                 Key: JSPWIKI-614
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
>             Project: JSPWiki
>          Issue Type: New Feature
>          Components: Plugins
>            Reporter: Derek
>            Priority: Minor
>
> Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-614) Create a Piwik plugin

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784315#action_12784315 ] 

Harry Metske commented on JSPWIKI-614:
--------------------------------------

We first need to make clear what a "plugin" is:

- piwik has different types of plugins, plugins that generate the piwik javascript tag, and plugins on the piwik server for all kinds of functionality like for instance a translator plugin
- a JSPWiki plugin is a piece of code that gets executed whenever you include it's name in a page [{MyWonderFullPlugin}]

My assumption is that you need something in JSPWiki that generated the piwik javascript tag in all html generated by JSPWiki,  in that case a jspwiki plugin is not appropriate (you don;t want to stick plugin tags on every page)

I think we already have something like that for Google Analytics, it is a modification on localheader.jsp I think, for piwik you could do the same.

Is this my correct understanding ?





> Create a Piwik plugin 
> ----------------------
>
>                 Key: JSPWIKI-614
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
>             Project: JSPWiki
>          Issue Type: New Feature
>          Components: Plugins
>            Reporter: Derek
>            Priority: Minor
>
> Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JSPWIKI-614) Create a Piwik plugin

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12784993#action_12784993 ] 

Harry Metske commented on JSPWIKI-614:
--------------------------------------

localheader.jsp is a dummy jsp that is intended for this purpose, as mentioned in the comment of it :

{noformat} 
<%-- This is a local JSP header file, which you can override in your own template
     if you want to put something in the head-section of the page.  This page is
     included after the commonheader.jsp.

     The JSPWiki default template and distribution will never have anything here
     except this comment.  Therefore it's safe to override without accidentally
     removing any functionality.

     Some things which you might want to put here would e.g. be your site tracker
     Javascript (like Google Analytics, or Sitemeter, or whatever).

     The safest trick would be to create your own template (say "sitetemplate") directory,
     and just put a new localheader.jsp in it.  JSPWiki will always use the
     files in the "default" template, if it cannot locate an equivalent file in
     your defined template directory.
     --%>
{noformat} 

As an admin you can stick in the right piwik standard js in here with the required parameters.

> Create a Piwik plugin 
> ----------------------
>
>                 Key: JSPWIKI-614
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-614
>             Project: JSPWiki
>          Issue Type: New Feature
>          Components: Plugins
>            Reporter: Derek
>            Priority: Minor
>
> Would be greate if there was a Piwik (www.piwik.org) plugin to allow the tracking of users through the Wiki and to help determine usage and page hits.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.