Skip to content

Commit

Permalink
feat(analytics): Add opt-out page
Browse files Browse the repository at this point in the history
* Set `optout` cookie filtered by Google Analytics.

WIP: #2
  • Loading branch information
Derek Michael Frank committed Mar 10, 2017
1 parent ece1cf9 commit 8ef38a4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions opt-out.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Opt-out
layout: blank
sitemap: false
---

<noscript>
Cannot opt-out without Javascript turned on!
</noscript>

<script>
document.write('You will not be tracked by:');
</script>
<ul>
<script>
{% include cookies.js %}

createCookie('optout', true, 365);
document.write('<li>Google Analytics</li>');
</script>
<ul>

0 comments on commit 8ef38a4

Please sign in to comment.