Skip to content

Commit

Permalink
Add Google Tag Manager in admin header
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed May 24, 2023
1 parent 343ffbb commit 041e2a5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/overrides/layouts/decidim/admin/_header.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

Deface::Override.new(virtual_path: "layouts/decidim/admin/_application",
name: "add_google_tag_manager_to_admin_header",
insert_after: "title",
original: "0710a40f1df23769d6c2001dd49d4e5f6389409e") do
<<-EOGTM
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=<%= google_tag_manager_code %>"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
EOGTM
end

0 comments on commit 041e2a5

Please sign in to comment.