Interactive interface for browsing global, full-resolution satellite imagery
disable ipify API GTM event
Ed Plato7fe4bc638c69
diff --git a/web/js/app.js b/web/js/app.jsindex 9ef9b9db7..a798ba4b7 100644--- a/web/js/app.js+++ b/web/js/app.js@@ -3,7 +3,6 @@ import { connect } from 'react-redux';import PropTypes from 'prop-types';// eslint-disable-next-line no-unused-varsimport whatInput from 'what-input';-import googleTagManager from 'googleTagManager';// Utilsimport { calculateResponsiveState } from 'redux-responsive';@@ -137,11 +136,12 @@ class App extends React.Component {}if (Brand.release()) {- if (config.features.googleTagManager) {- if (window.location.href.includes(Brand.BRAND_URL)) {- googleTagManager.getIpAddress();- }- }+ // Disabled GTM ipAddress - https://www.ipify.org/ API+ // if (config.features.googleTagManager) {+ // if (window.location.href.includes(Brand.BRAND_URL)) {+ // googleTagManager.getIpAddress();+ // }+ // }// Console build version notificationsconsole.info(`${Brand.NAMEdiff --git a/web/js/components/util/google-tag-manager.js b/web/js/components/util/google-tag-manager.jsindex 400495fb9..ea6970326 100644--- a/web/js/components/util/google-tag-manager.js+++ b/web/js/components/util/google-tag-manager.js@@ -24,14 +24,14 @@ export default {* @return {void}*/// get user IP address for GTM/GA using https://www.ipify.org/ API- async getIpAddress() {- const response = await fetch('https://api.ipify.org?format=json');- const json = await response.json();- const ipAddress = json.ip;+ // async getIpAddress() {+ // const response = await fetch('https://api.ipify.org?format=json');+ // const json = await response.json();+ // const ipAddress = json.ip;- this.pushEvent({- event: 'ipAddress',- ipAddress,- });- }+ // this.pushEvent({+ // event: 'ipAddress',+ // ipAddress,+ // });+ // }};