vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Google Analytics in the Archive (and Forum) by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=256325)

Luca_ITA 08-06-2011 02:42 PM

Just installed in 4.1.5pl1
Working perfectly
Thank you for this mod!!

misericorde 10-17-2011 03:27 AM

thank you

Nice

datoneer 11-10-2011 12:58 PM

I can't see analytics on my forum. Not working at all

vb 4.1.5

BirdOPrey5 11-10-2011 03:42 PM

link to your forum? Is mod still installed?

datoneer 11-10-2011 04:35 PM

Yes. www.imspot.org

BirdOPrey5 11-11-2011 01:11 PM

Quote:

Originally Posted by datoneer (Post 2266602)

When I view the HTML source of your page, this code is clearly there:

HTML Code:

<!--Google Analytics in (Forum) Begin-->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26306379-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!--Google Analytics in (Forum) End-->

So it appears to be fine. :confused:

GoHighVoltage 11-20-2011 12:12 AM

This mod causes your scheduled tasks not to work. As soon as I uninstalled, they worked fine again.

BirdOPrey5 11-20-2011 01:12 AM

Quote:

Originally Posted by GoHighVoltage (Post 2269754)
This mod causes your scheduled tasks not to work. As soon as I uninstalled, they worked fine again.

There's probably more to this issue as it's working fine on many various 4.x forums. But it's no big deal, adding the code to your template or using a similar mod is easier than trouble-shooting.

GoHighVoltage 11-20-2011 05:02 AM

I have a clean install of 4.1.8 and it causes the scheduler to fail. Remove and it works fine.
I will leave uninstalled for now. great mod and idea though!!!

Maybe it is just my situation. Thanks!

BlueCheri 02-21-2012 04:03 PM

Installed, very smart thinking.

Working fine.

Thanx

G!

Pandemikk 03-31-2012 07:16 AM

Excellent work BOP. I'm sorry to say that I'm going to have to "steal" your idea for automatic archive GA integration :D.

BirdOPrey5 03-31-2012 02:56 PM

https://vborg.vbsupport.ru/showthread.php?t=234608 ;)

Pandemikk 04-01-2012 01:00 AM

Nope, only yours :D

Thierry Martin 05-30-2012 07:42 AM

Installed but disappointed to see it is at the bottom of the page instead of the recommended by Google just before the closing head tag. Is there a problem putting it there?

BirdOPrey5 05-30-2012 11:21 AM

Quote:

Originally Posted by Thierry Martin (Post 2334566)
Installed but disappointed to see it is at the bottom of the page instead of the recommended by Google just before the closing head tag. Is there a problem putting it there?

That was a throwback to older times when the footer was the recommended location. Updated to version 1.6 with option to use header instead. :up:

Thierry Martin 05-31-2012 02:40 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2334624)
That was a throwback to older times when the footer was the recommended location. Updated to version 1.6 with option to use header instead. :up:

I noticed when trying to install the code manually before the header in the archive page that the page stopped functioning so I ended up putting your code back in the footer. Something doesn't work there.

BirdOPrey5 05-31-2012 12:01 PM

I didn't move it for the archive, just the forums. Archive is fine as is.

Syxguns 10-03-2012 08:09 AM

Thanks BOP5! I'll have to ensure that all is working. I set to the header as instructed above. By the way I want to purchase your HTML user color change that I heard you had. Could you drop me a link for that? Thanks again for this mod! :)

voglermc 11-09-2012 04:32 PM

I think someone stole your code
https://vborg.vbsupport.ru/showthrea...hreadid=290306

BirdOPrey5 11-10-2012 08:27 PM

Even if they did it is "Re-Usable Code" and people may re-use it however they want.

Thanks though.

Heckwork 03-01-2013 03:38 PM

FYI, it works with Clicky too (https://clicky.com)

markoroots 03-01-2015 08:15 PM

Hi there,
please can you explain me what is the difference between the options "Archive" and "Forum"?
What do it change?

And please can you explain me also the difference between "Header" and "Footer" position?

markoroots 03-07-2015 11:39 AM

Any answer??

BirdOPrey5 03-07-2015 06:07 PM

Sorry, missed this.

Forum are forum pages- the normal ones you are looking at right now.

The archive refers to the vBulletin archive feature- most new forums keep the archive disabled these days as it serves no purpose. But 10+ years ago when search engines had difficulty indexing forums the archive was much easier for it to index. You can see an example of an archive by clicking the archive link in the footer of any page on vbulletin.org, just to the left of the "Top" link.

(Link URL copied here: https://vborg.vbsupport.ru/archive/index.php )

Archive pages are much simpler than normal forum pages and add-ons do not usually affect the archive. Any changes you make to footer, header, or any other templates won't affect the archive either. For these reasons most people forget to put Google Analytics into the Archive code.

These days however I would recommend just disabling your archive in vBulletin settings.

As for header v. footer... In the header you *sightly* slow down the load of the page but register more visitors because no one can really stop the page loading before the header loads. In the footer there is no page slowdown but some visitors who click links really fast or click stop on their browser might not get counted because the javascipt loads last.

It really makes no difference 99% of the time.

markoroots 03-12-2015 08:08 PM

Great! Many thanks BOP! :)
Is everything clear.
So in your plugin I have to disable the "Enable in Archive" box?
Right?

BirdOPrey5 03-13-2015 01:23 PM

If you have the archive disabled in vBulletin Options then i does not matter what you have "Enable in Archive" set to.


All times are GMT. The time now is 04:31 PM.

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.01231 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete