Announcement

Collapse
No announcement yet.

Google Analytics Javascript code to insert on VB5

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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? )

    #2
    The GA option in AdminCP requires no <script></script> tags and as such, it will only work with regular GA code. You are using Google Tag Manager which requires script src, thus you cannot use this GA option.

    Alternative solution is to paste the Google Tag Manager code in head_include template in AdminCP Style Manager. For vBCloud owners, you can use the Google or Bing Ownership Verification Tags in AdminCP Search Engine Tools.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      MH.....


      With 5.4.0 this issue is solved..... ELEMENTARY QUESTION.... if I'll upgrade from 5.3.4 to 5.4.0 I'll go to lost anything of my mod and hooks?

      Comment


      • glennrocksvb
        glennrocksvb commented
        Editing a comment
        For products and hooks, no. But if you have custom changes to vBulletin PHP and JS files, you would lose them and have ro re-apply them. For custom changes to vBulletin templates other than css_additional and head_include, you might have merge conflicts after upgrading that you have to resolve.

    Users Viewing This Page

    Collapse

    There is 1 user viewing this forum topic.

    • Guest Guest

    Latest Posts

    Collapse

    Working...
    X
    Searching...Please wait.
    An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

    Please push the back button and reload the previous window.'
    An unexpected error was returned: 'Your submission could not be processed because the token has expired.

    Please push the back button and reload the previous window.'
    An internal error has occurred and the module cannot be displayed.
    There are no results that meet this criteria.
    Search Result for "|||"