-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremove_analytics.patch
More file actions
33 lines (33 loc) · 1.25 KB
/
remove_analytics.patch
File metadata and controls
33 lines (33 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git c/Gruntfile.js w/Gruntfile.js
index d3f6b635..cae36cd6 100755
--- c/Gruntfile.js
+++ w/Gruntfile.js
@@ -261,10 +261,6 @@ module.exports = function (grunt) {
options: {
process: function (content, srcpath) {
if (srcpath.indexOf("index.html") >= 0) {
- // Add Google Analytics code to index.html
- content = content.replace("</body></html>",
- grunt.file.read("src/web/static/ga.html") + "</body></html>");
-
// Add Structured Data for SEO
content = content.replace("</head>",
"<script type='application/ld+json'>" +
diff --git c/src/web/static/ga.html w/src/web/static/ga.html
deleted file mode 100755
index d285cdf9..00000000
--- c/src/web/static/ga.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-<!-- Begin Google Analytics -->
-<script async src="https://www.googletagmanager.com/gtag/js?id=G-G9R4C1H8SR"></script>
-<script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', 'G-G9R4C1H8SR');
-</script>
-<!-- End Google Analytics -->
-