diff --git a/app/views/home/index.html.slim b/app/views/home/index.html.slim index 9bfdcd040..2656f1efe 100644 --- a/app/views/home/index.html.slim +++ b/app/views/home/index.html.slim @@ -1,3 +1,8 @@ +- content_for :head do + // Event snippet for Website traffic conversion page + javascript: + gtag('event', 'conversion', {'send_to': 'AW-11382454124/o0V1CIzO2O8YEOzuybMq'}); + main section class="relative bg-electric-teal hidden" data-controller="banner" data-banner-target="banner" div class="flex max-w-3xl mx-auto py-7 md:py-8" diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index c27ee8382..3db84580e 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -29,6 +29,12 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','<%= Rails.application.credentials.dig(Rails.env.to_sym)[:google_tag_key] %>'); + + + +