1 (edited by User33 2008-11-25 14:10)

Topic: [Release] Easy Google Analytics

A fast and easy way to integrate Google Analytics into your forum.

You can add your tracker ID on Administration » Settings » Setup

Download Link: http://punbb.informer.com/unofficial/pu … lytics.zip

If you find any bugs or have any tips, please post them here.

Updates

  • 1.0: First release

Re: [Release] Easy Google Analytics

thanks

Re: [Release] Easy Google Analytics

Did it work?

Re: [Release] Easy Google Analytics

Did it work?

Looks like it does.

5

Re: [Release] Easy Google Analytics

confirmed..work's just fine...tnx

6

Re: [Release] Easy Google Analytics

I get the same problem with your Akismet extension which is a shame because they're both very useful. Please advise.

Re: [Release] Easy Google Analytics

It seems you didn't upload the lang folder from the extension.

8

Re: [Release] Easy Google Analytics

I deleted the folder and tried again, this time both worked! I must have unzipped them wrongly, anyway thanks big_smile

9 (edited by NetworkShadow 2008-12-08 21:14)

Re: [Release] Easy Google Analytics

Thanks!

If you add this to the Google tracker code you can track your users by name in the "User Defined" report. Very useful:

pageTracker._setVar("<?php
echo $forum_user['username'];
?>");

See example:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("{TRACKER}");
pageTracker._trackPageview();
pageTracker._setVar("<?php
echo $forum_user['username'];
?>");
</script>

Think you could also make a version of this extension for reinvigorate.net tracking? I can't imagine it would be too hard modify. I would mod it myself if I knew a bit more about how to code.

Here's the reinvigorate tracker code:

<script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>
<script type="text/javascript">
// <![CDATA[
var re_name_tag = "<?php
echo $forum_user['username'];
?>";
re_("TRACKER ID GOES HERE");
// ]]>
</script>

10

Re: [Release] Easy Google Analytics

If you want Reinvigorate, replace:
'extensions/easy_google_analytics/manifest.xml' with this file
'extensions/easy_google_analytics/lang/English/easy_google_analytics.php' with this file

Re: [Release] Easy Google Analytics

Garciat wrote:

If you want Reinvigorate, replace:
'extensions/easy_google_analytics/manifest.xml' with this file
'extensions/easy_google_analytics/lang/English/easy_google_analytics.php' with this file

Cool thanks! I don't suppose this would work at the same time as Google Analytics though, I see you just added Reinvigorate as an option. I use reinvigorate too because it's got real time tracking. I was originally thinking of a standalone mod of the extension or a separate Reinvigorate settings box that would allow the use of both stats services simultaneously.

12

Re: [Release] Easy Google Analytics

Someday, maybe...

13

Re: [Release] Easy Google Analytics

Hi Garciat,
I just install your analytics extension, and after I put google script, I spot one problem. As long I’m using wide screen, Mozilla showing some strange script at the right top, out of the border:  "); pageTracker._trackPageview();
www.paprastamama.lt/forumas
Any ideas..

14

Re: [Release] Easy Google Analytics

Thank you!

Re: [Release] Easy Google Analytics

French translation for the extensions
Download