Commit f263889f0590cc0d275178ffd4ecf8524e550206

Authored by Palak Handa
1 parent 439352ca6e
Exists in master and in 1 other branch paytm

analytics work

Showing 3 changed files with 81 additions and 8 deletions   Show diff stats
... ... @@ -28,7 +28,8 @@
28 28 <script src="js/angular-svg-round-progressbar.js"></script>
29 29 <script src="js/angular.js"></script>
30 30 <script src="js/bootstrap.js"></script>
31   - <script>
  31 + <script src="dist/angular-google-analytics.js"></script>
  32 + <!-- <script>
32 33 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
33 34 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
34 35 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
... ... @@ -36,8 +37,7 @@
36 37  
37 38 ga('create', 'UA-106416759-1', 'auto');
38 39 ga('send', 'pageview');
39   - </script>
40   -
  40 + </script> -->
41 41  
42 42 </head>
43 43  
... ...
... ... @@ -12,6 +12,49 @@
12 12 <!-- CLOSE HEADER -->
13 13 <form name="applicantForm" id="signupForm">
14 14 <div class="col-xs-12 col-md-10 col-md-offset-1">
  15 + <p style="font-size:16px">Startup Jalsa is a platform which brings together successful entrepreneurs with aspiring entrepreneurs - to help them get funding ready.
  16 + <li>Watch <b>Startup Jalsa 2016:</b><a href="https://www.youtube.com/watch?v=8i1bLQ7jS0I&feature=youtu.be/"> http://bit.ly/2waJu7G</a></li>
  17 + <li>Watch <b>what startups, mentors and investors think</b> about Startup Jalsa:
  18 + <a href="https://www.youtube.com/watch?v=v8jqTRzQqOI&index=2&list=PL_ieVNgs36HStvzUph85NUXjrZIXS_bTg/"> http://bit.ly/2wVViYs</a></li>
  19 + <li>Watch how Startup Jalsa 2017 can help you: <b>Startup Jalsa 2017:</b><a href="https://www.youtube.com/watch?v=ANNugxCVCJI&feature=youtu.be/"> https://youtu.be/ANNugxCVCJI</a></li><br>
  20 + <b>Before submitting your application, the following need to be kept in mind:</b><br>
  21 +
  22 + <ol><li>In the Ideate edition - <b>Startups from all sectors and stages can submit their application.</b></li>
  23 +
  24 + <li><b>Early bird registration deadline: 15th October 2017</b><br>
  25 + Idea stage startups: ₹500 + taxes/ Product stage startups: ₹1000 + taxes</li>
  26 + <li><b>Last date to register is 31st October 2017</b><br>
  27 + Idea stage startups:₹1000 + taxes/ Product stage startups: ₹1500 + taxes</li>
  28 +
  29 + <li>Once you register on our website, you'll get access to Startup Jalsa - Inspire edition near your city - where our mentors will give you personalised feedback one-on-one.</li>
  30 +
  31 + <li>At each Inspire event, Startup Jalsa will give 1 idea stage startup ₹1 Lac funding on the spot. Total of 10 funding slots are available.</li>
  32 +
  33 + <li>Inspire edition of Startup Jalsa is coming to the following cities on the following dates:</li></ol>
  34 + <ul>
  35 + <li>November 3: Chennai: <a href="http://startupjalsa.com/chennai/">www.startupjalsa.com/chennai</a></li>
  36 + <li>November 4: Hyderabad: <a href="http://startupjalsa.com/hyderabad/">www.startupjalsa.com/hyderabad</a></li>
  37 + <li>November 5: Bengaluru: <a href="http://startupjalsa.com/bengaluru/">www.startupjalsa.com/bengaluru</a></li>
  38 + <li>November 11: Pune: <a href="http://startupjalsa.com/pune/">www.startupjalsa.com/pune</a></li>
  39 + <li>November 12: Mumbai: <a href="http://startupjalsa.com/mumbai/">www.startupjalsa.com/mumbai</a></li>
  40 + <li>November 18: Ahmedabad: <a href="http://startupjalsa.com/ahmedabad/">www.startupjalsa.com/ahmedabad</a></li>
  41 + <li>November 19: Delhi: <a href="http://startupjalsa.com/delhi/">www.startupjalsa.com/delhi</li></a>
  42 + </ul>
  43 + <ol><li>The top startups selected from all over the country will get a chance to participate in Startup Jalsa - Invest edition where they will get to spend 2 days with the top investors, entrepreneurs and policy makers - and pitch them to get funded anywhere upto ₹10 Crores.</li>
  44 + <li>There will be a separate registration fee for the Startup Jalsa - Invest edition - which will be notified in due time.</li>
  45 + <li>Startup Jalsa will give 1 product stage startup ₹1 Crore funding at the Invest edition. Total 1 funding spot is available.</li>
  46 + <li>Startup Jalsa - Invest edition- 25th & 26th November 2017 - Chandigarh</li></ol>
  47 +
  48 + <b>To get started, Select your stage (and the rest follows)</b><br>
  49 + <ul>
  50 + <li>Register online<br>
  51 + Become a part of our network and get access to leading entrepreneurs from all sectors</li>
  52 +
  53 + <li>Get Personalized Feedback<br>
  54 + We bring mentors to a city near you, where you personally meet them 1-on-1, get feedback on your startup and learn how to raise funding<br></li>
  55 +
  56 + <li>Pitch for funding<br>
  57 + A chance to pitch to the top active investors of the Indian startup ecosystem & get funded - at Startup Jalsa</li></ul></p>
15 58 <p class="select-stage" style="font-size:20px;">Please select one stage.</p>
16 59 <div class="stage-shadow">
17 60 <div class="stages card-align">
... ... @@ -245,7 +288,7 @@
245 288 </div>
246 289 <div class="clearfix"></div>
247 290 <div class="col-xs-12 text-right">
248   - <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" ng-disabled="informationForm.$invalid|| check|| numberCheck" ng-click="next()">
  291 + <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" ng-disabled="informationForm.$invalid|| check|| numberCheck" ng-click="next()">
249 292 Next
250 293 </button>
251 294 </div>
... ...
1 1 // create the module and name it scotchApp
2   - var scotchApp = angular.module('scotchApp', ['ngRoute']);
  2 + var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']);
3 3  
4 4 // configure our routes
5 5 scotchApp.config(function($routeProvider) {
... ... @@ -31,11 +31,30 @@
31 31  
32 32 });
33 33  
34   - scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api")
35   - //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api")
  34 + scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) {
  35 + // Add configuration code as desired
  36 + // AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code
  37 +
  38 + AnalyticsProvider.setAccount({
  39 + tracker: 'UA-106416759-1',
  40 + name: "startupjalsa-app",
  41 + trackEvent: true,
  42 + trackEcommerce: true
  43 + });
  44 +
  45 + // Track all routes (default is true).
  46 + AnalyticsProvider.trackPages(true);
  47 +
  48 + // Track all URL query params (default is false).
  49 + AnalyticsProvider.trackUrlParams(true);
  50 +
  51 + }]).run(['Analytics', function(Analytics) { }]);
  52 +
  53 + //scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api")
  54 + scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api")
36 55  
37 56 // create the controller and inject Angular's $scope
38   - scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL) {
  57 + scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) {
39 58 $scope.data = {
40 59 show: true,
41 60 hide: false
... ... @@ -170,6 +189,12 @@
170 189  
171 190 /*****THIS IS FOR STEP ONE FORM ******/
172 191 $scope.next = function() {
  192 + // var pageTracker = _gat._getTracker("UA-12345-1");
  193 + // console.log(pageTracker)
  194 + // pageTracker._setDomainName("none");
  195 + // pageTracker._trackPageview();
  196 + Analytics.trackEvent('video', 'play', 'django.mp4');
  197 +
173 198 $scope.data.status = null
174 199 if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) {
175 200 var x = document.getElementById("snackbar")
... ... @@ -195,6 +220,11 @@
195 220 $scope.userId = result.data.id;
196 221  
197 222 }, function myError(error) {});
  223 +
  224 + // ga(function() {
  225 + // // Logs the "myTracker" tracker object to the console.
  226 + // console.log(ga.getByName('myTracker'));
  227 + // });
198 228 }
199 229  
200 230 }
... ...