You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apex.apache.org by pr...@apache.org on 2017/08/30 23:05:36 UTC
[apex-site] branch master updated: tracking download button click
event
This is an automated email from the ASF dual-hosted git repository.
pramod pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apex-site.git
The following commit(s) were added to refs/heads/master by this push:
new ad4d38b tracking download button click event
ad4d38b is described below
commit ad4d38b9a63d77bfe6045215c05cbea14bb3fe1e
Author: Michelle Xiao <mi...@datatorrent.com>
AuthorDate: Thu Jan 19 11:04:01 2017 -0800
tracking download button click event
---
navigation.json | 2 +-
src/partials/footer.handlebars | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/navigation.json b/navigation.json
index 5935845..e91be87 100644
--- a/navigation.json
+++ b/navigation.json
@@ -16,5 +16,5 @@
{ "label": "Apex Malhar", "href": "https://github.com/apache/apex-malhar" },
{ "label": "Apex Site", "href": "https://github.com/apache/apex-site" }
] },
- { "id": "download", "label": "Download", "href": "/downloads.html", "classes": "btn btn-success" }
+ { "id": "download", "label": "Download", "href": "/downloads.html", "classes": "btn btn-success btn-download" }
]
diff --git a/src/partials/footer.handlebars b/src/partials/footer.handlebars
index 9c84fbf..3de3137 100644
--- a/src/partials/footer.handlebars
+++ b/src/partials/footer.handlebars
@@ -17,6 +17,16 @@
<script>
$('#copyright-year').text((new Date()).getFullYear());
+
+ $('.btn-download').click(function(e){
+ ga('send', {
+ hitType: 'event',
+ eventCategory: 'Download Button',
+ eventAction: 'Button Click',
+ eventLabel: 'Page Header'
+ });
+ });
+
</script>
</body>
--
To stop receiving notification emails like this one, please contact
['"commits@apex.apache.org" <co...@apex.apache.org>'].