mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-17 01:45:53 -07:00
chore: manually add assets
This commit is contained in:
parent
86dd159a99
commit
7ae453a61c
29 changed files with 188015 additions and 20211 deletions
12
app/views/layouts/dashboard/_google_analytics.html.erb
Normal file
12
app/views/layouts/dashboard/_google_analytics.html.erb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= google_analytics_id %>"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
|
||||
gtag('js', new Date());
|
||||
gtag('config', <%= google_analytics_id.to_json.html_safe %>);
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue