How Do I Add Google Analytics to My SoCast Website?

How Do I Add Google Analytics to My SoCast Website?

How Do I Add Google Analytics to My SoCast Website?

Note: If you are using the SoCast player, you will also need to add your Google Analytics tracking code to your player settings. For detailed instructions, please see our article: Adding Google Analytics Code to Your Player.

Steps to Add Google Analytics to Your Website

  1. Create a Google Analytics Account: If you do not already have an account, you can create one by following the instructions here: Create a Google Analytics Account.
  2. Set Up a Web Property: Follow these steps to set up a property for your website: Set Up a Property.
  3. Generate Your Tracking Code: Instructions for generating your tracking code can be found here: Get Your Tracking Code.
  4. Add the Tracking Code to Your SoCast Website:
    • Log in to your SoCast admin panel at http://admin.socastsrm.com/account/website.
    • Paste your tracking code as the last item in the Custom Header HTML section.
    • Your code should look similar to the sample below (replace the UA ID with your own):
<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>

Important Notes

  • Please allow up to 24 hours for your website analytics to appear. If you do not see any data after this period, please:
    • Confirm that the full tracking code has been copied and pasted correctly.
    • Ensure the UA ID matches the one associated with your website.
    • If you continue to experience issues, contact SoCast Support for assistance.
  • When pasting your code into the Custom Header HTML section, be careful not to overwrite or interfere with any other code already in this area.

By following these steps, you can successfully integrate Google Analytics with your SoCast website and begin tracking your audience data.