Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add trigger_today_button gtm event

Ed Plato5ce5cb1f5bb0
diff --git a/web/js/modules/date/actions.js b/web/js/modules/date/actions.js
index dc7d614a2..4d88d79bb 100644
--- a/web/js/modules/date/actions.js
+++ b/web/js/modules/date/actions.js
@@ -1,3 +1,4 @@
+import googleTagManager from 'googleTagManager';
import {
CHANGE_TIME_SCALE,
CHANGE_CUSTOM_INTERVAL,
@@ -28,6 +29,10 @@ export function triggerTodayButton() {
const selectedDateTime = selectedDate.getTime();
const appNowTime = appNow.getTime();
if (selectedDateTime !== appNowTime) {
+ googleTagManager.pushEvent({
+ event: 'trigger_today_button',
+ });
+
dispatch({
type: SELECT_DATE,
activeString,