Skip to content

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.js
index 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-vars
import whatInput from 'what-input';
-import googleTagManager from 'googleTagManager';
// Utils
import { 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 notifications
console.info(
`${Brand.NAME
diff --git a/web/js/components/util/google-tag-manager.js b/web/js/components/util/google-tag-manager.js
index 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,
+ // });
+ // }
};