How do I add Google Analytics to my website?

How do I add Google Analytics to my website?

NOTE: If you have the SoCast player, you will need to add it to your player settings as well. Click on the link below this text with the tracing code copied, and you can follow the instructions from Step 5.

Adding Google Analytics code to your player

To do this you need to send us your Google Analytics tracking code.  This is done by following these steps:

  1. Create a Google Analytics Account:
  2. Set-up a Web Property:
  3. Create your Tracking Code:
  4. Place the tracking code in as the last item in the Custom Header HTML section.  It should look similar to this sample code below (but with a different UA ID):


(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
})(window,document,'script','// ','ga');

ga('create', 'UA-1234567-12', 'auto');
ga('send', 'pageview');



  • Please allow 24 hours for your website analytics to start appearing; if no results are appearing after that time it's recommended you:
    • Confirm the full tracking code has been copied and pasted
    • The UA ID matches the one that's associated with your website
    • If neither of these steps helps, please contact SoCast Support
  • When copying and pasting into the Customer Header HTML be careful not to interfere with any other code you've placed in this area

    • Related Articles

    • How Do I Add Google Analytics Event Tracking To My Website?

      This Article Is For: All users who have the 'Manage Website Settings' permission This is applicable to: All Themes For additional information on how to use GA event tracking, see this article:  ...
    • How Do I Use The Page Analytics (By Google) Chrome Browser Extension ?

      This Article Is For: Users with access to a Google Analytics ( GA) account. Notes: For more information on the Page Analytics Chrome Extension click here: For all other Google Analytics ...
    • Website Settings General

      This Article Is For: All users who have the 'Manage Website Settings' permission This is applicable to: all SoCast Themes Website Settings are broken down into the following modules: Website Vitals How Do I Enable Accelerated Mobile Pages (AMP) For ...
    • How Do I Track Individual URL's On My Website Using

      This Article Is For: Users with a account Visit to create an account is a free service with a limit of up to 10,000 Total Short URLs (bitlinks) and up to 500 Branded Bitlinks and a 30 day tracking view. ...
    • Website Settings

      In this section you will find all Knowledge Base articles related to Website Settings (i.e theme, sidebar customization, headings customization, advertising settings, and website legal) As well as, best practices, tips and inspiration. Website ...