Using Google Analytics with Ziggeo
When you are neck deep in analytics and want to add a video to your website - and have the two play nicely - it might sound as if you are at the bottom of a very steep mountain. With Ziggeo however that is not so.
We planned for this and have made the Google Analytics actually part of our code, without you needing to do anything about the same. How cool is that! :)
Now, saying just that is not enough, you likely want to know which and what kind of events fire. No worries, just read on to see. After the list we will also tell you that you can add your own events as well (quite easily at that as well), however for now, you did not hear that from me :)
The list
Our system will automatically send the events to the Google Analytics declared on your page (if any). The events that are sent are as follows:
- embedding_loaded
- record_start
- record_stop
- upload_start
- uploading_start
- upstream_bandwidth
- uploading_end
- processing_start
- processing_end
- rerecord_confirm
- play_start
- play_playing
- play_pause
- play_seek
- play_end
So plenty of events and info on what happens with your video on your pages and that comes out of the box!
Extendo eventus
Now, if you are a person that likes to get some things done in specific manner and want to know way more than what is listed above, rest assure that using Ziggeo it means that it is quite simple to do :)
You would do it as you would usually:
ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);
Google code examples have the video play for us showcased here: https://developers.google.com/analytics/devguides/collection/analyticsjs/events
The trick is in using any of the available events that we have. You can see them on the following page:
- Embedding events:
https://ziggeo.com/docs/sdks/javascript/browser-interaction/events
- events that fire for specific embedding allowing you to now only know that video was played, however to also know exactly which video it was and in which embedding
- events that fire for specific embedding allowing you to now only know that video was played, however to also know exactly which video it was and in which embedding
- Application embedding events:
https://ziggeo.com/docs/sdks/javascript/browser-interaction/application-embedding-events
- Like embedding events, however they fire for entire application, allowing you to not focus on embeddings on the page, rather on events that any of them raise.
- These events fire after the embedding events
- Application events:
https://ziggeo.com/docs/sdks/javascript/browser-interaction/application-events
- Application events are events on application level. They are not the same as embedding events, however they can tell you a bit about the system itself.
Of course, there are other ways to combine the Google Analytics events, such as combining the events and API callbacks, making it easy for you to know when new batch of videos got loaded in your endless scroll implementation, and so on.
Hopefully this gives you a nice insight into how you can use Google Analytics on your pages, however if you have any suggestions or questions please do leave them as comments to this post.
Please sign in to leave a comment.
Comments
0 comments