View Full Version : Administrative and Maintenance Tools - BBR Google Analytics Addon
BBR-APBT
12-01-2009, 10:00 PM
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.
Why did you write "Activate playlist in user profile"?
BBR-APBT
12-02-2009, 06:08 PM
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.
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
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
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.
My Analytics is not updating :(
BBR-APBT
12-03-2009, 11:40 PM
My Analytics is not updating :(
Did you wait 24 hours?
Alfa1
12-04-2009, 12:03 AM
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 (https://www.google.com/analytics/reporting/entrances?).
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 (https://www.google.com/analytics/reporting/exits?) 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 (https://www.google.com/analytics/reporting/entrances?) and top exit pages (https://www.google.com/analytics/reporting/exits?).
Or do you mean you do not have an Analytics account?
BBR-APBT
12-04-2009, 01:03 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 (https://www.google.com/analytics/reporting/entrances?) and top exit pages (https://www.google.com/analytics/reporting/exits?).
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 (https://vborg.vbsupport.ru/showthread.php?t=218216&highlight=analytics)
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
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
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
{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:
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/analytics/docs/tracking/asyncTracking.html
Check out http://mmojunkie.com for a preview.
cyber3
12-11-2009, 05:28 PM
This code seems to work a lot better:
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/analytics/docs/tracking/asyncTracking.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?
BBR-APBT
12-12-2009, 03:07 AM
Updated XML with code provided by Jedric
Jedric
12-12-2009, 05:51 AM
*cough*
That was me...not cyber3. ;)
cyber3
12-12-2009, 01:05 PM
Updated XML with code provided by cyber3
That was Jedric's Code.. NOT MINE..
And it DOES work!!!
Thank you Jedric!!!
Cyber3
BBR-APBT
12-12-2009, 01:13 PM
My fault copy and paste at 2 am isn't to much fun.
VonDoom
12-12-2009, 05:36 PM
Cool will try this one again Thanks.
Jedric
12-13-2009, 06:51 PM
Also please note that the new code requests you put it right before the </HEAD> tag. It is no longer right before </BODY>.
VonDoom
12-14-2009, 12:30 AM
Working for me :)
dennisuello
12-14-2009, 09:34 PM
Installed. Thanks. :up:
fayax
12-17-2009, 12:20 AM
For newbies like me :D working with vb4CMS I would like to clarify a few things.
These are just clarification to main directions above.
in admincp do the following to get this to work.
Admincp>plugins & products> manage products> add/import product> Browse to the file you downloaded >
Once that is complete then
Control panel Home > setting> options > in the long list of option go to BBR google analytics and double click it. Put the number from the information you received from the analytics page from google.
it can have this format also UA-xxxxxxx-xx ( where x- is a number)
Hope this helps others. And correct me if I am wrong.
Regards,
fayax
saqibnpt
12-17-2009, 08:20 AM
Great! Thank you!
nitra1000
12-22-2009, 04:35 PM
why not plop it into a widget ad spot? Thats what i did and it works
Google code is supposed to go in a certain place, thats what this plugin does.
p.s installed thanks!
nitra1000
12-23-2009, 01:05 AM
bah or at least I thought it was, is their any problem with the latest version and subdomains. The analytics code is clearly there but googleis refusing to acknowledge it.
BBR-APBT
12-23-2009, 01:11 AM
I never tested this on a sub-domain.
I can't see why it would cause a problem though. Working with lots of other people.
dcuellar
12-23-2009, 11:00 PM
You are on a roll man. Great work so far!!
tazattitude
12-24-2009, 09:57 AM
Nice to have before all the skins/templates come out
Marked as installed
Thanks!
KissOfDeath
12-26-2009, 05:12 AM
installed, thank you to coder and all that helped with coding
nkumaran
12-26-2009, 02:52 PM
It's working now, Thx.
Team_RCRR
12-27-2009, 04:17 AM
I was messing around with google analytics and after I was done viewing my data I clicked "site overlay" and ever sense then its displayed a whitened out top half of my site and nothing is clickable. Any one got an idea why? I've disabled analytics for now because of it.
stained
12-27-2009, 12:05 PM
This works great but I've had to disable it because it moves my notices (guest message etc) to the bottom of the page and removes some of the formatting. I'd appreciate it if someone could give me a tip on how to fix it. The code has been inserted as follows:
<script type="text/javascript">
//<![CDATA[
window.google_analytics_uacct = "UA-xxxxxxx";
</script>
</head> <body>
HondaATC
12-27-2009, 11:10 PM
Mine does not seem to be working in 4.00PL1 :(
ForumUser210
12-27-2009, 11:35 PM
Analytics should go above the </body> tag. In the </head>, it slows down the loading of the entire forum.
stained
12-28-2009, 01:01 PM
Hi,
I didn't make a manual change to be honest. The mod put it there :)
Can you tell me where to edit to place the analytics code correctly? Thanks
BBR-APBT
12-28-2009, 02:27 PM
Analytics should go above the </body> tag. In the </head>, it slows down the loading of the entire forum.
This is not the normal code, Google released this code to be put below the head tag.
HondaATC
12-28-2009, 04:17 PM
Mine does not seem to be working in 4.00PL1 :(
Apologies. Mine is working now. Either Google was a weee bit slow on their refresh or I was a bit impatient :)
stained
12-29-2009, 01:06 PM
This is not the normal code, Google released this code to be put below the head tag.
The mod put the code before the head tag on my forum which pushes the welcome message and obviously all other notices to the bottom of the screen. Where do I need to edit to get it into the correct place? Thanks
Great, Thank you :) BTW You had the honour of being my first ever installed add on for an brand new vb ;) cheers
Bouncer222
12-30-2009, 04:28 AM
I checked my header template and I searched for </body> code and I searched for any part of code that had the word google in it , nothing was found so I presume the code is not there? Yet it says that is the template it should be in, any help on why it wont show?
Thanks.
albibak
12-30-2009, 10:28 AM
BBR-APBT,
Thanks for the mod
Please, find in attachment the french translation
You can find the french topic for this mod here: http://forum.vbulletin-fr.org/modifications.php?do=showmod&modid=1077
COBRAws
12-30-2009, 03:45 PM
Does this allow to track visits on subdomains as well? GA recently enabled a custom JS code to allow tracking on any subdomain from the tracked domain.
The only line added to the code is this:
pageTracker._setDomainName(".domain-name.com");
Just above:
pageTracker._trackPageview();
} catch(err) {}</script>
Thanks!
wheres me jumpa
12-30-2009, 04:21 PM
Installed. Thanks.
Hellracer99
12-31-2009, 08:20 AM
Thank you very much. Installed
Hi all iv got this on my cp now and its not working i put my google id as shown its been more than 24hrs was wondering do i have to edit the xml file aswell if so how??? Thanks any help apprieciated.
P.S and why is there two choices to down load the fie????
BBR-APBT
01-01-2010, 11:51 PM
Hi all iv got this on my cp now and its not working i put my google id as shown its been more than 24hrs was wondering do i have to edit the xml file aswell if so how??? Thanks any help apprieciated.
P.S and why is there two choices to down load the fie????
You would download the newest file.
You would download the newest file.
Thank you BBR-APBT which one is that ?? the one with the most downloads?? and do i have to edit the XML file in anyway to add things like URL, GOOGLE ID etc...as im not sure thanks.
stained
01-02-2010, 11:15 AM
please remove.
BBR-APBT
01-02-2010, 02:18 PM
Thank you BBR-APBT which one is that ?? the one with the most downloads?? and do i have to edit the XML file in anyway to add things like URL, GOOGLE ID etc...as im not sure thanks.
Install Instructions:
1) Import the product-bbr_google_analytics_1.02.xml file
2) Go to your AdminCP options and edit the BBR Google Analytics options.
3) You must set Active to Yes
4) Input your Google Account ID (UA-xxxxxx-x)
So i do not have to edit the XML file sorry for been a noob??
Pharkas
01-02-2010, 11:35 PM
Just a quick question...
My admins sometime create new styles after I've installed mods.
How would I apply installed mods to styles created after the isntallation ?
Install Instructions:
1) Import the product-bbr_google_analytics_1.02.xml file
2) Go to your AdminCP options and edit the BBR Google Analytics options.
3) You must set Active to Yes
4) Input your Google Account ID (UA-xxxxxx-x)
I have done this exactly and its still not working thats why i asked if i needed to edit the xml file??
BBR-APBT
01-03-2010, 05:35 AM
Works for every one else can't imagen why it wouldn't work for you.
asuffredini
01-06-2010, 04:33 PM
How do I import the xml file? Thanks!
BBR-APBT
01-06-2010, 11:31 PM
How do I import the xml file? Thanks!
Just like you install any modification on vbulletin.
adminCP --> Plugins & Products --> Manage Products
Then at the bottom click [Add/Import Product]
TheSupportForum
01-06-2010, 11:51 PM
their are variables that havent been updated to vbulletin 4 yet and using vb3 variables
this does not work for vb4
for example
[if ($vbulletin->options['bbr_google_active']) is vb3 variables
<vb:if condition="$vboptions['bbr_google_active']">
you will need to run through you codes again
BBR-APBT
01-07-2010, 12:58 AM
their are variables that havent been updated to vbulletin 4 yet and using vb3 variables
this does not work for vb4
for example
[if ($vbulletin->options['bbr_google_active']) is vb3 variables
<vb:if condition="$vboptions['bbr_google_active']">
you will need to run through you codes again
This is coded for vBulletin 4.0. What are you talking about.
There are template conditionals and you use your regular php code in your plugins.
This modification works just fine.
asuffredini
01-07-2010, 11:44 AM
Thanks!
Fusion2
01-08-2010, 02:27 PM
How do i "import xml"?
BBR-APBT
01-08-2010, 02:41 PM
How do i "import xml"?
Just like you install any modification on vbulletin.
adminCP --> Plugins & Products --> Manage Products
Then at the bottom click [Add/Import Product]
TheSupportForum
01-10-2010, 11:45 PM
hi just to let you know
the new code has now changed to
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl (https://ssl/)." : "http://www (http://www/).");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
</script>
please can you update your script to work with this please
BBR-APBT
01-10-2010, 11:59 PM
hi just to let you know
the new code has now changed to
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl (https://ssl/)." : "http://www (http://www/).");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
</script>
please can you update your script to work with this please
That is the code that I was using that every one was having problems with.
This is working if you wish to change it in your copy, your more then welcome to.
Hubsi
01-13-2010, 06:32 PM
Has anyone tested it with 4.0.1?
BBR-APBT
01-13-2010, 06:35 PM
It will work with 4.0.1
This has nothing really fancy to make it break.
This should work for almost any vBulletin version.
HondaATC
01-13-2010, 06:44 PM
Its working for me so far Hubsi.
Hubsi
01-13-2010, 06:47 PM
THX, for the fast answer :)
Bossland
01-18-2010, 03:14 PM
Now i dont think that i am stupid, but:
1) Import the XML file
How the hell can i import an XML, clicked myself through all the Admin Panel and Settings options, and have not found a way to import any XML except the Languages.
Bossland
01-18-2010, 03:20 PM
Nevermind, where vbulletin.com /.de / .org forums have not brougth me any help by searching, google did.
This "Link" was even with the manual not easy to locate
meissenation
01-18-2010, 05:40 PM
Installed thanks!
3DUInc
01-19-2010, 06:58 PM
Thank you :)
ddrake
01-20-2010, 11:39 PM
Thanks! Installed.
meissenation
01-21-2010, 07:02 PM
Is it at all possible that the google analytics would increase bandwidth utilization of the NIC? I installed this on the 18th and my bandwidth utilization has literally doubled immediately. I don't know if it was having Google Analytics on my site that has caused an increase in spider activity or something or if it's just coincidence? I went from averaging 4gb bytes out per day to 10gb bytes out.
Sotonforum.co.u
01-22-2010, 10:51 PM
I don't understand where I add the Tracking Code from Google?
Is it in a template? If so, which one?
Or do I need to edit the xml?
I'm so confused!?
BBR-APBT
01-22-2010, 11:49 PM
I don't understand where I add the Tracking Code from Google?
Is it in a template? If so, which one?
Or do I need to edit the xml?
I'm so confused!?
once you import the xml file, all you need to do is go to your adminCP -> settings -> options-> BBR- Google
and put in your api key number.
You will not receive no more support till you click install.
Sotonforum.co.u
01-23-2010, 04:03 PM
Thankyou for speedy response.
I hadn't marked it as installed yet as I didn't think I had fully installed it. I've marked it now.
I thought I had to add my Google analytics code above the </body> tag of one of the files?
BBR-APBT
01-23-2010, 05:33 PM
Thankyou for speedy response.
I hadn't marked it as installed yet as I didn't think I had fully installed it. I've marked it now.
I thought I had to add my Google analytics code above the </body> tag of one of the files?
No just import the XML file via plugins and products.
They add your key in the settings/options in the adminCP.
This adds the code for you automatically.
Jeremy8
01-25-2010, 03:51 PM
Found a mistake: Remember it takes 24hours for Google to collect data. To make sure it works look at the source code and make sure the google code is displayed just above the </body> tag. I think you meant </head>
Sotonforum.co.u
01-25-2010, 05:30 PM
Thanks for your help BBR-APBT. :)
g10net
01-28-2010, 06:05 PM
When adding or inserting Google Analytics tracking code in vBulletin 4 forums software, either in styles, templates, plugins, products or ad HTML code of newly added advertising function, error message similar to the following may appear when saving the code:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected ‘[‘
in /home/forums/includes/adminfunctions_template.php(4595) : eval()’d code on line 18
This is likely caused by a malformed conditional statement. It’s highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Two options of “Go Back” or “Continue” are available for user selection. And of course, even if user forcefully save and make active or enable the Google Analytics tracking code, the script doesn’t work, and does not appear on web pages.
Google Analytics tracking code or script contains some special characters which does not parse properly. Thus, in order to embed Google Analytics tracking code, the easier way is to wrap the code with <vb:literal> and </vb:literal> tags so that the code is treated literally during page rendering.
For example,
<vb:literal>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">\>
try {
var pageTracker = _gat._getTracker("****");
pageTracker._trackPageview();
} catch(err) {}</script>
</vb:literal>
The Google Analytics tracking code can be placed in footer template, or better suggestion is to place it into ad_footer_end template (inside Ad Location Templates) as to avoid future upgrading issues where templates need to manually merged.
BBR-APBT
01-28-2010, 09:19 PM
When adding or inserting Google Analytics tracking code in vBulletin 4 forums software, either in styles, templates, plugins, products or ad HTML code of newly added advertising function, error message similar to the following may appear when saving the code:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected ?[?
in /home/forums/includes/adminfunctions_template.php(4595) : eval()?d code on line 18
This is likely caused by a malformed conditional statement. It?s highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Two options of ?Go Back? or ?Continue? are available for user selection. And of course, even if user forcefully save and make active or enable the Google Analytics tracking code, the script doesn?t work, and does not appear on web pages.
Google Analytics tracking code or script contains some special characters which does not parse properly. Thus, in order to embed Google Analytics tracking code, the easier way is to wrap the code with <vb:literal> and </vb:literal> tags so that the code is treated literally during page rendering.
For example,
<vb:literal>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">\>
try {
var pageTracker = _gat._getTracker("****");
pageTracker._trackPageview();
} catch(err) {}</script>
</vb:literal>
The Google Analytics tracking code can be placed in footer template, or better suggestion is to place it into ad_footer_end template (inside Ad Location Templates) as to avoid future upgrading issues where templates need to manually merged.
Simple install my plugin. Makes it easier all the way around.
balkanboy
01-28-2010, 10:09 PM
thanks :D
Gnappy
01-30-2010, 03:27 PM
really useful.
Thanks dude!
BBR-APBT
01-31-2010, 07:20 PM
Updated:
Version: 1.0.3 - Rewrite of the code to give the option to use the (Standard Tracking Code) or the (Asynchronous Tracking Code)
Numenorean7
01-31-2010, 07:25 PM
Nice, thank you for the update :)
texasteamplayer
01-31-2010, 07:41 PM
why does it matter? one setting or the other? (standard or asynchronous?)
update necessary?
BBR-APBT
01-31-2010, 07:56 PM
why does it matter? one setting or the other? (standard or asynchronous?)
update necessary?
They are two different codes.
One is above the opening body tag. One is above the closing body tag.
There is no need to update but it is recommended. as I have moved where the code was placed in the head. I figured some people wanted to use the standard code.
The mod used to use the Asynchronous Tracking Code full time. Now you have the option is all. I like the standard code for me personally. I like the code loading at the end of everything for the forums loads and not before.
Michael Tsai
01-31-2010, 10:31 PM
How to Import the XML file?:confused:
BBR-APBT
01-31-2010, 10:49 PM
How to Import the XML file?:confused:
Well you got your answer on vBulletin.com since you are to impatient to give me time to answer you. I am sorry my free support is not fast enough for you.
Your answer awaits you here: http://www.vbulletin.com/forum/showthread.php?339856-How-to-Import-the-XML-file-of-the-BBR-Google-Analytics-Addon
:down:
Michael Tsai
01-31-2010, 11:20 PM
How to ?
4) Input your Google Account ID (UA-xxxxxx-x)
BBR-APBT
01-31-2010, 11:23 PM
How to ?
4) Input your Google Account ID (UA-xxxxxx-x)
Read number 2 of the install instructions. A little bit of reading goes a long way.
Michael Tsai
01-31-2010, 11:38 PM
Read number 2 of the install instructions. A little bit of reading goes a long way.
The number 2 should be:
AdminCP -> Settings -> Options -> BBR Google Analytics
Thanks, anyway!
BBR-APBT
01-31-2010, 11:50 PM
The number 2 should be:
AdminCP -> Settings -> Options -> BBR Google Analytics
Thanks, anyway!
Well I figured if people are going to install a modification, They would know where the options for almost every modification is located.
TheSupportForum
01-31-2010, 11:55 PM
when can u try implent the new analystics code
i've tried it many times as a plugin or php file and still no luck, any chances of trying some time please
BBR-APBT
01-31-2010, 11:59 PM
when can u try implent the new analystics code
i've tried it many times as a plugin or php file and still no luck, any chances of trying some time please
What new code?
This supports both types that Google offers. I updated it today.
Version: 1.0.3 - Rewrite of the code to give the option to use the (Standard Tracking Code) or the (Asynchronous Tracking Code)
daveaite
02-01-2010, 12:01 AM
Love the modification. :) 5 stars.
Michael Tsai
02-01-2010, 12:58 AM
Well I figured if people are going to install a modification, They would know where the options for almost every modification is located.
Well, sometimes they wouldn't.:)
TheSupportForum
02-01-2010, 02:58 AM
thanks for that BBR-APBT
many people have found this very difficult
BBR-APBT
02-01-2010, 03:28 AM
thanks for that BBR-APBT
many people have found this very difficult
Found what difficult?
timhieuxem
02-01-2010, 04:04 AM
For newbies like me :D working with vb4CMS I would like to clarify a few things.
These are just clarification to main directions above.
in admincp do the following to get this to work.
Admincp>plugins & products> manage products> add/import product> Browse to the file you downloaded >
Once that is complete then
Control panel Home > setting> options > in the long list of option go to BBR google analytics and double click it. Put the number from the information you received from the analytics page from google.
it can have this format also UA-xxxxxxx-xx ( where x- is a number)
Hope this helps others. And correct me if I am wrong.
Regards,
fayax
Thank you very much for your kind ... i'm totally new to this... again thanks
TheSupportForum
02-01-2010, 04:09 AM
Found what difficult?
getting the new analystics code to work in the correct place
everytime i tried i got a error with a line error code
BBR-APBT
02-01-2010, 04:43 AM
getting the new analystics code to work in the correct place
everytime i tried i got a error with a line error code
Ahh yes I see it was caused by not using the backslash. I had that error at first as well. Which is why I used the Asynchronous Tracking Code as default. I finally got around to fixing it giving it 24 hours to make sure Google accepted it. So I know it works this time around.
timhieuxem
02-01-2010, 09:32 PM
where can i find </head> ? to insert the google code in... thanks
BBR-APBT
02-01-2010, 09:43 PM
If you install this modification, it will do it for you automatically once you set the settings.
If you do install please click Mark as Installed.
timhieuxem
02-01-2010, 10:14 PM
hi, I'll mark as installed once it's working.... I just import it... I got these code from google when i signup and don't know where to put it in vbulletin:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-");
pageTracker._trackPageview();
} catch(err) {}</script>
BBR-APBT
02-01-2010, 11:03 PM
hi, I'll mark as installed once it's working.... I just import it... I got these code from google when i signup and don't know where to put it in vbulletin:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-");
pageTracker._trackPageview();
} catch(err) {}</script>
You do not need to add any code!!!!!
These are just clarification to main directions above.
in admincp do the following to get this to work.
Admincp>plugins & products> manage products> add/import product> Browse to the file you downloaded >
Once that is complete then
Control panel Home > setting> options > in the long list of option go to BBR google analytics and double click it. Put the number from the information you received from the analytics page from google.
it can have this format also UA-xxxxxxx-xx ( where x- is a number)
Hope this helps others. And correct me if I am wrong.
Regards,
fayax
timhieuxem
02-02-2010, 06:11 PM
hi fayax... i did follow all the steps. This morning I logined my google analytics.. here is the tracking status: Tracking Not Install... The google analytics tracking code has not been detected on your website's home page. For analytics to function you or your web admin must add the code to each page of your website.... what did i do wrong? THanks
BBR-APBT
02-02-2010, 07:42 PM
hi fayax... i did follow all the steps. This morning I logined my google analytics.. here is the tracking status: Tracking Not Install... The google analytics tracking code has not been detected on your website's home page. For analytics to function you or your web admin must add the code to each page of your website.... what did i do wrong? THanks
first off I am not fayax I quoted his post.
Read the instructions really slow. You are not going to the settings for the modification.
Go to your admincp -> settings -> options => in the long list of option go to BBR google analytics and double click it.
Set active to yes. Go to Google Analytics you will see a number like this UA-xxxxxxx-xx ( where x- is a number) Copy that in to the box that is there on the settings page.
I do not know why this is so hard for you. You have not clicked installed. If these instructions are to hard for you I do not know what to say. Installing a modification is not this hard.
patrick6411
02-03-2010, 03:54 PM
Works great!! thanks for the great mod!!
jw00dy
02-04-2010, 05:30 AM
Great Mod! Thank you for you time and effort to make a pretty easy task even easier!
Possible bug. I tried to use the Asynchronous version and it works for the forum pages, but doesn't for the CMS or Blog. If I switch it to the normal mode it works for all three.
I haven't read every post in this mod, so I'm not sure this has been mentioned or not. I'd kinda like to use the Asynchronous since it's supposed to speed things up.
Seatbelt99
02-06-2010, 02:57 AM
appears to be working perfectly for me. Thanks for saving me the trouble of updating all the skins!
I'm on vb 4.0.1 if that matters to anyone else.
sinistergaming
02-07-2010, 05:17 PM
im having an issue.
i installed this and when i tried to put in my google id and clicked submit i get some search page in my admincp window.
the address that is loading is this..
p3p0.com/...... cant catch the rest of it.
but it looks like a search engine page with a windows logo on the top left corner and all the links goto some ip address.
here are some images
this is the page that starts loading when you click submit
https://vborg.vbsupport.ru/attachment.php?attachmentid=111802&stc=1&d=1265570183
here is the page it loads
https://vborg.vbsupport.ru/attachment.php?attachmentid=111803&stc=1&d=1265570183
BBR-APBT
02-07-2010, 06:44 PM
That has nothing to do with this modification I can promise you that.
Try to change another setting with another modification see if the same thing happens.
This was Last Update: 31 Jan 2010, Several others have installed since then No one else complained of this problem.
To me it seems as if your adminCP has been compromised. I suggest you first check your htaccess file in your adminCP directory..
sinistergaming
02-07-2010, 09:30 PM
ok i did a fresh install of vb and it still does it
works fine on another site so,
im contacting the host about it..
thanks for you speedy responce.
AZRainman
02-08-2010, 08:56 AM
Possible bug. I tried to use the Asynchronous version and it works for the forum pages, but doesn't for the CMS or Blog. If I switch it to the normal mode it works for all three.
I haven't read every post in this mod, so I'm not sure this has been mentioned or not. I'd kinda like to use the Asynchronous since it's supposed to speed things up.
Same result here w/asynch: noticed the google code was written to the forum.php, but doesn't appear in the cms content.php .
I pasted the code at the top of the header.css, which parses out just below the body tag in all sections.
Don't forget to wrap it, if you do go the manual route: <vb:literal>googlecode</vb:literal>
Valerio
02-08-2010, 09:23 AM
I don't knwo why but seems don't work on my forum,
meissenation
02-08-2010, 10:27 PM
Just an idea to build on this add-on:
https://vborg.vbsupport.ru/showthread.php?p=1977857#post1977857
BBR-APBT
02-09-2010, 01:54 AM
Just an idea to build on this add-on:
https://vborg.vbsupport.ru/showthread.php?p=1977857#post1977857
I will look at adding that that seems like a pretty good idea. But please give me time as we got a hell of a lot of snow and more coming. 3 foot so far and 2 more on its way tomorrow. Then more Thursday and possible of more next week. There already calling for Monday.
meissenation
02-09-2010, 11:44 AM
Absolutely no problems, BBR. I'm subscribed to your other threads and have been reading the beating that a lot of ungrateful people are giving you and my add-on is a "nice to have" not a necessity :)
Golzarion
02-17-2010, 12:48 PM
Ok. Why don't we use more easy way instead of plugins ... ??
Just using of " Replace viriable " on style :
admincp => all style option => Add New Replacement virable ( at the bottom of the page )
Search for : </body>
Replace it with : " YOUR GOOGLE CODES </body> "
And that's all !! it works for all vBulletin versions !! from 3.0.0 up to vb 4 !!
Why dosen't anybody use this way??
BBR-APBT
02-17-2010, 02:02 PM
Ok. Why don't we use more easy way instead of plugins ... ??
Just using of " Replace viriable " on style :
admincp => all style option => Add New Replacement virable ( at the bottom of the page )
Search for : </body>
Replace it with : " YOUR GOOGLE CODES </body> "
And that's all !! it works for all vBulletin versions !! from 3.0.0 up to vb 4 !!
Why dosen't anybody use this way??
You are more then welcome to do it how ever you like. This does pretty much that, But a little better then what you are talking about. You have to do that for each skin as with this mod you do not. This way you import one product and enter your account ID in a little box. But as I said you can do it how ever you like.
shaie
02-17-2010, 02:10 PM
Thank you .
Golzarion
02-17-2010, 09:03 PM
.... This does pretty much that, But a little better then what you are talking about. You have to do that for each skin as with this mod you do not. This way you import one product and enter your account ID in a little box. ....
Yes,I apricate your sharing of this nice mod ... but I suggested another way .. because upgrading to the different versions of vBulletin sometimes forces people to wait for modificatins update too....
:)
BBR-APBT
02-17-2010, 10:42 PM
Yes,I apricate your sharing of this nice mod ... but I suggested another way .. because upgrading to the different versions of vBulletin sometimes forces people to wait for modificatins update too....
:)
This will work with out needing a update. The tags this uses will always be there.
I haven't seen this mentioned yet, and I thought it would be a neat addition: GA supports custom variables, and I would love to have this product add the username and usergroup as custom variables.
pageTracker._setCustomVar(
1, // Custom slot 1
"UserName", // Custom slot 1 name
"insert username here", // Have vB insert the username
1 // Visitor-level data - doesn't change
);
pageTracker._setCustomVar(
2, // Custom slot 2
"UserGroup", // Custom slot 2 name
"user's group title", // have vB insert the user's primary usergroup title
2 // Session level data (can change over time)
);
I played with this a bit last night, but I'm not enough of a vB hacker to get it functioning well for the usergroup titles. Lack of sleep my have also played a hand ...
DesignWerks
02-20-2010, 05:23 PM
Thanks!
gr8dude
02-21-2010, 02:35 PM
Tested on:
4.0.1
I am sure this will work on just about any version vBulletin.
It also works on 3.6.x, but there is a problem - the tracking code is not included in the page when the forum is viewed in archive mode.
Is this expected behaviour?
Michael Tsai
02-24-2010, 12:42 PM
Installed and works fine, thanks!
motorola
02-24-2010, 03:54 PM
Installed ! Ty
Michael Tsai
02-25-2010, 12:31 PM
Worked fine till now, thanks again!:up::up::up:
gr8dude
02-25-2010, 01:40 PM
Since I have no feedback on this, I'm going to tell you what I did.
I edited /archive/index.php and added the tracking code for Google Analytics there myself. It works.
mavigul
03-11-2010, 04:53 AM
thanks work
VonDoom
03-25-2010, 11:52 AM
Thanks again installed on every single forum i own
Professional2
03-28-2010, 05:09 AM
installed.
majazi
03-30-2010, 06:45 AM
5 Star
Rating: Thread Rating: 58 votes, 4.57 average.
dmart
03-31-2010, 06:57 PM
Thanks for the Mod all seems to be working fine so far
digitalnorte
04-07-2010, 10:16 PM
great!! TKS!
KProjects
04-07-2010, 11:25 PM
Works great! Thanks!
http://www.glockforums.org
marshal_ramdev
04-21-2010, 04:42 AM
thanks ...
Juggernaut
04-21-2010, 05:03 AM
Installed, thank you :D
zaine68
05-05-2010, 10:29 AM
Installed so fingers crossed. Thanks!
Xencored
05-06-2010, 04:28 PM
Thanks no idea why this is not built in but anyway cheers !!
simba6666
05-12-2010, 08:23 AM
Thank you for this
Webbstre
06-11-2010, 11:35 PM
Thank you for this
KURTZ
06-20-2010, 10:03 AM
just a request: can you add an option for the shapshots? :p it's the same thing than the analytics ... :)
cfish
06-21-2010, 05:50 PM
This is an excellent mod. But of course I have a further request. It would be even better if it had an option to include additional code. For example, I need to add both Google Analytics and Quantcast code to my pages.
KURTZ
06-22-2010, 07:39 AM
This is an excellent mod. But of course I have a further request. It would be even better if it had an option to include additional code. For example, I need to add both Google Analytics and Quantcast code to my pages.
+1 absolutely! that's what i need! :p
ArchAngelz
06-22-2010, 11:15 AM
Hi,
I've imported the product, entered the UA Code, set Google Analytics to Active, set asynchonous to Yes and Standard to No.
However, checking back in Google Analytics itself under "Check Status" still shows the "Tracking Not Installed" message.
Do I need to wait 24 hours before the tracking not installed will be updated, or does the 24 hour period just refer to collecting of data?
Is there a way to verify that the code is properly inserted in my pages post installation of your product?
Thanks!
EDIT: Oh nevermind, the status suddenly changed to "Waiting for Data", suggesting that this product worked :)
ArchAngelz
06-22-2010, 04:17 PM
Just one question, does this only insert the code for forum pages, or does it also work for cms articles?
fluentdesigns
06-23-2010, 03:43 AM
Wondering if anyone has received a weird calculation with this software. After I installed this on my forum I had an explosion of traffic from when I just installed the google code in my header. I have removed the code from my header but maybe that was the wrong way I was doing it and this is the correct. I attached a screen shot so you can see what im talking about.
sergioloporto
06-29-2010, 12:27 PM
Hello,
I can see that it puts the code only in the forum pages... is there any option which puts the code in CMS and BLOGS as well?
If not, will there be an update with this feature?
I would appreciate a reply. Btw thank you for this plugin, I like it!!
Zylantex
07-06-2010, 06:06 AM
Installed. Thanks for a great mod.
fluentdesigns
07-08-2010, 04:07 AM
ya this mod is not working at all. Removed and uninstalled. Its reporting my site getting 1 visitor a day...
Zylantex
07-08-2010, 06:11 AM
You must have done something wrong. It worked first time for me and I'm on 3.8.4. How long did you wait after installing it before looking for reports? There are no meaningful stats for at least 24 hours, give it another day or two.
ArchAngelz
07-20-2010, 03:01 AM
I've got the same experience too; wonder if its possible to also put the code in CMS at least.
Hello,
I can see that it puts the code only in the forum pages... is there any option which puts the code in CMS and BLOGS as well?
If not, will there be an update with this feature?
I would appreciate a reply. Btw thank you for this plugin, I like it!!
bond010007
07-20-2010, 02:33 PM
great work thank you so much installed
kurt@triffetdes
07-20-2010, 08:16 PM
Newbie here- How exactly do I "import" the xml file so that it shows up in my ACP? VB 4
TIA
bandare
07-20-2010, 09:55 PM
Newbie here- How exactly do I "import" the xml file so that it shows up in my ACP? VB 4
TIA
at bottom of the admin cp is "plugins and products". Open that and click manage products, then at bottom of there go to add/import product.
at top of new screen you click on choose file and find the xml for this product and then import :)
Hope that helps...
kurt@triffetdes
07-22-2010, 05:00 PM
Perfect, thanks!
ArchAngelz
07-23-2010, 07:08 AM
Has anyone been successful having Google Analytics on BOTH their CMS and Forums using this mod?
TheBish
07-23-2010, 12:02 PM
Has anyone been successful having Google Analytics on BOTH their CMS and Forums using this mod?
Yes
ArchAngelz
07-23-2010, 02:29 PM
Would you like to share how to do it as this mod appears to only insert code in the forum and not the CMS.
Yes
ShawneyJ
07-27-2010, 02:24 AM
nice thx.
WATRD
08-11-2010, 02:25 PM
Has anyone been successful having Google Analytics on BOTH their CMS and Forums using this mod?
If you use the standard tracking code, not the asynchronous, it seems to work in the CMS and the forum. If you use the asynchronous, it seems to only work in the forum. At least that is what I see.
caciocode
08-26-2010, 03:59 PM
Installed. Here (http://www.sheersoftware.com) Thanks.
Not sure how it works though. Will just providing my Google Account ID make it work, or will I have to validate it with Google
TeknoSounds
08-27-2010, 04:39 AM
Installed. Here (http://www.sheersoftware.com) Thanks.
Not sure how it works though. Will just providing my Google Account ID make it work, or will I have to validate it with Google
You'll need to set up your google account with google analytics
http://www.google.com/analytics/
GardenPartyTeas
09-01-2010, 07:06 PM
For newbies like me :D working with vb4CMS I would like to clarify a few things.
These are just clarification to main directions above.
in admincp do the following to get this to work.
Admincp>plugins & products> manage products> add/import product> Browse to the file you downloaded >
Once that is complete then
Control panel Home > setting> options > in the long list of option go to BBR google analytics and double click it. Put the number from the information you received from the analytics page from google.
it can have this format also UA-xxxxxxx-xx ( where x- is a number)
Hope this helps others. And correct me if I am wrong.
Regards,
fayax
Thank you very much! I too am new and I could not figure out where to enter my number. This was very helpful.
Reeve of shinra
09-11-2010, 07:39 PM
a) I noticed that using the "before body" option places the GA code above the <body> tag but below the </head> tag. I'm not sure if that causes issues for GA. Google says to place it before the </head> tag.
b) I also noticed that Google may have changed their javascript code.
I hope BBR doesn't mind but here are the 2 edits I made to correct this.
admincp -> products and plugins -> plugin manager
Look for "BBR Google Analytics Addon" and click edit
Look for:
$BBR_find = '<body>';
and replace that with:
$BBR_find = '</head>';
Look for:
(document.getElementsByTagName(\'head\')[0] || document.getElementsByTagName(\'body\')[0]).appendChild(ga);
and replace that with:
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
Thanks
pretty.witch
09-26-2010, 03:19 PM
Thanks!
Fra VB
10-12-2010, 04:12 PM
thanks reeve
but i found two different pages in google help
one invite us to put above </head>, another one above </body>
:mad::confused:
speedracer68
11-18-2010, 02:09 AM
I think I have done everything right and after several days it's not working.
On my VB 3+ site I just put the code or text in I think the footer or where ever it was supposed to go and it worked great. The day I upgraded to VB4 it stopped working. I installed this, entered my account number and nothing. So, where to I start diagnosing?
mgurain
11-20-2010, 10:24 AM
Hi,
Is the code snippet up-to-date ? What if google changes the code ?
Thanks,,
speedracer68
11-21-2010, 03:19 AM
I think I have done everything right and after several days it's not working.
On my VB 3+ site I just put the code or text in I think the footer or where ever it was supposed to go and it worked great. The day I upgraded to VB4 it stopped working. I installed this, entered my account number and nothing. So, where to I start diagnosing?
My bad. I was missing a -1 in my code.
Doh!
marcopolo
12-06-2010, 08:57 AM
We need to add the standard and advanced code, is this possible?
triff
12-29-2010, 07:19 AM
Downloaded the product, installed it, added my account number and activated, but nothings happening. I'm running a vB 4.1 board. Will I also have to add the code somewhere, or should the add-on do this automatically?
SGL.
EDIT: Sorry, just wasn't patient enough. Working now! :up:
thunderclap82
01-12-2011, 06:45 PM
Is there a way to add multiple account ids? I'm one of five admins on the site, and we'd all like access to the analytic info.
TeknoSounds
01-13-2011, 04:49 AM
Can't you add more than one owner within Google Webmaster Tools?
thunderclap82
01-13-2011, 01:33 PM
Can't you add more than one owner within Google Webmaster Tools?
Mmm... I'm searching through and not finding any option. If there is one then I'm missing it.
TeknoSounds
01-13-2011, 02:16 PM
go to google analytics, on the first page where you select your site, just under it it'll say User Manager, you can add users there.
thunderclap82
01-13-2011, 03:04 PM
go to google analytics, on the first page where you select your site, just under it it'll say User Manager, you can add users there.
Doh! Awesome. Thank you!
polle
01-15-2011, 06:04 PM
Hi.
With VB 4.1.1 theres no options as the screenshot shows.
Is it compatible or I am missing something ?
Thanks.
polle
01-15-2011, 06:39 PM
Thanks for sharing this. :)
For newbies like me :D working with vb4CMS I would like to clarify a few things.
These are just clarification to main directions above.
in admincp do the following to get this to work.
Admincp>plugins & products> manage products> add/import product> Browse to the file you downloaded >
Once that is complete then
Control panel Home > setting> options > in the long list of option go to BBR google analytics and double click it. Put the number from the information you received from the analytics page from google.
it can have this format also UA-xxxxxxx-xx ( where x- is a number)
Hope this helps others. And correct me if I am wrong.
Regards,
fayax
polle
01-15-2011, 06:41 PM
One question.
The code needs to be before the closing head </head> and not before the opening body <body>.
How to fix that ?
Thanks.
polle
01-19-2011, 03:54 PM
Anyone ?
TeknoSounds
01-20-2011, 02:46 AM
It works fine on mine...according to the page source it shows up just before the end of the header section.
Did you go into the options of the plugin and change them to the header and not the footer?
polle
01-20-2011, 07:45 AM
Yes, I have "Add code just above the opening body tag" selected as yes, but the code is after the closing </head> and not before.
Any idea ?
TeknoSounds
01-20-2011, 10:40 AM
Hmm I moved mine up and I'm now getting an error on all my pages according to firebug:
script is not defined Line 24
Line 24 : var s = document.getElementsByTagName(script)[0]; s.parentNode.insertBefore(ga, s);
TeknoSounds
01-20-2011, 10:46 AM
Okay, fixed the error...
In Plugin Manager -> BBR Google Analytics -> Edit
Find:
var s = document.getElementsByTagName(script)[0]; s.parentNode.insertBefore(ga, s);
Replace with:
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
note the \' around script
TeknoSounds
01-20-2011, 10:48 AM
Yes, I have "Add code just above the opening body tag" selected as yes, but the code is after the closing </head> and not before.
Any idea ?
Link to your site?
Also visit mine, do a page source, see if you're seeing it like on mine.
btw, did you upgrade it from a previous version? or a fresh install?
polle
01-20-2011, 11:11 AM
Actually you don't have any google analytics in your forum.
See it here (http://www.maclatino.com/foros/), is a fresh install of forum and plugin.
Thanks.
TeknoSounds
01-21-2011, 06:16 AM
Actually you don't have any google analytics in your forum.
See it here (http://www.maclatino.com/foros/), is a fresh install of forum and plugin.
Thanks.
Oh man! thanks for pointing that out! I fubar'd the escape characters and screwed it up :p
Check again and it should now be showing.
Hmm you're using a different version or something compared to mine...the code that renders on yours is different.
Even though I have 1.0.3 my code in mine is different. I'm going to verify the script on googles site for async.
The good news is I also found where the error is :) Checking real fast to make sure thats the right code, then will post up the fix.
TeknoSounds
01-21-2011, 06:24 AM
Okay to fix the <body> issue:
AdminCP -> Plugin Manager -> Edit BBR Google Analytics
Find
$BBR_find='<body>';
and change it to
$BBR_find='</head>';
What I'm worried about is the change between the latest file on here and my version...the function difference is this:
Mine & on Google's site
(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);
})();
versus whats in the latest file on here:
(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);
})();
Note the last line there....
polle
01-22-2011, 07:58 AM
Changing body to head fixed it.
About the code difference I have no idea why, in GA you get different codes ?
Thanks for the fix.
Crotan
02-21-2011, 11:24 PM
Okay to fix the <body> issue:
AdminCP -> Plugin Manager -> Edit BBR Google Analytics
Find
$BBR_find='<body>';
and change it to
$BBR_find='</head>';
What I'm worried about is the change between the latest file on here and my version...the function difference is this:
Mine & on Google's site
(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);
})();
versus whats in the latest file on here:
(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);
})();
Note the last line there....
Do this still work? Or did 4.1.2 break it and thus make the developer flee to IPboard?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.