Announcement

Collapse
No announcement yet.

Google Analytics

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • John Miller
    replied
    Originally posted by GRE View Post
    And be sure when -and if- you change the default style, to copy the code and paste it to the new footer template! I forgot it and now some days appear with no visitors!
    Hi Gree,

    The same thing is happening with my google analytics account, I can see no visitor from past 1 month. How I can change it any idea ? It's showing me complete blank in my Analytics acccount. What should I do ? Help me..

    Regards
    IndiaGarage

    Leave a comment:


  • GRE
    replied
    And be sure when -and if- you change the default style, to copy the code and paste it to the new footer template! I forgot it and now some days appear with no visitors!

    Leave a comment:


  • Trevor Hannant
    replied
    Originally posted by flegul View Post
    Adding Analytics to vBulletin 4.0

    • Log in to your VB admin control panal
    • Choose Styles & Templates from the left menu
    • Click Styles Manager
    • Select the drop down menu for your active style and choose Edit Templates under Template Options. (second listing down)
    • The page will change but just hit GO next to the dropdown.
    • 3 boxes of code appear, the third is the Footer
    • Scroll all the way down to the end of the code in the box, and put your cursor in the box ready.
    • Type <vb:literal>
    • Paste your Google Analytics Code
    • Type </vb:literal>
    • Scroll to the bottom of the page and hit Save!


    Why the <vb:literal>? Its because VB uses a bastardised version of the smarty engine. Without those tags the engine freaks out when interpreting javascript and other codes.


    Taken from
    http://justbliss.wordpress.com/2010/...n-vbulletin-4/


    Works fine for me .


    This is the 3.6 orum - your solution is for vB4...

    Leave a comment:


  • flegul
    replied
    Adding Analytics to vBulletin 4.0
    • Log in to your VB admin control panal
    • Choose Styles & Templates from the left menu
    • Click Styles Manager
    • Select the drop down menu for your active style and choose Edit Templates under Template Options. (second listing down)
    • The page will change but just hit GO next to the dropdown.
    • 3 boxes of code appear, the third is the Footer
    • Scroll all the way down to the end of the code in the box, and put your cursor in the box ready.
    • Type <vb:literal>
    • Paste your Google Analytics Code
    • Type </vb:literal>
    • Scroll to the bottom of the page and hit Save!

    Why the <vb:literal>? Its because VB uses a bastardised version of the smarty engine. Without those tags the engine freaks out when interpreting javascript and other codes.


    Taken from
    http://justbliss.wordpress.com/2010/...n-vbulletin-4/


    Works fine for me .


    Leave a comment:


  • Jorgemen
    replied
    Nice, but now I have other problem, I guess is a problem: I added the google analytics in footer template, but I have lines of code over </body> I guess this is a problem for google analytics, I do not how delete that,

    Please help me....

    Code:
    ____________________________________________________________
    <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-5885100-3");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    <script type="text/javascript"><!--

    window.orig_onload = window.onload;
    window.onload = function() {
    if (is_ie || is_moz) { var cpost=document.location.hash;if(cpost){ if(cobj = fetch_object(cpost.substring(1,cpost.length)))cobj.scrollIntoView(true); }}

    if(typeof window.orig_onload == "function") window.orig_onload();
    }

    //-->
    </script>
    </body>
    </html>
    ____________________________________________________________

    Leave a comment:


  • Sportsguy
    replied
    What is the absolute path to the footer template in CMS? I can't find it...

    Leave a comment:


  • Wannakno
    replied
    I get this error when try to put my google analytics code @ top of headinclude or bottom of footer:

    Parse error: syntax error, unexpected '[' in /home/crack/public_html/forums/includes/class_core.php(4007) : eval()'d code on line 6

    Leave a comment:


  • sunkapoor22
    replied
    Please see new post and reply here instead:

    http://www.vbulletin.com/forum/showt...33#post1900033

    Leave a comment:


  • Trevor Hannant
    replied
    Originally posted by sunkapoor22 View Post
    <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-12059730-4");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    I added the above code to the VERY END in the footer template, and I get the following error by vbulletin when I save the file:



    Should I just ignore this or change what I did? Please advice.

    Thanks!
    You should really start your own thread especially as this one's over 3 years old!

    What version of vB are you running exactly?

    Leave a comment:


  • s0lidgr0und
    replied
    Gives stats for your site.

    Leave a comment:


  • Merjawy
    replied
    I just landed from Mars

    what good does this do for the site if ya'll don't mind?

    EDIT: I went to the site to sign up and come to find out that I already have an account.. must've been years ago lol
    Last edited by Merjawy; Sat 9th Jan '10, 9:38am.

    Leave a comment:


  • sunkapoor22
    replied
    <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-12059730-4");
    pageTracker._trackPageview();
    } catch(err) {}</script>

    I added the above code to the VERY END in the footer template, and I get the following error by vbulletin when I save the file:

    The following error occurred when attempting to evaluate this template:

    Parse error: syntax error, unexpected '[' in /home6/intraspa/public_html/includes/adminfunctions_template.php(4597) : eval()'d code on line 131

    This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
    Should I just ignore this or change what I did? Please advice.

    Thanks!

    Leave a comment:


  • forexjoker
    replied
    +1 works fine in the footer.

    Leave a comment:


  • ArboristSite
    replied
    Thanks for the reply. My problem was I just didn't wait long enough to see if it worked or not. It was done right but I was just too impatient.

    Leave a comment:


  • kabam
    replied
    I put the code (provided by Google) just above the </body> tag in both the FORUMHOME and FORUMDISPLAY templates.

    Leave a comment:

widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X