     @trackEventInternal action, _.cloneDeep properties
     @trackSnowplow action, _.cloneDeep properties
 
-
-    unless event in ['View Load', 'Script Started', 'Script Ended', 'Heard Sprite']
+    unless action in ['View Load', 'Script Started', 'Script Ended', 'Heard Sprite']
       # Google Analytics
       # https://developers.google.com/analytics/devguides/collection/analyticsjs/events
       gaFieldObject =

        text = 'Snowplow event schema validation failed! See console'
        console.log 'Snowplow event failure info:', {snowplowAction, properties, error: result.error}
        noty {text, layout: 'center', type: 'error', killer: false, timeout: 5000, dismissQueue: true, maxVisible: 3}
    
    window.snowplow 'trackUnstructEvent',
      schema: "iglu:com.codecombat/#{snowplowAction}/jsonschema/#{schema.self.version}"
      data: properties

      gaFieldObject.eventValue = properties.value if properties.value?
      ga? 'send', gaFieldObject
      ga? 'codeplay.send', gaFieldObject if features.codePlay

    # Inspectlet
    # http://www.inspectlet.com/docs#tagging
    __insp?.push ['tagSession', action: action, properies: properties]
