Google Analytics

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fatal1980
    Member
    • Jul 2006
    • 63

    #16
    I notice it works perfect in the footer, however that doesnt include the archive? How can i track the archive as well?

    Comment

    • Kadence
      Member
      • Jun 2005
      • 63
      • 3.6.x

      #17
      How can Analytics be added via Plugin?

      I'm trying to do it with a Plugin like: $footer .= [analytics code], or $output .= [analytics code], but I can't figure out which hook to use in order to have the code show up before the </body> tag.

      Comment

      • julia27
        New Member
        • Mar 2006
        • 29

        #18
        Can't find body

        I followed the instructions given here, placed my code at the very bottom of the footer, since i couldn't find body, but google still says it's not installed, what am i doing wrong?

        Comment

        • Elyk
          Senior Member
          • Sep 2003
          • 292
          • 4.2.x

          #19
          Same question I have, have no body or code tags in my footer template.

          Never mind, found the spot for it.
          Last edited by Elyk; Sat 27 Jan '07, 8:39pm. Reason: Found the solution

          Comment

          • jmvb
            Senior Member
            • Jan 2005
            • 259
            • 3.0.6

            #20
            Originally posted by Elyk
            Same question I have, have no body or code tags in my footer template.

            Never mind, found the spot for it.
            care to share where?

            Comment

            • rezapci
              Senior Member
              • May 2004
              • 146
              • 3.6.x

              #21
              Originally posted by jmvb
              care to share where?
              In the bottom of footer!
              AlShiaTalk Where Experience Meets Innovation

              Comment

              • jmvb
                Senior Member
                • Jan 2005
                • 259
                • 3.0.6

                #22
                Originally posted by rezapci
                In the bottom of footer!
                Julia already said that. There is no body tag.

                Comment

                • squidstir
                  New Member
                  • Sep 2006
                  • 18

                  #23
                  Thanks a lot Colin F!

                  Comment

                  • wolf32
                    Member
                    • Jan 2007
                    • 68
                    • 3.6.x

                    #24
                    Originally posted by Colin F
                    Try adding it all the way at the bottom.
                    That's what I did!

                    Comment

                    • Bob Isaac
                      Senior Member
                      • Dec 2005
                      • 771
                      • 3.8.x

                      #25
                      Can anyone throw any light on what to do for the archives, as putting the code in the footer template appears not to work for archives.

                      There is a thread over at vb.org that suggests installing it as a plugin, but does that also mean removing it from the footer.

                      Bob

                      Comment

                      • peterska2
                        Senior Member
                        • Oct 2003
                        • 8869
                        • 3.7.x

                        #26
                        You will need to ask the modification author via their support thread.

                        Comment

                        • nyunyu
                          New Member
                          • Dec 2004
                          • 22
                          • 3.6.x

                          #27
                          If I put the code inside footer template, do I need to put </body></html> as well??

                          Tried to insert it inside footer but google doesnt found it...

                          Comment

                          • ArboristSite
                            Member
                            • Dec 2001
                            • 40

                            #28
                            I have tried several times. It still shows that it isn't working in google. Can somebody look at the code and tell me what I might have wrong?
                            Thank you,
                            Darin

                            <p align="center"><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                            <input type="hidden" name="cmd" value="_donations">
                            <input type="hidden" name="business" value="[email protected]">
                            <input type="hidden" name="item_name" value="Donate to Stem Cell Pioneers">
                            <input type="hidden" name="no_shipping" value="0">
                            <input type="hidden" name="return" value="http://www.stemcellpioneers.com">
                            <input type="hidden" name="cancel_return" value="http://www.stemcellpioneers.com/cancel">
                            <input type="hidden" name="no_note" value="1">
                            <input type="hidden" name="currency_code" value="USD">
                            <input type="hidden" name="tax" value="0">
                            <input type="hidden" name="lc" value="US">
                            <input type="hidden" name="bn" value="PP-DonationsBF">
                            <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
                            <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
                            </form>
                            <br />
                            <div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
                            <br />

                            $spacer_close
                            <!-- /content area table -->

                            <form action="$vboptions[forumhome].php" method="get">

                            <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
                            <tr>
                            <if condition="$show['quickchooser']">
                            <td class="tfoot">
                            <select name="styleid" onchange="switch_id(this, 'style')">
                            <optgroup label="$vbphrase[quick_style_chooser]">
                            $quickchooserbits
                            </optgroup>
                            </select>
                            </td>
                            </if>
                            <if condition="$show['languagechooser']">
                            <td class="tfoot">
                            <select name="langid" onchange="switch_id(this, 'lang')">
                            <optgroup label="$vbphrase[quick_language_chooser]">
                            $languagechooserbits
                            </optgroup>
                            </select>
                            </td>
                            </if>
                            <td class="tfoot" align="$stylevar[right]" width="100%">
                            <div class="smallfont">
                            <strong>
                            <if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
                            <if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
                            <if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
                            <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
                            <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
                            <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
                            <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
                            </strong>
                            </div>
                            </td>
                            </tr>
                            </table>


                            <br />

                            <div align="center">
                            <div class="smallfont" align="center">
                            <!-- Do not remove this copyright notice -->
                            $vbphrase[powered_by_vbulletin]
                            <!-- Do not remove this copyright notice -->
                            </div>

                            <div class="smallfont" align="center">
                            <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
                            $cronimage
                            <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

                            $vboptions[copyrighttext]
                            </div>
                            </div>

                            </form>

                            <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="$session[sessionhash]" />
                            <input type="hidden" name="do" value="dst" />
                            </form>
                            <script type="text/javascript">
                            <!--
                            var tzOffset = $bbuserinfo[timezoneoffset] + $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 -->

                            </if>
                            <script type="text/javascript">
                            <!--
                            // Main vBulletin Javascript Initialization
                            vBulletin_init();
                            //-->
                            </script>
                            <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-2822737-4");
                            pageTracker._trackPageview();
                            } catch(err) {}</script>

                            I put this in the footer as recommend by you but for what ever reason it shows a not working symbol.

                            Comment

                            • kabam
                              New Member
                              • Apr 2009
                              • 1
                              • 3.8.x

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

                              Comment

                              • ArboristSite
                                Member
                                • Dec 2001
                                • 40

                                #30
                                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.

                                Comment

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