Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google Analytics in the Archive (and Forum) Details »»
Google Analytics in the Archive (and Forum)
Version: 2.0, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.8.x Rating:
Released: 07-08-2010 Last Update: 05-23-2011 Installs: 39
Supported Uses Plugins Auto-Templates
Re-useable 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: https://vborg.vbsupport.ru/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

File Type: zip Google Analytics in Archive by BOP5v2.zip (3.2 KB, 196 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-02-2011, 08:41 PM
SnakeEaterITA SnakeEaterITA is offline
 
Join Date: Jul 2010
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I disabled each plugin, one by one, but the error is still there >

damn...I remember that, following some guides, I added the Analytics script in the footer and in another page, but I'm unable to remember WHERE...
Reply With Quote
  #23  
Old 01-02-2011, 08:47 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggest you try disabling hooks to confirm where the problem is. There are no templates in the archive.

To disable hooks edit your config.php... add this as the second line, directly below the opening tag <?php
Code:
define('DISABLE_HOOKS', true);
Then check again if you still have the archive error.
Reply With Quote
  #24  
Old 01-02-2011, 08:51 PM
SnakeEaterITA SnakeEaterITA is offline
 
Join Date: Jul 2010
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, no more error removing the hooks. Consider I don't even know what is a hook :'(

Now what to do? What changes if i remove hooks?
Reply With Quote
  #25  
Old 01-02-2011, 08:57 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disabling hooks *really* disables every single mod and plugin... You should re-enable them again but now we know for sure the problem is with a plugin, not altered vbulletin files.

Re-enable your hooks, confirm the error is back...

Then go to Admin CP -> Plugin Manager and tell me what plugins you have at the top under Product: vBulletin (if any)...
Reply With Quote
  #26  
Old 01-02-2011, 09:03 PM
SnakeEaterITA SnakeEaterITA is offline
 
Join Date: Jul 2010
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sh*t, found it!

It was my fault as I looked at Products instead of Plugins... it was this one:

Name: Code in Archive
Hook Location: archive_complete
PHP Code:

$output .= "<script src=\"http://www.google-analytics.com/urchin.js\" type=\"text/javascript\">
</script>
<script type=\"text/javascript\">
_uacct = \"XXXXXXXXXXXXXXXXXXXXXXXXXXX\";
urchinTracker();
</script>";

<!--Paste Google Adsense Code (with slashes) Above This Line-->
';
Reply With Quote
  #27  
Old 01-02-2011, 09:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah,, good, delete that plugin, you won't need it anyway with this mod.
Reply With Quote
  #28  
Old 01-03-2011, 10:27 AM
www.ch-joy.com's Avatar
www.ch-joy.com www.ch-joy.com is offline
 
Join Date: Oct 2009
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tankx :-)
Reply With Quote
  #29  
Old 01-03-2011, 11:52 PM
Edgespeeder06 Edgespeeder06 is offline
 
Join Date: Nov 2009
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed but google tells me that no tracking is installed?

www.NJStangers.org I don't see it on my pages neither even though its in the google anayltics product I added to the backend
Reply With Quote
  #30  
Old 01-04-2011, 12:05 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's definitely in your archive... I see it's not on your pages though... I think it's because you have the "Branding" removed from vBulletin (branding free license)- I wasn't taking that into consideration when I tied the Analytics code to the copyright... If there's no copyright there's no analytics code.

I suggest you manually add the code to your footer template but leave the mod installed for the archive.

I'll work on fixing this.
Reply With Quote
  #31  
Old 01-04-2011, 12:09 AM
Edgespeeder06 Edgespeeder06 is offline
 
Join Date: Nov 2009
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah okay that happened when we did the custom garage as well as a few other mods, that explains it. Thanks again.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 12:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04911 seconds
  • Memory Usage 2,324KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete