Mixpanel and Google Analitycs

James Peret 5 years ago
parent
commit
f59ae7999d
4 changed files with 25 additions and 39 deletions
  1. 15 0
      _includes/footer-scripts.html
  2. 7 0
      _includes/head.html
  3. 2 38
      about/index.html
  4. 1 1
      index.html

+ 15 - 0
_includes/footer-scripts.html

@@ -49,3 +49,18 @@
49 49
     $('.modal-toggle-group').toggleClass('active', $(document).scrollTop() >= 300);
50 50
   });
51 51
 </script>
52
+
53
+<script type="text/javascript">
54
+  mixpanel.track("{{ page.title }}");
55
+</script>
56
+
57
+<script>
58
+  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
59
+  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
60
+  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
61
+  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
62
+
63
+  ga('create', 'UA-63859108-3', 'auto');
64
+  ga('send', 'pageview');
65
+
66
+</script>

+ 7 - 0
_includes/head.html

@@ -105,4 +105,11 @@
105 105
     <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.js"></script>
106 106
     <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/selectivizr/1.0.2/selectivizr-min.js"></script>
107 107
   <![endif]-->
108
+
109
+  <!-- start Mixpanel -->
110
+  <script type="text/javascript">(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
111
+  for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
112
+  mixpanel.init("69eea0234f0d7d65bd0f64d2c498fb5e");</script>
113
+  <!-- end Mixpanel -->
114
+
108 115
 </head>

+ 2 - 38
about/index.html

@@ -1,6 +1,6 @@
1 1
 ---
2 2
 layout: default
3
-title: About Vincent Chan
3
+title: About James Peret
4 4
 ---
5 5
 <article class="postWrapper">
6 6
   <section class="section--first section--about is-darkBackgrounded u-table">
@@ -25,43 +25,7 @@ title: About Vincent Chan
25 25
     <div class="container container--content">
26 26
       <div class="content-body">
27 27
         <h4>About</h4>
28
-        <p>An ex-banking analyst turned entrepreneur, who is hugely influenced by the book “Built to Last”. Vincent was the co-founder of Primitus. He left his job at Citi to pursue success on his own terms. He is passionate about changing the world through great technology products. His dream is to build a lasting company and a global brand that can represent his hometown, Hong Kong. Vincent graduated from UCLA in 2007 with a degree in Economics.</p>
29
-        <h4>Motto</h4>
30
-        <p class="u--startsWithDoubleQuote">“If you can dream it, you can do it. Always remember that this whole thing was started with a dream and a mouse.” - Walt Disney</p>
31
-        <h4>Goals (short term)</h4>
32
-        <ul>
33
-          <li>Become a full stack entrepreneur (design, engineering, growth)</li>
34
-          <li>Become a good dad</li>
35
-          <li>Share lessons and failures to help fellow entrepreneurs</li>
36
-          <li>Spend more time on side projects</li>
37
-          <li>Do more exercises</li>
38
-        </ul>
39
-        <h4>Dreams (long term)</h4>
40
-        <ul>
41
-          <li>Building a global brand which can represent my hometown</li>
42
-          <li>Building a lasting company</li>
43
-          <li>Building a company not only selling products but also dreams</li>
44
-          <li>Help youngsters to make their dreams come true</li>
45
-        </ul>
46
-        <h4>Role Models</h4>
47
-        <p>
48
-          Walt Disney, Steve Jobs, Al Gore, Bill Campbell, Bill Gates, Charlie Munger, Howard Schultz, Jim Collins, Sheryl Sandberg, Warren Buffett, Cher Wang, Masayoshi Son, Tadashi Yanai, Reid Hoffman, Peter Thiel, Paul Graham, Seth Godin, Steve Blank, Jeff Bezos.
49
-        </p>
50
-        <h4>Favorite Companies</h4>
51
-        <p>
52
-          Disney, Apple, Google, IKEA, Intuit, Procter & Gamble, Sony, Starbucks, Toyota, Pixar, Zappos, HubSpot, LinkedIn.
53
-        </p>
54
-        <h4>Favorite Startups</h4>
55
-        <p>
56
-          GitHub, Buffer, Airbnb, Dropbox, Square, Atlassian, Automattic, Evernote, Squarespace, InVision, Pinterest, Intercom, FiftyThree, Slack.
57
-        </p>
58
-        <h4>Favorite Brands</h4>
59
-        <p>
60
-          37signals, Apple, Canon, Coca-Cola, Disney, innocent drinks, method, Nike, Muji, Patagonia.
61
-        </p>
62
-        <p>
63
-          Photo Credit: <a href="http://www.pixar.com/short_films/Theatrical-Shorts/La-Luna" target="_blank">Pixar's La Luna</a>
64
-        </p>
28
+        <p>I'm is a developer, filmmaker and entrepreneur from São Paulo, Brazil, currently living in Berlin. I have co-founded several startups, worked on many software projects, created more than a hundred videos and developed two video game titles. I have a passion for creating new products and ideias that is my main driver for working hard on each project. I have an enphasis in understanding bussiness requirements and comming up with great solutions for each problem.</p>
65 29
       </div>
66 30
     </div>
67 31
   </section>

+ 1 - 1
index.html

@@ -1,6 +1,6 @@
1 1
 ---
2 2
 layout: default
3
-title: Mickey Theme for Jekyll
3
+title: J1X Blog
4 4
 ---
5 5
 
6 6
 <section class="section--first section--frontpage">