Skip to content

Commit

Permalink
Add analytics, privacy policy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru committed Jan 12, 2019
1 parent e4b5ad2 commit b262b93
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ <h1>
<a class="sidebar-nav-item{% if page.url contains "/blog" %} active{% endif %}" href="{{ site.baseurl }}blog/">Blog</a>
<a class="sidebar-nav-item{% if page.url contains "/docs" %} active{% endif %}" href="{{ site.baseurl }}docs/3x/">Documentation</a>
<a class="sidebar-nav-item{% if page.url contains "/presentations" %} active{% endif %}" href="{{ site.baseurl }}presentations/">Presentations</a>
<a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
<a class="sidebar-nav-item{% if page.url contains "/social" %} active{% endif %}" href="{{ site.baseurl }}social.html">Follow @Monix</a>
<a class="sidebar-nav-item{% if page.url contains "/privacy" %} active{% endif %}" href="{{ site.baseurl }}privacy.html">Privacy Policy</a>
</nav>
</div>
</aside>
22 changes: 22 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,27 @@
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>

<!-- Analytics -->
<script>
function loadAnalytics() {
(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','https://www.google-analytics.com/analytics.js','ga');

ga('create', ' UA-84530423-2', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
}
// Checks DO-NOT-TRACK status
if (window.doNotTrack || navigator.doNotTrack || navigator.msDoNotTrack || 'msTrackingProtectionEnabled' in window.external) {
var dnd = window.doNotTrack == "1" || navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1" || window.external.msTrackingProtectionEnabled();
if (!dnd) loadAnalytics();
} else {
loadAnalytics();
}
</script>
<!-- End Analytics -->
</body>
</html>
33 changes: 33 additions & 0 deletions privacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
layout: page
title: Privacy Policy
---

**UPDATED:** Jan 12, 2019

## Analytics

The `monix.io` website uses Google Analytics, a service which transmits website traffic data to Google servers. Google Analytics does not identify individual users or associate your IP address with any other data held by Google. Reports provided by Google Analytics are used to help us understand website traffic and webpage usage.

You may opt out of this tracking at any time by activating the “Do Not Track” setting in your browser.

## Comments

The `monix.io` website uses [Isso](https://posativ.org/isso/) for commenting.

When writing a comment, the author can provide his/her email address.
If added, this email address is only used for receiving replies by email.
And the author's name and optional website URL are only used for
displaying the comments on the website.

No data is shared with any third-party service, the commenting system
is self hosted.

## Contact

If you wish to export or delete your commenting data,
you can send a request to:

<a href="mailto:&#108;&#101;&#103;&#097;&#108;&#064;&#109;&#057;&#046;&#109;&#111;&#110;&#105;&#120;&#046;&#105;&#111;">&#108;&#101;&#103;&#097;&#108;&#064;&#109;&#057;&#046;&#109;&#111;&#110;&#105;&#120;&#046;&#105;&#111;</a>

<br/>
11 changes: 8 additions & 3 deletions social.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
---
layout: page
title: Follow @Monix
title: Fork or Follow @Monix
---

For news &amp; updates follow:
Project repositories:

- [Monix Core](https://github.com/monix/monix/)
- [Website](https://github.com/monix/monix.io/)

News &amp; updates:

- [Atom/RSS](/blog/atom.xml)
- [Twitter (@Monix)](https://twitter.com/monix){:target=>"blank"}

Other profiles:
Other Profiles:

- [GitHub (@Monix)](https://github.com/monix)
- [Keybase (@Monix)](https://keybase.io/monix)
Expand Down

0 comments on commit b262b93

Please sign in to comment.