FEATURE: add Google Analytics code to more user pages

This commit is contained in:
Arpit Jalan 2016-04-02 01:29:08 +05:30
parent 66cf27a7e0
commit 05164d4cae
3 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
<div id='simple-container'> <div id='simple-container'>
<span style="font-size: 16px; line-height: 24px;"><%= @message.html_safe %></span> <span style="font-size: 16px; line-height: 24px;"><%= @message.html_safe %></span>
</div> </div>
<%- content_for(:no_ember_head) do %>
<%= render_google_universal_analytics_code %>
<%- end %>
<%= render_google_analytics_code %>

View file

@ -12,6 +12,7 @@
<%- content_for(:no_ember_head) do %> <%- content_for(:no_ember_head) do %>
<%= script "ember_jquery" %> <%= script "ember_jquery" %>
<%= script "vendor" %> <%= script "vendor" %>
<%= render_google_universal_analytics_code %>
<%- end %> <%- end %>
<script language="javascript"> <script language="javascript">
@ -39,3 +40,5 @@
}); });
})(); })();
</script> </script>
<%= render_google_analytics_code %>

View file

@ -50,6 +50,7 @@
<%- content_for(:no_ember_head) do %> <%- content_for(:no_ember_head) do %>
<%= script "ember_jquery" %> <%= script "ember_jquery" %>
<%= render_google_universal_analytics_code %>
<%- end %> <%- end %>
<script type="text/javascript"> <script type="text/javascript">
@ -63,3 +64,5 @@
$.ajax('<%= path "/users/confirm-email-token/#{params[:token]}" %>', {dataType: 'json'}); $.ajax('<%= path "/users/confirm-email-token/#{params[:token]}" %>', {dataType: 'json'});
</script> </script>
<%= render_google_analytics_code %>