Startup Jalsa is a platform which brings together successful entrepreneurs with aspiring entrepreneurs - to help them get funding ready.
+
Please select one stage.
@@ -245,7 +288,7 @@
-
diff --git a/script.js b/script.js
index e37d126..0e8047b 100644
--- a/script.js
+++ b/script.js
@@ -1,5 +1,5 @@
// create the module and name it scotchApp
- var scotchApp = angular.module('scotchApp', ['ngRoute']);
+ var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']);
// configure our routes
scotchApp.config(function($routeProvider) {
@@ -31,11 +31,30 @@
});
- scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api")
- //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api")
+ scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) {
+ // Add configuration code as desired
+ // AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code
+
+ AnalyticsProvider.setAccount({
+ tracker: 'UA-106416759-1',
+ name: "startupjalsa-app",
+ trackEvent: true,
+ trackEcommerce: true
+ });
+
+ // Track all routes (default is true).
+ AnalyticsProvider.trackPages(true);
+
+ // Track all URL query params (default is false).
+ AnalyticsProvider.trackUrlParams(true);
+
+ }]).run(['Analytics', function(Analytics) { }]);
+
+ //scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api")
+ scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api")
// create the controller and inject Angular's $scope
- scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL) {
+ scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) {
$scope.data = {
show: true,
hide: false
@@ -170,6 +189,12 @@
/*****THIS IS FOR STEP ONE FORM ******/
$scope.next = function() {
+ // var pageTracker = _gat._getTracker("UA-12345-1");
+ // console.log(pageTracker)
+ // pageTracker._setDomainName("none");
+ // pageTracker._trackPageview();
+ Analytics.trackEvent('video', 'play', 'django.mp4');
+
$scope.data.status = null
if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) {
var x = document.getElementById("snackbar")
@@ -195,6 +220,11 @@
$scope.userId = result.data.id;
}, function myError(error) {});
+
+ // ga(function() {
+ // // Logs the "myTracker" tracker object to the console.
+ // console.log(ga.getByName('myTracker'));
+ // });
}
}