Skip to content
Snippets Groups Projects
Commit faea03ce authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Added google analytics events for new date range controls

parent 1bb164cf
No related branches found
No related tags found
No related merge requests found
......@@ -381,8 +381,11 @@ const createDaterangeControls = function(elem, {siteno, showControls}) {
li.append('input')
.attr('type', 'radio')
.attr('name', 'ts-daterange-input')
.attr('id', (d) => d.label)
.attr('value', (d) => d.period)
.attr('id', d => d.label)
.attr('value', d => d.period)
.attr('ga-on', 'click')
.attr('ga-event-category', 'TimeSeriesGraph')
.attr('ga-event-action', d => `changeDateRangeTo${d.period}`)
.on('change', dispatch(function () {
return Actions.retrieveExtendedTimeSeries(
siteno,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment