How do I add Google Analytics tracking code to VB5?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hubbers
    New Member
    • Nov 2011
    • 16
    • 4.1.x

    How do I add Google Analytics tracking code to VB5?

    How do I add Google Analytics tracking code to VB5?
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24358
    • 5.7.X

    #2
    Edit the footer template and add the code at the bottom of the template between the following tags and just before the closing </body> tag:

    <vb:literal>
    Analytics code here
    </vb:literal>
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74132

      #3
      If you don't want to edit the existing template you can do this...

      1) Create a new template called footer_google_analytics.

      2) Paste your Google code into it. Save the template.

      3) Go to Products and Hooks in the Admin CP. Click "Add New Hook".

      4) Select "footer_copyright" as the Hook Location.

      5) Give it the title, Google Analytics

      6) For the template name enter footer_google_analytics

      7) Save the hook.
      Last edited by Wayne Luke; Mon 7 Jan '13, 10:16am.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24287
        • 6.0.X

        #4
        Got to love these new, better ways of adding stuff in vB5.
        Takes it to a whole new level...
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • hubbers
          New Member
          • Nov 2011
          • 16
          • 4.1.x

          #5
          Where do you edit the footer template in VB5?

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 74132

            #6
            Styles & Templates -> Style Manager.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

            • hubbers
              New Member
              • Nov 2011
              • 16
              • 4.1.x

              #7
              Thanks

              Comment

              • bollie
                Senior Member
                • Jun 2006
                • 303
                • 4.2.x

                #8
                Dutch Online Computer hulp - www.pctuts.be

                Comment

                • z-at-ox
                  Member
                  • May 2013
                  • 68

                  #9
                  Originally posted by Trevor Hannant
                  Edit the footer template and add the code at the bottom of the template between the following tags and just before the closing </body> tag:



                  <vb:literal>

                  Analytics code here

                  </vb:literal>


                  I can't find <vb:literal>, have something changed? It is in "footer" right?

                  Comment

                  • Wayne Luke
                    vBulletin Technical Support Lead
                    • Aug 2000
                    • 74132

                    #10
                    <vb:literal> is something you add.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API

                    Comment

                    • xgiovio
                      New Member
                      • May 2011
                      • 14
                      • 5.0.X

                      #11
                      thank you for the hook tip

                      Comment

                      Related Topics

                      Collapse

                      Working...