Skip to content

Commit

Permalink
Merge pull request #1624 from Nexmo/APIDOC-325_remove_google_analytics
Browse files Browse the repository at this point in the history
APIDOC-325: removed GOOGLE_TAG and analytics
  • Loading branch information
marcoranieri authored Sep 26, 2022
2 parents 42f42a9 + 947a6a6 commit b725110
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 26 deletions.
20 changes: 0 additions & 20 deletions lib/nexmo_developer/app/views/layouts/partials/_head.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,6 @@
</script>
<% end %>
<% if ENV['GOOGLE_ANALYTICS_TRACKING_ID'] %>
<script>
(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','https://www.google-analytics.com/analytics.js','ga');

ga('create', '<%= ENV['GOOGLE_ANALYTICS_TRACKING_ID'] %>', 'auto');
ga('send', 'pageview');
</script>
<% end %>
<% if ENV['GOOGLE_TAG_MANAGER_ID'] %>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','<%= ENV['GOOGLE_TAG_MANAGER_ID'] %>');</script>
<% end %>
<% if ENV['HOTJAR_ID'] %>
<script>
(function(h,o,t,j,a,r){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<% header = Header.new %>
<%= render partial: 'layouts/partials/post-body-tags' %>

<div class="Adp-header">
<header id="header" class="Adp-header__main Vlt-M-plus">
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion lib/nexmo_developer/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NexmoDeveloper
VERSION = '0.5.10'.freeze
VERSION = '0.5.11'.freeze
end

0 comments on commit b725110

Please sign in to comment.