Jump to content

Download: [mm31] Google Analytics - Measure Site Speed and Member Type


Mod-Mall.com

Recommended Posts

Posted

File Name: [mm31] Google Analytics - Measure Site Speed and Member Type
File Submitter: Mod-Mall.com
File Submitted: 19 Jun 2011
File Updated: 24 Jul 2011
File Category: Hooks and Plugins

My first modification on IPB3.1 (might work on other versions, give it a go (and let me know))

This Google Analytics plugin, does the following

  • Enables Site Speed Tracking (see your site speed for members inside Google Analytics)
  • Tracks Members/Visitors (see how many visitors vs how many members visited your forum)
  • Exclude usergroups (exclude your mods/admins)
  • Exclude members (exclude yourself)

I hope you all like it, if you do please rate it and consider...

Instructions for install are included in the ZIP file (two steps)

To use the data in Google Analytics, follow the steps outlined in the links below:

Click here to download this file
Posted

Your mod adds -
_gaq.push(['_setCustomVar',1,'VisitorType','Visitor',1]);
while instructions on your site say to add -
_gaq.push(['_setCustomVar',1,'VisitorType','Guest',1]);
Which one should it be?

How can we add more member groups?

Posted

It's dependant on whose logged in if your logged in it will fill in as member, if a guest is viewing your site it will fill in guest... Smart see :)

More member groups will be coming soon... If you want to push development go on my site and put it in the feature request forum.

  • 4 weeks later...
Posted

Of the 72 people to download it your the first person with an actual problem...

Can you double check it's not in your source code, it will be in your header rather than footer as this is using async (which is faster than the old stuff).

Failing that...

Are you running a custom skin?
Do you have the includemeta template?
Does it have the Metatags if statement?

Posted

Okay can you do the following...

Ensure that you have turned the modification on (in system settings > [mod-mall] Google Analytics Free), and that you have a UA Code filled in.

Go to Look and Feel, click your default template

Is there a template called "includemeta"?

Does it have this line


<if test="metatags:|:is_array( $metaTags ) AND count( $metaTags )">

Posted

Okay can you do the following...


Go to Look and Feel, click your default template



Is there a template called "includemeta"?



Does it have this line




<if test="metatags:|:is_array( $metaTags ) AND count( $metaTags )">

yep ... my original IP Board 3.1.4 skinset has that line in the "includeMeta" template:


<if test="metatags:|:is_array( $metaTags ) AND count( $metaTags )">

<foreach loop="metaTags:$metaTags as $tag => $content">

<meta name="$tag" content="$content" />

</foreach>

</if>



but as I said in message http://mod-mall.com/...findpost__p__55 source code only contain "visitor" in the analytic code even if I'm connected as a member.

Posted

Hi Mod-Mall & Nitra,

Great job, it's fixed ... thanks %7Boption%7D

PS: I've added the 2 start & end <!-- .... Google Analytics --> and changed "Visitor" in "Guest" cause we're using "Guest" on our board. %7Boption%7D
PPS: our board is IP Board 3.1.4 with original skin set

Posted

Please change this line in your .xml code -

$mmga_gamember ="_gaq.push(['_setCustomVar',1,'VisitorType','Visitor',1]);";
to
$mmga_gamember ="_gaq.push(['_setCustomVar',1,'VisitorType','Guest',1]);";

Posted

I'll put it into a next release but it's a low priority change as it doesnt really make a huge diffence



Yep ... you're right, it's very low priority and it's a piece of cake to DIY ... one can change "member" & "visitor" easily according the language of your GA dashboard. (just follow gils2's explanation)
Thanks again for the bugfix ;)
  • 3 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...