diff --git a/src/containers/project-loader.jsx b/src/containers/project-loader.jsx index 7243e5f66906c2588a928224e52bb04e39ffe10f..7f178b6232416aca90e22d35c36c56af7c53ba92 100644 --- a/src/containers/project-loader.jsx +++ b/src/containers/project-loader.jsx @@ -3,6 +3,8 @@ import PropTypes from 'prop-types'; import React from 'react'; import {connect} from 'react-redux'; +import analytics from '../lib/analytics'; + import { openLoadingProject, closeLoadingProject @@ -45,6 +47,11 @@ class ProjectLoader extends React.Component { const thisFileInput = e.target; reader.onload = () => this.props.vm.loadProject(reader.result) .then(() => { + analytics.event({ + category: 'project', + action: 'Import Project File', + nonInteraction: true + }); this.props.closeLoadingState(); // Reset the file input after project is loaded // This is necessary in case the user wants to reload a project