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
Integration of Piwik into phpbb with board3
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.
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.
-
Topic author - 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
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
-
- 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
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?
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!
Kein Support per PN / No support via PM!
-
Topic author - 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
Hi Kevin.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?
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 -->
grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
-
- 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
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.
-
Topic author - 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
And that also captures the portal pages?
grtz,
Twan
grtz,
Twan
The joy's of Archery can be found anywhere. Far places only offer exotic ways to suffer.
-
- 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
Yes, as the overall_header is also used in the portal.
It covers every site of your phpbb.
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!
Kein Support per PN / No support via PM!