Spruto and Google Analytics

 Spruto and Google Analytics

Now integrated with Google Analytics!.

Spruto is now integrated with Google Analytics allowing you to easily track your player statistics including player launches, video views, viewer behaviour and a whole lot more..

Easily choose the actions you want to track, including:

  • Player loads/page views (Impression)
  • Player starts (PlayerStart)
  • Video views (ViewVideo)
  • Videos viewed to ¼ of completion (PlayerFirstQuartile)
  • Videos viewed to ½ of completion (PlayerMidPoint)
  • Videos viewed to ¾ of completion (PlayerThirdQuartile)
  • Videos viewed to completion (PlayerComplete)

Connecting is easy:

  • Create your UI Google Analytics
  • Enter your Google Analytics account number (ex., UA-000000-01) in the Account number field and click on the Save button. That's it, the Google Analytics code is added to your Spruto player. (PlayerThirdQuartile)
  • You can choose the actions you’d like to track. (PlayerComplete)

Manually add Google Analytics to the Spruto player (embed-code)::

Code for the Google Analytics plug-in:

set_plugin{plugin_index}_url=http%3A%2F%2Fs3.spruto.com%2Fembed%2Ftest%2Fgaplugin.swf&set_plugin{plugin_index}_settings_gaAccount=UA-59522750-1
  • UA-59522750-1 – your Google Analytics account number
  • {plugin_index} – is the sequence number of the current plugin. The sequence code begins with a number. Numbering should be applied strictly in order, without skipping numbers

Additional options:

  • gaCategory – change the category of events to be sent to Google Analytics. If the parameter is not specified, the default category "SprutoEvent" is sent set_plugin{plugin_index}_settings_gaCategory=SomeCategory
  • track – to cancel tracking of an event. By default, all events are tracked set_plugin{plugin_index}_settings_track{event_name}=false Where {event_name} – name of the event for which you want to stop tracking. The plugin keeps track of the following events:
    • Impression – (Player loads/page views)
    • PlayerStart – (Player starts)
    • ViewVideo – (Video views )
    • PlayerFirstQuartile – (Videos viewed to ¼ of completion )
    • PlayerMidPoint – (Videos viewed to ½ of completion )
    • PlayerThirdQuartile – (Videos viewed to ¾ of completion)
    • PlayerComplete – (Videos viewed to completion)

Example of code for turning off tracking of the PlayerMidPoint event::

<embed src='//s3.spruto.com/embed/test/player.swf' type='application/x-shockwave-flash' allowfullscreen='true' allowScriptAccess='always' width='640' height='360'flashvars='set_video1_url=http%3A%2F%2Fp.spruto2.pulter.netdna-cdn.com%2Fvod%2Fspruto2.pulter%2Fpromo.mp4&set_title_text=Example%20video%20title&set_plugin1_url=http%3A%2F%2Fs3.spruto.com%2Fembed%2Ftest%2Fgaplugin.swf&set_plugin1_settings_gaAccount=UA-59522750-1&set_plugin1_settings_trackPlayerMidPoint=false'/>

Manually add Google Analytics to the Spruto player (js- code):

To create a code for a player connected to advertising, you need to use the "plugins" group.

Code for the Google Analytics plug-in:

"plugins":[{ "url":"//s3.spruto.com/embed/test/gaplugin.swf", "settings":{ "gaAccount": "UA-59522750-1" } }]

Where UA-59522750-1 – your Google Analytics account number

Additional options:

  • gaCategory – change the category of events to be sent to Google Analytics. If the parameter is not specified, the default category "SprutoEvent" is sent "plugins":[{ "url":"//s3.spruto.com/embed/test/gaplugin.swf", "settings":{ "gaAccount": "UA-59522750-1", "gaCategory": "SomeCategory" } }]
  • track – to cancel tracking of an event. By default, all events are tracked "plugins":[{ "url":"//s3.spruto.com/embed/test/gaplugin.swf", "settings":{ "gaAccount": "UA-59522750-1", "track{event_name}": false } }] Where {event_name} – name of the event for which you want to stop tracking. The plugin keeps track of the following events:
    • Impression – (Player loads/page views)
    • PlayerStart – (Player starts)
    • ViewVideo – (Video views )
    • PlayerFirstQuartile – (Videos viewed to ¼ of completion )
    • PlayerMidPoint – (Videos viewed to ½ of completion )
    • PlayerThirdQuartile – (Videos viewed to ¾ of completion)
    • PlayerComplete – (Videos viewed to completion)

Example of code for turning off tracking of the PlayerMidPoint event::

<script src="//s3.spruto.com/embed/player.js" type="text/javascript"></script><script class="splayer">var params = {"playlist":[{"video":[{"url":"http://p.spruto2.pulter.netdna-cdn.com/vod/spruto2.pulter/promo.mp4"}]}],"plugins":[{"url":"http://s3.spruto.com/embed/test/gaplugin.swf","settings":{"gaAccount": "UA-59522750-1","trackPlayerMidPoint": false }}]};player.embed(params);</script>