Skip to content

Commit

Permalink
Merge pull request #476 from PEM-Humboldt/hotfix/2.11.2
Browse files Browse the repository at this point in the history
Hotfix/2.11.2
  • Loading branch information
cazapatamar authored Jan 22, 2025
2 parents 9e1a1f0 + cd9ae57 commit a9f8a27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ gem 'coffee-rails', '~> 5.0.0'

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks', '~> 5.2.0'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
Expand Down
4 changes: 0 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,6 @@ GEM
stringio (3.0.2)
thor (1.2.1)
tilt (2.0.10)
turbolinks (5.2.1)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
warden (1.2.9)
Expand Down Expand Up @@ -285,7 +282,6 @@ DEPENDENCIES
sdoc (~> 2.0, >= 2.0.3)
simple_form (>= 3.5.0)
spring (~> 2.0.2)
turbolinks (~> 5.2.0)
web-console (~> 4.0)

BUNDLED WITH
Expand Down
15 changes: 5 additions & 10 deletions app/assets/javascripts/analytics.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
window.dataLayer = window.dataLayer || []
function gtag() { dataLayer.push(arguments) }

gtag('js', new Date())

const trackGoogleAnalytics = (event) => {
gtag('config', 'G-WD07J9FEXQ', {
'cookie_flags': 'max-age=7200;secure;samesite=none'
})
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

document.addEventListener('turbolinks:load', trackGoogleAnalytics)
gtag("config", "G-WD07J9FEXQ");

0 comments on commit a9f8a27

Please sign in to comment.