Skip to content

Commit

Permalink
Merge pull request #25 from codeplaysoftware/add-fathom-analytics
Browse files Browse the repository at this point in the history
Replaced Google Analytics with Fathom Analytics.
  • Loading branch information
scottstraughan committed Jun 27, 2024
2 parents 3b886ca + efe3488 commit 5c80d38
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 74 deletions.
4 changes: 2 additions & 2 deletions _configs/_config_production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
url: https://www.syclops.org

# Google Analytics Token
ga: 'G-CZ9WF91EQN'
# Fathom Analytics Token
fa: 'QLYBRUST'
13 changes: 7 additions & 6 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@
crossorigin="anonymous"></script>
<script src="{{'/static/js/jquery.cookiesaccepted.js' | absolute_url}}"
type="text/javascript"></script>
<script src="{{'/static/js/index.js' | absolute_url}}"
type="text/javascript"></script>

<!-- Fathom -->
<script src="https://cdn.usefathom.com/script.js" data-site="{{ site.fa }}" defer></script>

<!-- Content security policy -->
<meta content="
Expand All @@ -62,21 +63,21 @@
'self'
https://code.jquery.com
https://www.googletagmanager.com
https://www.google-analytics.com;
https://cdn.usefathom.com/script.js;
connect-src
'self'
https://*.google-analytics.com;
https://cdn.usefathom.com;
img-src
'self'
https:
http:
data:
https://*.google-analytics.com;
https://cdn.usefathom.com;
frame-src
'self';"
http-equiv="Content-Security-Policy"/>
</head>
<body data-ga="{{site.ga}}">
<body>
{%- if header == 'expanded' -%}
{%- include _includes/headers/expanded.html -%}
{%- else -%}
Expand Down
52 changes: 0 additions & 52 deletions cookies.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,57 +49,5 @@ <h3>syclops.org Privacy Policy Acceptance</h3>
</tr>
</table>

<h3>Google Analytics</h3>

<p>We use Google Analytics to track how our website is used to help us improve our
services. Google Analytics will often set a tracking cookie on your system.</p>

<p><b>Please note </b> that we have enabled "anonymous" mode on Google Analytics. As a result,
we do not store any information that directly identifies you but we can still capture visitor
interactions. If you wish to disable these completely, please reject them using the button
above.</p>

<p><a href="https://policies.google.com/privacy" target="_blank">
View Google's Privacy Policy</a></p>

<table>
<thead>
<tr>
<th>Cookie Name</th>
<th>Whats It For?</th>
<th>Type</th>
</tr>
</thead>
<tr>
<td>_ga</td>
<td>Used to distinguish users.</td>
<td>
<div class="tag">1st Party Cookie</div>
</td>
</tr>
<tr>
<td>_gid</td>
<td>Used to distinguish users.</td>
<td>
<div class="tag">1st Party Cookie</div>
</td>
</tr>
<tr>
<td>_ga_&lt;container-id&gt;</td>
<td>Used to persist session state.</td>
<td>
<div class="tag">1st Party Cookie</div>
</td>
</tr>
<tr>
<td>_gac_gb_&lt;container-id&gt;</td>
<td>Contains campaign related information. If you have linked your Google
Analytics and Google Ads accounts, Google Ads website conversion tags will
read this cookie unless you opt-out.</td>
<td>
<div class="tag">1st Party Cookie</div>
</td>
</tr>
</table>
</div>
</section>
1 change: 0 additions & 1 deletion privacy.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ <h2>Where your information is stored</h2>
<li>Formspree</li>
<li>Microsoft Office 365</li>
<li>JIRA</li>
<li>Google Analytics (limited information, if accepted)</li>
</ul>

<h2>Your data protection rights</h2>
Expand Down
13 changes: 0 additions & 13 deletions static/js/index.js

This file was deleted.

0 comments on commit 5c80d38

Please sign in to comment.