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: https://support.google.com/analytics/answer/1008015?hl=en
  2. Set-up a Web Property: https://support.google.com/analytics/answer/1042508
  3. Create your Tracking Code: https://support.google.com/analytics/answer/1008080?hl=en
  4. Place the tracking code in http://admin.socastsrm.com/account/website 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):

<script>

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','// www.google-analytics.com/analytics.js ','ga');

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

</script>

NOTES:

  • 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: https://support.google.com/analytics/answer/6047802?hl=en 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 Bit.ly?

      This Article Is For: Users with a bit.ly account Visit https://bitly.com/a/sign_up to create an account Bit.ly 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 ...