Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add analytics tracking code #94

Open
12 tasks
techieshark opened this issue Aug 8, 2016 · 2 comments
Open
12 tasks

Add analytics tracking code #94

techieshark opened this issue Aug 8, 2016 · 2 comments
Assignees
Milestone

Comments

@techieshark
Copy link
Contributor

techieshark commented Aug 8, 2016

Analytics should track at least:

  • screen views
  • do visitors scroll to bottom of stories
  • individual story passes & saves/likes
  • device used
  • geo metrics
  • session length
  • time spent on discover mode v map mode
  • session interval
  • most visited page
  • top search(es)

Other things to think about:

  • interactions with more info & directions buttons
  • interactions with photos (taps on photo)
@techieshark techieshark modified the milestone: user-testable Aug 23, 2016
jessemoreburritos added a commit that referenced this issue Aug 30, 2016
#94
Codes added to index.html and stats.html
@techieshark
Copy link
Contributor Author

Fixed by 758dc17

Any specific analytics setup will have to wait until we hear more about what is going to be tested, and currently it sounds like the testing will just be qualitative.

@jessemoreburritos
Copy link
Collaborator

Hello there

I've added a tracking tag for mixpanel but get no love firing it in/with localhost (or whatever you kids call it these days. In my day a milkshake, ferry to manly, a ticket to the pictures and a bag of lollies were 20c!)

<!-- start Mixpanel --><script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments, 0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" "); for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.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";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]); mixpanel.init("ebfad93b8446288ed0344dce7bfcd426"); </script><!-- end Mixpanel -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants