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

Commit ac3d828

Browse files
author
Florian Mayer
authored
Merge pull request #292 from yanokwa/replace-ga
Switch from configurable GA to hard-coded Fathom
2 parents bf0f687 + 75d3a52 commit ac3d828

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

config.yml.sample

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ staging:
1515

1616
production:
1717
cookie_secret: sample
18-
google_analytics_id: UA-12345678-9
1918

server/views/index.erb

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,7 @@
88
<link rel="icon" href="/images/favicon.ico">
99
<link rel="stylesheet" type="text/css" href="/stylesheets/styles.css"/>
1010
<link rel="stylesheet" type="text/css" href="/stylesheets/jquery-ui.min.css"/>
11-
12-
<% unless ConfigManager['google_analytics_id'].nil? %>
13-
<script type="text/javascript">
14-
var _gaq = _gaq || [];
15-
_gaq.push(['_setAccount', '<%= ConfigManager['google_analytics_id'] %>']);
16-
_gaq.push(['_trackPageview']);
17-
18-
(function() {
19-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
20-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
21-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
22-
})();
23-
</script>
24-
<% end %>
25-
11+
<script src="https://thirtyfive-england.getodk.org/script.js" data-site="PBSTMJFG" defer></script>
2612
<!-- Used to toggle additional form properties, eg. audit attributes -->
2713
<script>
2814
function showDiv(divId, element, hide_if_value)

0 commit comments

Comments
 (0)