Skip to content

Commit

Permalink
Ajoute le code de tracking hotjar
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon authored and mdomine committed Sep 8, 2020
1 parent fb4e646 commit 45eef1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions app/assets/javascripts/hotjar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Hotjar Tracking Code for https://api.app.eva.beta.gouv.fr
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:1981301,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');

4 changes: 2 additions & 2 deletions config/initializers/active_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@
# config.register_stylesheet 'my_stylesheet.css'
#
# You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
config.register_stylesheet 'restitution_globale/restitution_globale.css'
config.register_stylesheet 'restitution_globale/restitution_globale.css'

#
# To load a javascript file:
# config.register_javascript 'my_javascript.js'
config.register_javascript 'hotjar.js'

# == CSV options
#
Expand Down

0 comments on commit 45eef1d

Please sign in to comment.