Google Analytics Javascript code to insert on VB5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mito22
    Member
    • Dec 2006
    • 92
    • 3.6.x

    [Bug / Issue] Google Analytics Javascript code to insert on VB5

    I've this code...from google.... but appears don't work....

    I must use all? Or wich selected parts?

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-3"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-XXXXXXXXX-3');
    </script>



    Thanks for the help

    (FOR GA, it's only to put this code in admin cp or I must to modify CSS or page's html or info? )
    Last edited by mito22; Fri 16 Feb '18, 12:02am.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73981

    #2
    Update to vBulletin 5.4.0 and you must use the entire code as provided by Google in your post. You only need to put it in the appropriate setting in the AdminCP. vBulletin will insert it into the page footer of every page.
    Translations provided by Google.

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

    Comment

    • mito22
      Member
      • Dec 2006
      • 92
      • 3.6.x

      #3
      Yes wayne...... And on 5.3.4 doesen't work?

      Obiuvsly here u mean?

      Click image for larger version

Name:	ga-vb5.jpg
Views:	223
Size:	307.6 KB
ID:	4386570
      Attached Files

      Comment

      • Mrs.T
        Senior Member
        • Nov 2007
        • 1210
        • 6.0.X

        #4
        No, different code, forget that .....sorry.

        Comment

        • mito22
          Member
          • Dec 2006
          • 92
          • 3.6.x

          #5
          Originally posted by MrsTiggywinkle
          No, different code, forget that .....sorry.
          Also on 5.3.4 the Google Analitics function doesen't work????

          Comment


          • Mrs.T
            Mrs.T commented
            Editing a comment
            Yes it works but I quoted the instructions which are on the left of where you enter the code, then realised your code is different, so guessed I'd made a mistake.


            The instructions by our box read:
            If code you got starts with something like "<script type="text/javascript> and ends with "</script>", please DO NOT include those.
        • Mark.B
          vBulletin Support
          • Feb 2004
          • 24286
          • 6.0.X

          #6
          Google changed the way the code works. We updated vBulletin 5.4.0 to reflect this.

          You can work around it in 5.3.4 like this:

          A previous admin had tried to setup Analytics in the past, and the code was still in there. I created my own Analytics account and want to install it myself. I have a couple of questions. I have read people
          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

          Related Topics

          Collapse

          Working...