forked from External/greenlight
Added Google Analytics (#749)
This commit is contained in:
committed by
Jesus Federico
parent
c31cf17b22
commit
96ace3265e
@ -16,6 +16,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<% if Rails.configuration.google_analytics %>
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="<%= google_analytics_url %>"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', "<%= ENV["GOOGLE_ANALYTICS_TRACKING_ID"] %>");
|
||||
</script>
|
||||
<% end %>
|
||||
|
||||
<title><%= t("bigbluebutton") %></title>
|
||||
<%= csrf_meta_tags %>
|
||||
|
||||
|
Reference in New Issue
Block a user