Add gtags to static pages
This commit is contained in:
parent
68713edd61
commit
239d4a3ed0
3 changed files with 12 additions and 10 deletions
|
@ -38,6 +38,15 @@
|
|||
|
||||
= yield :header_tags
|
||||
|
||||
%script(src="https://www.googletagmanager.com/gtag/js?id=AW-11130587137" async)
|
||||
|
||||
:javascript
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'AW-11130587137');
|
||||
|
||||
%body{ class: body_classes }
|
||||
= content_for?(:content) ? yield(:content) : yield
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue