vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - BBR Google Analytics Addon (https://vborg.vbsupport.ru/showthread.php?t=229347)

BBR-APBT 12-01-2009 10:00 PM

BBR Google Analytics Addon
 
I will no longer support vBulletin because of IB and the agile development, and they are not fixing bugs like they should. Instead they add bloat.

Zaiaku 12-02-2009 04:43 PM

Always helpful to have this early so we don't have to edit templates for this. Nice thinking!

zbahadir 12-02-2009 05:01 PM

Thanks.

Veer 12-02-2009 05:28 PM

Why did you write "Activate playlist in user profile"?

BBR-APBT 12-02-2009 06:08 PM

Quote:

Originally Posted by Veer (Post 1924177)
Why did you write "Activate playlist in user profile"?

Lmao

I used the xml from one of my other mods.

Fixed.

elwachiman 12-02-2009 06:19 PM

instaled tnks..

AzzidReign 12-02-2009 06:57 PM

Nice. Useful for non-vbseo forums.

LbR 12-02-2009 08:20 PM

Great was waiting for this only Thanks A lot :D

VonDoom 12-02-2009 09:56 PM

haha i cant get my ID# google doesnt recognize me as an admin of my own account.

BBR-APBT 12-02-2009 10:09 PM

Quote:

Originally Posted by VonDoom (Post 1924339)
haha i cant get my ID# google doesnt recognize me as an admin of my own account.

Do you have the code posted on the site already?

Just get it from the code you already have.

SİMAR 12-02-2009 10:39 PM

Thanks.

RickyG 12-02-2009 10:54 PM

why not plop it into a widget ad spot? Thats what i did and it works

hendri 12-03-2009 03:40 AM

i love it.... at last !

forexjoker 12-03-2009 11:53 AM

Great! Thank you!

Dr.osamA 12-03-2009 01:47 PM

Great! Thank you!

lbpforum.net 12-03-2009 01:58 PM

Thank you! installed.

Alfa1 12-03-2009 02:25 PM

Please add a function to automatically mark threads as 'Top entry pages' and 'Top exit pages'.

This will greatly help identify threads that attract mega traffic and help to reduce bounce rate.

BBR-APBT 12-03-2009 03:01 PM

Quote:

Originally Posted by Alfa1 (Post 1924734)
Please add a function to automatically mark threads as 'Top entry pages' and 'Top exit pages'.

This will greatly help identify threads that attract mega traffic and help to reduce bounce rate.

Please explain a little more. I will surely try to implant this if it is worth it.

VonDoom 12-03-2009 03:17 PM

Finally got into my own account to add another site. Installed. will confirm in a cpl days.

LbR 12-03-2009 09:18 PM

My Analytics is not updating :(

BBR-APBT 12-03-2009 11:40 PM

Quote:

Originally Posted by LbR (Post 1924929)
My Analytics is not updating :(

Did you wait 24 hours?

Alfa1 12-04-2009 12:03 AM

Quote:

Originally Posted by BBR-APBT (Post 1924763)
Please explain a little more. I will surely try to implant this if it is worth it.

Please go to your top landing pages in Google analytics.

Analytics lists threads like this:
/forum/showthread.php?t=92324

By default you will see the 10 top landing pages. Use the drop down to see more rows.

Top landing pages are important to be aware of, because its possible that another site, DIGG, Reddit, various social bookmarking sites or a certain search engine is sending major traffic to your site. If your staff is aware of it then they can come into action and improve the pages that are receiving such heavy traffic. Otherwise your site may get tens of thousands visitors on a mediocre page. Without improvement those visitors may leave right after they arrive.

The same goes for top exit pages. You can find them here in Google Analytics. If you know what your top exit pages are, then you know where your weak spots are. If thousands of visitors leave on specific pages, then its good to fix it.

Off course its possible for a webmaster to go to Analytics look up the threadID and then find each thread, but that's very tedious and its much better if each moderator can see in a thread if the thread is a top exit page.

So it would be very nice if you could add a function that shows a message or image to moderators (can_moderate) if a thread is a top exit page or a top entry page.

Does this make sense?

BBR-APBT 12-04-2009 12:25 AM

I would have to make your forums login to Google with your login to get that information.

Alfa1 12-04-2009 12:47 AM

Thats weird. The urls should work for any Google Analytics account. You need to first login here: https://www.google.com/analytics/home/ and then you should be able to access your top landing pages and top exit pages.

Or do you mean you do not have an Analytics account?

BBR-APBT 12-04-2009 01:03 AM

Quote:

Originally Posted by Alfa1 (Post 1924990)
Thats weird. The urls should work for any Google Analytics account. You need to first login here: https://www.google.com/analytics/home/ and then you should be able to access your top landing pages and top exit pages.

Or do you mean you do not have an Analytics account?

If I was to make this mod work with stuff inside the Google Analytics control panel.
Then each site that installs this would have to have the site login to automatically mark threads as 'Top entry pages' and 'Top exit pages'. There is no way to get that info with out making the site login to Google.

I would rather not do that.

Alfa1 12-04-2009 08:02 AM

Yes, a login would be needed. Though that can be done securely. Similar to vbSEO has done the login:
vBSEO LiveStats: On-Demand Search Engine Performance Reports

naoba 12-04-2009 12:04 PM

This doesn't work on my site.. . I just followed the instructions, opened an Google analytics account, registered my site name there, and still waiting for something to happen.. Sorry for being such an idiot but am i missing something here.. :(

BBR-APBT 12-04-2009 03:46 PM

Quote:

Originally Posted by naoba (Post 1925204)
This doesn't work on my site.. . I just followed the instructions, opened an Google analytics account, registered my site name there, and still waiting for something to happen.. Sorry for being such an idiot but am i missing something here.. :(

Has it been 24 hours?

From Google:
Once you've installed your tracking code, you should allow up to 24 hours for data to appear in your account.

naoba 12-06-2009 04:20 AM

yes it's been more than 24 hrs..

BBR-APBT 12-06-2009 05:00 AM

Quote:

Originally Posted by naoba (Post 1926107)
yes it's been more than 24 hrs..

Did you check to make sure the code is in the footer?

naoba 12-06-2009 11:34 AM

No, i cant find it in the footer template.. Plz check it once
PHP Code:

{vb:raw ad_location.ad_footer_start}
{
vb:raw ad_location.global_above_footer}
<
div class="footercontainer">
<
div class="footercontainer2">
<
div id="footer" class="floatcontainer">

    <
form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">

            
        <
vb:if condition="$show['quickchooser']">
            <
select name="styleid" onchange="switch_id(this, 'style')">
                <
optgroup label="{vb:rawphrase quick_style_chooser}">
                    {
vb:raw quickchooserbits}
                </
optgroup>
            </
select>    
        </
vb:if>
        
        <
vb:if condition="$show['languagechooser']">
            <
select name="langid" onchange="switch_id(this, 'lang')">
                <
optgroup label="{vb:rawphrase quick_language_chooser}">
                    {
vb:raw languagechooserbits}
                </
optgroup>
            </
select>
        </
vb:if>
    </
form>

    <
ul id="footer_links" class="goright">
        <
vb:if condition="$show['contactus']"><li><a href="{vb:raw vboptions.contactuslink}" rel="nofollow" accesskey="9">{vb:rawphrase contact_us}</a></li></vb:if>
        <
vb:if condition="$vboptions['hometitle']"><li><a href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a></li></vb:if>
        <
vb:if condition="$show['admincplink']"><li><a href="{vb:raw admincpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
        <
vb:if condition="$show['modcplink']"><li><a href="{vb:raw modcpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase mod}</a></li></vb:if>
        <
vb:if condition="$vboptions['archiveenabled']"><li><a href="archive/index.php">{vb:rawphrase archive}</a></li></vb:if>
        {
vb:raw template_hook.footer_links}
        <
vb:if condition="$vboptions['privacyurl']"><li><a href="{vb:raw vboptions.privacyurl}">{vb:rawphrase privacy_statement}</a></li></vb:if>
        <
vb:if condition="$vboptions['tosurl']"><li><a href="{vb:raw vboptions.tosurl}">{vb:rawphrase terms_of_service}</a></li></vb:if>
        <
li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
    </
ul>
    
    
    <
vb:if condition="$show['dst_correction']">
    <!-- 
auto DST correction code -->
        <
form action="profile.php?do=dst" method="post" name="dstform">
            <
input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
            <
input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
            <
input type="hidden" name="do" value="dst" />
        </
form>
        <
script type="text/javascript">
        <!--
            var 
tzOffset = {vb:raw bbuserinfo.timezoneoffset} + {vb:raw bbuserinfo.dstonoff};
            var 
utcOffset = new Date().getTimezoneOffset() / 60;
            if (
Math.abs(tzOffset utcOffset) == 1)
            {    
// Dst offset is 1 so its changed
                
document.forms.dstform.submit();
            }
        
//-->
        
</script>
        <!-- / 
auto DST correction code -->
    </
vb:if>
    
    <
script type="text/javascript">
    <!--
        
// Main vBulletin Javascript Initialization
        
vBulletin_init();
    
//-->
    
</script>
</
div>
</
div>
</
div>
<
div class="below_body">
<
div id="footer_time" class="shade">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>

<
div id="footer_copyright" class="shade">
    <!-- Do 
not remove this copyright notice -->
    {
vb:rawphrase powered_by_vbulletin}
    <!-- Do 
not remove this copyright notice -->    
</
div>
<
div id="footer_morecopyright" class="shade">
    <!-- Do 
not remove cronimage or your scheduled tasks will cease to function -->
    {
vb:raw cronimage}
    <!-- Do 
not remove cronimage or your scheduled tasks will cease to function -->
    {
vb:raw vboptions.copyrighttext}
</
div>

{
vb:raw ad_location.ad_footer_end
</
div


BBR-APBT 12-06-2009 03:21 PM

Not in the template its self. View the source of the page and it should be at the bottom just above the </body tag.

naoba 12-07-2009 12:19 PM

and i was searching for the </body> tag in the template :D Thank you. Yes the codes are present. May be i should just check up with google. Thanks again Brotha...!!

hendri 12-08-2009 02:44 AM

i check google analystic cannot use... nothing happen ?

cyber3 12-09-2009 12:22 PM

I installed this when you released it, and I am not getting any stats in google analytics ..

It just says "Waiting for Data"

Anyone having the same issues ?

cyber3 12-10-2009 11:24 AM

after 1 week still no results showing.. anyone ??

BBR-APBT 12-11-2009 04:43 AM

Looking into it.

Jedric 12-11-2009 07:35 AM

This code seems to work a lot better:

PHP Code:

if ($vbulletin->options['bbr_google_active']){
$bbrgoogleaccountid $vbulletin->options['bbr_google_account_id']; 

$bbrgooglecode '<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push([\'_setAccount\', \''
$bbrgoogleaccountid .'\']);
  _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\';
    (document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(ga);
  })();

</script>'
;
$BBR_find '</head>';
$BBR_add_before "$bbrgooglecode"PHP_EOL;
$output str_replace($BBR_find,$BBR_add_before.$BBR_find$output);  



It uses the new Asynchronous Tracking script. More information about that is located here: http://code.google.com/apis/analytic...cTracking.html

Check out http://mmojunkie.com for a preview.

cyber3 12-11-2009 05:28 PM

Quote:

Originally Posted by Jedric (Post 1928718)
This code seems to work a lot better:

PHP Code:

if ($vbulletin->options['bbr_google_active']){
$bbrgoogleaccountid $vbulletin->options['bbr_google_account_id']; 

$bbrgooglecode '<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push([\'_setAccount\', \''
$bbrgoogleaccountid .'\']);
  _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\';
    (document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(ga);
  })();

</script>'
;
$BBR_find '</head>';
$BBR_add_before "$bbrgooglecode"PHP_EOL;
$output str_replace($BBR_find,$BBR_add_before.$BBR_find$output);  



It uses the new Asynchronous Tracking script. More information about that is located here: http://code.google.com/apis/analytic...cTracking.html

Check out http://mmojunkie.com for a preview.

Thanks I will give this a try and see if I can finally see any results.

kwa11ace 12-12-2009 02:57 AM

Im the same, it says it's there but does not update with any data.

How to put the code in thats above, in the xml?


All times are GMT. The time now is 08:29 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.01596 seconds
  • Memory Usage 1,886KB
  • 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
  • (3)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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