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:

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues