summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2017-01-17 14:11:44 +0000
committerBen Copeland <ben.copeland@linaro.org>2017-01-17 14:59:21 +0000
commit17bbc9fbf2cd4d70eef46846748bb8cc7962ff74 (patch)
tree5621be7d1d62105d4fae6f34faa3a1ffa841585b
parented91db3977d6e389e780da82ec661ed99a1251a1 (diff)
Google Tag: Add code to missing pages.
As per ticket #SYS-142. Change-Id: I547d07005c6da8630794bf6731b60fdf252876ea
-rw-r--r--linaro_metrics/templates/linaro_metrics/index.html2
-rw-r--r--linaro_metrics/templates/linaro_metrics/project.html10
-rw-r--r--linaro_metrics/templates/linaro_metrics/team.html10
3 files changed, 21 insertions, 1 deletions
diff --git a/linaro_metrics/templates/linaro_metrics/index.html b/linaro_metrics/templates/linaro_metrics/index.html
index eaaa56a..a61ae3c 100644
--- a/linaro_metrics/templates/linaro_metrics/index.html
+++ b/linaro_metrics/templates/linaro_metrics/index.html
@@ -87,7 +87,7 @@ function selectTab(item) {
}
}
</script>
-
+ <!-- Google Tag Manager -->
<script>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push(
{'gtm.start': new Date().getTime(),event:'gtm.js'}
diff --git a/linaro_metrics/templates/linaro_metrics/project.html b/linaro_metrics/templates/linaro_metrics/project.html
index 6afe215..8a6a593 100644
--- a/linaro_metrics/templates/linaro_metrics/project.html
+++ b/linaro_metrics/templates/linaro_metrics/project.html
@@ -27,6 +27,16 @@
]
};
</script>
+ <!-- Google Tag Manager -->
+ <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','GTM-N87XCWM');
+ </script>
+ <!-- End Google Tag Manager -->
<style>
table#project_details {
diff --git a/linaro_metrics/templates/linaro_metrics/team.html b/linaro_metrics/templates/linaro_metrics/team.html
index d37df47..94ba668 100644
--- a/linaro_metrics/templates/linaro_metrics/team.html
+++ b/linaro_metrics/templates/linaro_metrics/team.html
@@ -41,6 +41,16 @@
};
</script>
+ <!-- Google Tag Manager -->
+ <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','GTM-N87XCWM');
+ </script>
+ <!-- End Google Tag Manager -->
{% endblock %}
{% block title %}Patches credited to the "{{team}}" team{% endblock %}