Using Google VR To Display RICOH THETA Images?

You can also use the web-based library:

<script src="//storage.googleapis.com/vrview/2.0/build/vrview.min.js"></script>

the code below is old, but it may still work.

It assumes that the file vrview-analytics.js is in build/

<script src="build/vrview-analytics.min.js"></script>

This article may be helpful.