Mod-Mall.com Posted June 19, 2011 Posted June 19, 2011 File Name: [mm31] Google Analytics - Measure Site Speed and Member TypeFile Submitter: Mod-Mall.comFile Submitted: 19 Jun 2011File Updated: 24 Jul 2011File 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 followingEnables 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...Donating via Paypal Listing your site on my IPB Link Gallery 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:Viewing Site Speed in Google Analytics (bottom of first post) Viewing Custom Varibles in Google AnalyticsClick here to download this file
gils2 Posted June 20, 2011 Posted June 20, 2011 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?
Mod-Mall.com Posted June 21, 2011 Author Posted June 21, 2011 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.
Phille Posted July 14, 2011 Posted July 14, 2011 To use the data in Google Analytics, follow the steps outlined in the links below:Viewing Site Speed in Google Analytics (bottom of first post) Viewing Custom Varibles in Google Analytics Hello ... I've installed it ... but no results Can't view pics of the 2 links you've mentionned ...no autorisation :( What do I have to do on the analytics dashboard? Regards.
Mod-Mall.com Posted July 14, 2011 Author Posted July 14, 2011 Theres step by step instructions on the website and you should now be able to view pictures.
JiigSaaw Posted July 14, 2011 Posted July 14, 2011 No Analytics Script in Source Code of the forum with this hook. Stopped and used IP.SEO again. Edit: Same problem as Phille here : http://mod-mall.com/...findpost__p__40 Edit²: Just added "_gaq.push(['_trackPageLoadTime']);" to my analytics code
Mod-Mall.com Posted July 14, 2011 Author Posted July 14, 2011 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?
JiigSaaw Posted July 15, 2011 Posted July 15, 2011 So, yes i've a custom skin of course. No Understand your question. No Understand your question.
Mod-Mall.com Posted July 16, 2011 Author Posted July 16, 2011 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 )">
Phille Posted July 19, 2011 Posted July 19, 2011 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.
Mod-Mall.com Posted July 19, 2011 Author Posted July 19, 2011 Thanks I've found the problem there, I will issue an updated version later tonight (in a few hours)
Mod-Mall.com Posted July 20, 2011 Author Posted July 20, 2011 Should be fixed, let me know if you get anymore issues.
Phille Posted July 20, 2011 Posted July 20, 2011 Hi Mod-Mall & Nitra, Great job, it's fixed ... thanks PS: I've added the 2 start & end <!-- .... Google Analytics --> and changed "Visitor" in "Guest" cause we're using "Guest" on our board. PPS: our board is IP Board 3.1.4 with original skin set
gils2 Posted July 20, 2011 Posted July 20, 2011 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]);";
Mod-Mall.com Posted July 20, 2011 Author Posted July 20, 2011 I'll put it into a next release but it's a low priority change as it doesnt really make a huge diffence
Phille Posted July 21, 2011 Posted July 21, 2011 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 ;)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.