File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 99 <%= stylesheet_link_tag "application" , "data-turbo-track" : "reload" %>
1010 <%= javascript_tag '$.fx.off = true;' if Rails . env . test? %>
1111 <%= javascript_importmap_tags %>
12+ <!-- Google tag (gtag.js) -->
13+ < script async src ="https://www.googletagmanager.com/gtag/js?id=G-JWGGYRXL2K "> </ script >
14+ < script >
15+ window . dataLayer = window . dataLayer || [ ] ;
16+ function gtag ( ) { dataLayer . push ( arguments ) ; }
17+ gtag ( 'js' , new Date ( ) ) ;
18+
19+ const config = { } ;
20+ <% if Settings . analytics_debug %>
21+ config . debug_mode = true
22+ <% end %>
23+
24+ gtag ( 'config' , 'G-JWGGYRXL2K' , config )
25+ </ script >
1226</ head >
1327
1428 < body >
Original file line number Diff line number Diff line change @@ -275,3 +275,6 @@ HELP_TEXT:
275275SIDEBAR_STATIC_MAP :
276276 - ' iiif'
277277 - ' iiif_manifest'
278+
279+ # GOOGLE ANALYTICS HANDLING
280+ analytics_debug : true
You can’t perform that action at this time.
0 commit comments