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

Commit

Permalink
Merge pull request #292 from yanokwa/replace-ga
Browse files Browse the repository at this point in the history
Switch from configurable GA to hard-coded Fathom
  • Loading branch information
Florian Mayer authored Mar 8, 2022
2 parents bf0f687 + 75d3a52 commit ac3d828
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
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

0 comments on commit ac3d828

Please sign in to comment.