|
For additional information on how to use GA event tracking, see this article: https://developers.google.com/analytics/devguides/collection/analyticsjs/events |
This article is intended for advanced users that want to add custom event tracking to their SoCast websites. It requires access to the Website / Settings panel.
To add event tracking follow these steps:
Find a button from your website that you wish to track
Right click that button and select "Inspect Element"
In the path of the element (see attached screenshot), find the last element to the right containing a hash tag, e.g. "#listenBtn"
<script> $("#listenBtn").click(function() { ga("send", "event", "player", "listen"); }); </script>
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|