Google Analytics Integration Google Analytics Integration

Google Analytics Integration

Michael Smith Michael Smith

Zype Analytics can integrate with Google Analytics to deliver a consolidated source of analytics for your web destination. 

Requirements

To use Google Analytics with Zype Analytics you need to have a Google Analytics account and a web tracking code installed on your web destination.

A web tracking code for Google Analytics looks similar to the following:

<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', 'YOUR-TRACKING-ID', 'auto');
  ga('send', 'pageview');
</script>

Supported Use Cases

Zype Google Analytics integration is currently supported on non-paywalled, Zype-hosted videos, rendered from the javascript video embed code only. Iframe based and paywalled videos are not supported.


Enabling Google Analytics integration

To enable Google Analytics integration select the ‘Enable Google Analytics’ option under ‘Zype Analytics settings’. The integration will use the existing Google Analytics tracking object on the page so you don’t need to enter your Google Analytics Tracking ID.

You can optionally change the tracking object name. Most installations use the default name ‘ga’. If you have not changed the name of the tracking object on your web destination you should use the default setting.

Supported Versions

Currently, our GA integration tool only supports Google Universal Analytics (UA). Please make sure to have your UA property configured prior to starting the integration setup. 

Web Player events to GA

The following list gives you a detail of which and how the events from the web player are currently being sent to the Google Analytics platform: 

 

Web player event

GA Event Action name

canPlay

impression

play

play

ended

playback_finished

waiting

buffer_start

playing

buffer_end

pause

pause

error

error

seeked

seek