Skip to content

Commit f768c4c

Browse files
committed
Merge branch 'release-0.1.3'
2 parents 4107e26 + ce47d78 commit f768c4c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 0.1.3
2+
3+
* Added hotjar script
4+
15
### 0.1.2
26

37
**Update the about page:**

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ group :development, :test do
3131
gem 'spring'
3232
gem 'letter_opener'
3333
gem 'pry'
34-
gem 'web-console', '~> 2.2'
3534
end
3635

3736
group :development do
@@ -40,6 +39,7 @@ group :development do
4039
gem 'capistrano-rails', '~> 1.1', require: false
4140
gem 'capistrano-bundler', '~> 1.1', require: false
4241
gem 'capistrano-passenger', '~> 0.1.1', require: false
42+
gem 'web-console', '~> 2.2'
4343
end
4444

4545
group :test do

app/views/layouts/client.html.erb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@
1616
}
1717
<% end %>
1818
</style>
19+
20+
<% if Rails.env.production? %>
21+
<!-- Hotjar Tracking Code for ODV - Ocean Data Viewer -->
22+
<script>
23+
(function(h,o,t,j,a,r){
24+
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
25+
h._hjSettings={hjid:3261398,hjsv:6};
26+
a=o.getElementsByTagName('head')[0];
27+
r=o.createElement('script');r.async=1;
28+
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
29+
a.appendChild(r);
30+
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
31+
</script>
32+
<% end %>
1933
</head>
2034

2135
<body class="<%= yield :body_class %>">

0 commit comments

Comments
 (0)