open-contracting / deploy

Deployment configuration and scripts
https://ocdsdeploy.readthedocs.io/en/latest/
Apache License 2.0
2 stars 3 forks source link

Create server: Switch from Google Analytics to Fathom Analytics #235

Closed jpmckinney closed 3 years ago

jpmckinney commented 3 years ago

Our technical audience might be running blockers, such that they aren't counted by Google Analytics. Also, we might as well use a privacy-respecting tool.

jpmckinney commented 3 years ago

Once Fathom is installed on OCDS documentation and other tools, we should: let Georg know, collect data for a month, then compare to the numbers in Google Analytics (and share the results with Georg).

jpmckinney commented 3 years ago

Fathom is simpler than Google Analytics. If we wanted similar features to GA, we could use Matomo (more expensive for cloud hosting / more effort for self-hosting). However, Fathom seems to fulfill our needs.

jpmckinney commented 3 years ago

Noting that the code should look like (replacing CODE):

<script src="https://kite.open-contracting.org/script.js" data-site="CODE" defer data-excluded-domains="localhost,127.0.0.1,0.0.0.0"></script>
jpmckinney commented 3 years ago

Oops, I deleted a comment instead of updating it... GitHub's audit log doesn't preserve comment content, and the cache of search engines (Google, Bing and Yahoo) didn't have the last version of the comment. From memory, the steps are...


Update repositories to use Fathom:

Then, deploy:

Also:

After running Google Analytics and Fathom side-by-side for the month of March, see https://github.com/open-contracting/deploy/issues/235#issuecomment-758251256 then delete the GA code from:

jpmckinney commented 3 years ago

I've removed access to Google Analytics from consultants, and deleted the section of the software handbook: https://github.com/open-contracting/software-development-handbook/commit/ca0c8f7b69a79e37d30fce70e4a5644dc1db5021

jpmckinney commented 3 years ago

The following use Google Analytics but are archived:

jpmckinney commented 3 years ago

Nothing that just the checkboxes need to be checked to close this issue.

jpmckinney commented 3 years ago

Moving privacy policies to https://github.com/open-contracting/software-development-handbook/issues/47