Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Google Analytics in the Archive (and Forum) Details »
Google Analytics in the Archive (and Forum)
Mod Version: 2.0, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jan 2019 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (4 votes - 5.00 average) Installs: 37
Released: 09 Jul 2010 Last Update: 24 May 2011 Downloads: 196
Supported Uses Plugins Auto-Template Re-usable Code Translations  

New Version 2.0
New in 2.0: New Improved Google Tracking Code, Code in forum moved to recommended location before the </head> tag.

Uninstall old versions before installing Version 2.0

You will need your Google Analytics tracking ID when installing or upgrading. (UA-XXXXXX-X)

The main purpose of this mod was originally to add your Google Analytics code to the archive. The archive traditionally gets overlooked because the standard instructions of copying your analytics code into the footer doesn't cover the archive.

You simply copy and paste your tracking ID into the mod and enable it in your forums and/or archive.

To confirm it is working go to your archive and view the source on any archive page. At the bottom directly above the VB Copyright info should be your google code.

I have tested this in 3.8.6 and 3.8.7 and it will work in all 3.8.x and probably in 3.7 and earlier as well.
For VB4.x see this version: http://www.vbulletin.org/forum/showthread.php?t=256325

You won't see any indication on the pages but you can demo the product at:
http://www.juot.net/forums/archive/index.php
(You will have to view source to confirm it is working.)

Please mark as installed if you use this.

Full instructions in .zip file.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 10 Jul 2010, 00:18
salafmisr.net's Avatar
salafmisr.net salafmisr.net is offline
 
Join Date: Apr 2010
hello

you don't need a plugin to do that

just open the index.php file in the archive folder , and place the Google Analytics script at the end of it , and voila ! the code is working like a charm in all the archive pages
Reply With Quote
  #3  
Old 10 Jul 2010, 00:26
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
cool... I will update the mod but I think it's important to keep so people don't forget to do this.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #4  
Old 11 Jul 2010, 17:29
Manoel Júnior's Avatar
Manoel Júnior Manoel Júnior is offline
 
Join Date: Feb 2009
Real name: Manoel Júnior
Prefer this trick.

For when I upgrade my vBulletin, will not have to worry about changing the file on hand.

Thanks! Installed
Reply With Quote
  #5  
Old 14 Oct 2010, 10:33
Fergal C Fergal C is offline
 
Join Date: Dec 2004
Real name: Fergal Crawley
Originally Posted by salafmisr.net View Post
...just open the index.php file in the archive folder , and place the Google Analytics script at the end of it...
Should that be at the very end of it, i.e. after the last closing PHP tag "?>"

Thanks!
__________________
Business Advice Forum
Forum Promotion
[Previous username HostBider.com]
Reply With Quote
  #6  
Old 14 Oct 2010, 14:47
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
No...

In index.php look for the code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And paste the google code directly before </body>.

Remember you will need to redo this each time you upgrade vbulletin if you do it this way.

Also you will have to 'escape' every double quote in the google code with a slash \ as explained in the top post.

EDIT- Actually it might work at the very very end of the file, AFTER the php closing tag too... I haven't tested it but that should work and no need to escape the quotes. But it wouldn't be valid HTML because all the code should be before the </html> so it may not work in all browsers.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.

Last edited by BirdOPrey5; 14 Oct 2010 at 14:58.
Reply With Quote
  #7  
Old 14 Oct 2010, 15:00
Jack12's Avatar
Jack12 Jack12 is offline
 
Join Date: May 2010
Real name: Dexter Morgan
Great work (not that you need to be told ) mate, will install when I've got a little spare time.

Cheers.
__________________
Need some work done on your forum? I can handle styling, installing mods, upgrading and new installations. Contact me via PM for more details.
Reply With Quote
  #8  
Old 15 Oct 2010, 11:40
Fergal C Fergal C is offline
 
Join Date: Dec 2004
Real name: Fergal Crawley
Originally Posted by BirdOPrey5 View Post
...EDIT- Actually it might work at the very very end of the file, AFTER the php closing tag too... I haven't tested it but that should work and no need to escape the quotes. But it wouldn't be valid HTML because all the code should be before the </html> so it may not work in all browsers.
Thanks BirdOPrey5, I've added it there and it seems to work OK. Perhaps it's not valid HTML, but hopefully won't do any harm in the archive.
__________________
Business Advice Forum
Forum Promotion
[Previous username HostBider.com]
Reply With Quote
  #9  
Old 01 Jan 2011, 21:43
SnakeEaterITA SnakeEaterITA is offline
 
Join Date: Jul 2010
Even if I put the code in my template, it looks like Analytics is unable to get the traffic data from the forum...anyone with the same problem?
Reply With Quote
  #10  
Old 01 Jan 2011, 22:05
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
I go to Google Analytics -> Content Overview -> Full Report and do a search for "archive" and I see a bunch or archive URLs so i know it's working...

I suppose it's possible if the code wasn't escaped properly you might not got it to work... I will upgrade this from a plugin to a real installable mod so people don't have to escape the code themselves...

Also you made sure to wait 24 hours before checking your analytics?
Attached Images
File Type: gif ss_archive.gif (27.8 KB, 46 views)
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #11  
Old 02 Jan 2011, 01:08
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Update!!

I have upgraded this to an installable product, you simply install like any other product, copy and paste your Google Analytics code.

If you have the old plugin installed delete it first before installing this product. Full instructions in the zip fie.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #12  
Old 02 Jan 2011, 12:11
Bin7raib Bin7raib is offline
 
Join Date: Mar 2009
Real name: Ahmad Abdullah
Great, installed.
Reply With Quote
  #13  
Old 02 Jan 2011, 18:56
SnakeEaterITA SnakeEaterITA is offline
 
Join Date: Jul 2010
Updated. I'll wait another 24hrs...let's hope it works this time
Reply With Quote
  #14  
Old 02 Jan 2011, 18:57
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
If you have a link to the forum I can check...
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #15  
Old 02 Jan 2011, 19:55
SnakeEaterITA SnakeEaterITA is offline
 
Join Date: Jul 2010
Originally Posted by BirdOPrey5 View Post
If you have a link to the forum I can check...
here it is: www.upsblogit.com/newforum
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 19:13.

Layout Options | Width: Wide Color: