opencompany / www.opencompany.org

Website of the Open Company Initiative
https://www.opencompany.org
Other
61 stars 37 forks source link

Fix Google Analytics #89

Closed timothyfcook closed 10 years ago

timothyfcook commented 10 years ago

GA didn't make it in the transition to Jekyll/.org ...at least I'm looking through the Repo and not seeing it there.

Here's the code we need in the head on every page:

<script>
  (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)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-45598906-1', 'opencompany.org');
  ga('send', 'pageview');

</script>

Where to put?

chadwhitacre commented 10 years ago

@timothyfcook I've edited the description to demonstrate how to make preformatted text in Markdown (```).

That said, I believe we do still have this: it's been moved to the bottom of the page.

screen shot 2014-02-10 at 1 05 26 pm

We're now using opencompany.org though. Does that explain the behavior you're seeing in GA?

chadwhitacre commented 10 years ago

Oops! I misspoke. :-)

We're still using opencompany.biz there!

chadwhitacre commented 10 years ago

Should be fixed:

screen shot 2014-02-10 at 1 11 27 pm

timothyfcook commented 10 years ago

Looks like it's working! screen shot 2014-02-10 at 3 21 38 pm

chadwhitacre commented 10 years ago

Sweet. :-)

kyzh commented 10 years ago

Are any data available without a login ?

timothyfcook commented 10 years ago

nope, but i can add you if you give me a google account!