Skip to content

Commit

Permalink
구글 애널리틱스 추적코드를 변경합니다
Browse files Browse the repository at this point in the history
  • Loading branch information
dali committed May 14, 2018
1 parent 4df2d72 commit 37300c8
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@


- if Rails.env.production?
%script{ async: true, src: "https://www.googletagmanager.com/gtag/js?id=UA-119238793-1" }
:javascript
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-119238793-1');
ga('create', 'UA-74081354-1', 'auto');
ga('send', 'pageview');
/ Facebook Pixel Code
:javascript
!function(f,b,e,v,n,t,s)
Expand All @@ -53,8 +52,4 @@
fbq('track', 'PageView');
%noscript
%img{:height => "1", :src => "https://www.facebook.com/tr?id=1434967733269458&ev=PageView&noscript=1", :style => "display:none", :width => "1"}/
/ End Facebook Pixel Code

/ End Facebook Pixel Code


/ End Facebook Pixel Code

0 comments on commit 37300c8

Please sign in to comment.