Commit b1884212 authored by Daniel W Bond's avatar Daniel W Bond

added piwik

parent 1b1842a8
......@@ -50,7 +50,6 @@ only review by peers
* Figure out parallaxjs (use jquery) for front page
* Figure out intellectual property with GMU
* add piwik opt out link
* Set up the documents with ability to download pdfs and latex files
* finish writing privacy policy
* affix js for documents navigation-- example http://www.bootstrapzero.com/bootstrap-template/affix-sidebar
......
......@@ -37,7 +37,7 @@ Privacy Policy
<div class="col-md-6">
<h2>Can I opt out?</h2>
<p>You may <a href="#">opt out</a> (or back in) of all future analytics. Many sites on the internet will not give you this option, or make it very difficult, so if you'd like to opt out of tracking everywhere, you can simply <a href="https://disconnect.me/">block their trackers</a>.</p>
<p>You may <a href="{{ url_for('optOut')}}">opt out</a> (or back in) of all future analytics. Many sites on the internet will not give you this option, or make it very difficult, so if you'd like to opt out of tracking everywhere, you can simply <a href="https://disconnect.me/">block their trackers</a>.</p>
<p>Depending on the project, your interactions and information you upload will be retained for the functionality of the project, and can't be removed, except as in violation of our <a href="/documents/terms_of_service">Terms of Service</a>, even upon graduation or other conclusion of your relationship with the university and the closure of your full access GMU account.</p>
</div>
......
......@@ -69,5 +69,22 @@
<script src="/static/js/jquery-2.0.3.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://whatsopen.gmu.edu/analytics/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "2"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
</body>
</html>
<iframe style="border: 0; height: 200px; width: 600px;"
src="http://whatsopen.gmu.edu/analytics/index.php?module=CoreAdminHome&action=optOut&language=en"></iframe>
......@@ -34,7 +34,13 @@ def people():
@website.route('/projects/')
def projects():
return render_template("projects.html",
renderHead = True,
renderHead = True,
)
@website.route('/opt-out/')
def optOut():
return render_template("privacy_opt_out.html",
)
### DOCUMENTS ###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment