Adding Google Analytics code to your player

Adding Google Analytics code to your player

NOTE: If you have added analytics tracking code to your station's website, they will not be tracked for the SoCast player unless you follow the instructions below in addition to setting the code up for the website.

To do this you need to find 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 your player's http://admin.socastsrm.com/player/customHTML as the last item in the Custom Footer HTML section.  Note: it will also work in the Custom Header section however, the Footer is recommended.  It should look like this (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

    • Player Ad Setup Code

      This Article Is For: Users who have: Advertising Permissions This is applicable to: All Themes Step-by-step guide: Go to: http://admin.socastsrm.com/advertising/player Ensure you have generated all ad units you are looking to use on the player ...
    • How Do I Setup My Player Mobile Banner Ad Code?

      This Article Is For: Users who have: Advertising Permissions This is applicable to: All Themes Note: Please allow for up to 3 hours for ads to start displaying correctly before you contact Google DFP's customer support asking them for help. If it has ...
    • How Do I Setup My Player Leaderboard Ad?

      This Article Is For: Users who have: Advertising Permissions This is applicable to: All Theme Note: Please allow for up to 3 hours for ads to start displaying correctly before you contact Google DFP's customer support asking them for help. If it has ...
    • How Do I Setup My Player Big Box Ad

      This Article Is For: Users who have: Advertising Permissions This is applicable to: All Themes Note: Please allow for up to 3 hours for ads to start displaying correctly before you contact Google DFP's customer support asking them for help. If it has ...
    • Player Advertising

      . This Article Is For: Users who have: Advertising Permissions This is applicable to: All Themes Requirements: Must be using the SoCast Player Manage advertisement placement settings for the player, e.g. video pre-roll, leaderboard. See below for a ...