diff --git a/src/videojs.ga.coffee b/src/videojs.ga.coffee index 495d4bb..0e5b57e 100644 --- a/src/videojs.ga.coffee +++ b/src/videojs.ga.coffee @@ -9,8 +9,8 @@ videojs.plugin 'ga', (options = {}) -> # this loads options from the data-setup attribute of the video tag dataSetupOptions = {} - if @options()["data-setup"] - parsedOptions = JSON.parse(@options()["data-setup"]) + if @options_["data-setup"] + parsedOptions = JSON.parse(@options_["data-setup"]) dataSetupOptions = parsedOptions.ga if parsedOptions.ga defaultsEventsToTrack = [