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)

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 10:52 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.01480 seconds
  • Memory Usage 1,808KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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