Announcement

Collapse
No announcement yet.

how add google analytics without <script>

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

  • how add google analytics without <script>

    welcome
    How to add Google analytics to the forum without the opening and closing <script>

    This is the Java code for Google
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-149478561-1"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-149478561-1');

  • #2
    You should be able to use that code as is in vBulletin 5.4.0 and higher.

    http://tracker.vbulletin.com/browse/VBV-17799
    Last edited by Wayne Luke; Wed 14th Mar '18, 11:08am.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      Originally posted by Wayne Luke View Post
      You should be able to use that code as is in vBulletin 5.4.0 and higher.
      Does it mean that it should not be deleted opening and closing <script>

      *** Click image for larger version

Name:	Untitled.png
Views:	15
Size:	17.1 KB
ID:	4387965

      Comment


      • #4
        The description is wrong.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API - Full / Mobile
        Vote for your favorite feature requests and the bugs you want to see fixed.

        Comment


        • #5
          Originally posted by Wayne Luke View Post
          The description is wrong.
          Thank you dear

          Comment

          Related Topics

          Collapse

          Working...
          X