Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Switch from configurable GA to hard-coded Fathom #292

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ staging:

production:
cookie_secret: sample
google_analytics_id: UA-12345678-9

16 changes: 1 addition & 15 deletions server/views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,7 @@
<link rel="icon" href="/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="/stylesheets/styles.css"/>
<link rel="stylesheet" type="text/css" href="/stylesheets/jquery-ui.min.css"/>

<% unless ConfigManager['google_analytics_id'].nil? %>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<%= ConfigManager['google_analytics_id'] %>']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<% end %>

<script src="https://thirtyfive-england.getodk.org/script.js" data-site="PBSTMJFG" defer></script>
<!-- Used to toggle additional form properties, eg. audit attributes -->
<script>
function showDiv(divId, element, hide_if_value)
Expand Down