Skip to content
Snippets Groups Projects
Commit 1d569721 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

load analytics separate from require

parent 0ad17853
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/dependencies/analytics.js"></script>
<!--flatUI bootstrap theme-->
<link href="js/dependencies/flatUI/css/vendor/bootstrap.min.css" rel="stylesheet"><!-- Loading Bootstrap -->
......
......@@ -2,8 +2,6 @@
* Created by aghassaei on 1/8/15.
*/
define(function(){
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
......@@ -12,4 +10,3 @@ define(function(){
ga('create', 'UA-58379815-1', 'auto');
ga('send', 'pageview');
});
......@@ -5,7 +5,6 @@
requirejs.config({
baseUrl: 'js',
paths: {
analytics: 'dependencies/analytics',
jquery: 'dependencies/jquery-2.1.3',
underscore: 'dependencies/underscore',
backbone: 'dependencies/backbone',
......@@ -62,7 +61,7 @@ requirejs.config({
});
//init stuff
requirejs(['appState', 'lattice', 'menuWrapper', 'navbar', 'ribbon', 'threeModel', 'threeView', 'analytics', 'flatUI'],
requirejs(['appState', 'lattice', 'menuWrapper', 'navbar', 'ribbon', 'threeModel', 'threeView', 'flatUI'],
function(appState, lattice, MenuWrapper, Navbar, Ribbon, three, ThreeView){
new MenuWrapper({model:appState});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment