Integration of Piwik into phpbb with board3

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked
User avatar

Topic author
DutchToxophilite
Active Member
Posts: 28
Joined: 30. January 2009 12:17
phpBB.com User: DutchToxophilite
Location: Venlo, The Netherlands
Contact:

Integration of Piwik into phpbb with board3

Post by DutchToxophilite »

Your Portal Version: 1.0.3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Advanced Knowledge
Boardlink: http://www.handboogforum.nl

What have you done before the problem was there?
-

What have you already tryed to solve the problem?
Investigation on phpbb.com

Description and Message
Hi.

I want to integrate Piwik into my board.

At some point during the installation, I am asked to enter a number of lines into ALL the pages.
As this is a little hard, and totally unnecessary, I think of entering the lines into overall_header.html or index.php.

Now for my question.

Would this also be sufficient for this excellent analytical tool to work with the portal as well?

grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Integration of Piwik into phpbb with board3

Post by Kevin »

If i understand it correctly this is some kind of analytics / counter script.
These kind of scripts are usually hooked in the functions.php, so it gets information from every site of the forum.
What kind of integration for the portal do you want to have? Is there some kind of analytics overview addon, to be placed on index pages or whatever, you want to be displayed on the portal?
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
User avatar

Topic author
DutchToxophilite
Active Member
Posts: 28
Joined: 30. January 2009 12:17
phpBB.com User: DutchToxophilite
Location: Venlo, The Netherlands
Contact:

Re: Integration of Piwik into phpbb with board3

Post by DutchToxophilite »

Kevin wrote:If i understand it correctly this is some kind of analytics / counter script.
These kind of scripts are usually hooked in the functions.php, so it gets information from every site of the forum.
What kind of integration for the portal do you want to have? Is there some kind of analytics overview addon, to be placed on index pages or whatever, you want to be displayed on the portal?
Hi Kevin.

Yes, this is an analytics/counter script. (like google analytics, but hosted by the user itself, own scripts, own DB etc.)
The website is http://piwik.org/

I just want the script to catch every user and all pages loaded.

It does not need to display anything (yet!!) I have the Piwik pages for that.

This is the code that Piwik gives to me to add to all pages:

Code: Select all

<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://handboogforum.nl/piwik/" : "http://handboogforum.nl/piwik/");
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", 1);
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script>
<!-- End Piwik Tag -->
I have another site, where I use Drupal, and it has an excellent integration of Piwik, it even distinguishes between different users and usergroups.

grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Integration of Piwik into phpbb with board3

Post by Marc »

Add the code in overall_footer.html, right before the </body>-tag. Google Analytics does it that way and it should also work with Piwik.
User avatar

Topic author
DutchToxophilite
Active Member
Posts: 28
Joined: 30. January 2009 12:17
phpBB.com User: DutchToxophilite
Location: Venlo, The Netherlands
Contact:

Re: Integration of Piwik into phpbb with board3

Post by DutchToxophilite »

And that also captures the portal pages?

grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Integration of Piwik into phpbb with board3

Post by Kevin »

Yes, as the overall_header is also used in the portal. ;)
It covers every site of your phpbb.
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!
Locked

Return to “board3 Portal 1.0.x - English Support”