Google Analytics tracking

.google('googleanalytics')


Description: Simple way of adding Google Analytics to your website.


Example:

<!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>googleanalytics demo</title>
      <script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
    </head>
    <body>
        
        <script>
            
            bitsyCode.ready(function(){ // Check for docume;nt ready
                bitsyCode.google('googleanalytics', 'UA-xxxxxxxx-x');
            })
            
        </script>
     
    </body>
    </html>
  • Usage

    • How to use:
      bitsyCode.ready(function(){ // Check for document ready        
              bitsyCode.google('googleanalytics', 'UA-xxxxxxxx-x');
      })
  • Options

    • What options are there:
      You need to specify your Google Universal Analytics(UA) ID.
  • Returns

    • Returns: No return type

      This method does not need to return any type.

Share