Skip to content

Commit

Permalink
Add local.simple-talk.com as an excluded GA4 environment. (#503)
Browse files Browse the repository at this point in the history
* Added local.simple-talk.com as an excluded GA4 environment.

* Version bump to v14.2.1

* Add version number to deprecated functions
  • Loading branch information
edwardcasbon authored Oct 11, 2023
1 parent d87a6ed commit ec0586c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions dist/honeycomb.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var init = function init() {
});
};
var isExcludedEnvironment = exports.isExcludedEnvironment = function isExcludedEnvironment() {
var excludedEnvironments = ['localhost', 'local.red-gate.com', 'local.honeycomb.com', 'webstaging.red-gate.com', 'coredev-uat'];
var excludedEnvironments = ['localhost', 'local.red-gate.com', 'local.honeycomb.com', 'local.simple-talk.com', 'webstaging.red-gate.com', 'coredev-uat'];
var isExcluded = false;
excludedEnvironments.forEach(function (environment) {
if (window.location.host.includes(environment)) {
Expand Down Expand Up @@ -257,13 +257,13 @@ var setupTrackingAlias = exports.setupTrackingAlias = function setupTrackingAlia
}
};
var setCustomVariable = function setCustomVariable() {
(0, _honeycombNotification.logDeprecatedFunctionToConsole)('setCustomVariable', 'Google Analytics');
(0, _honeycombNotification.logDeprecatedFunctionToConsole)('setCustomVariable', 'Google Analytics', '14.2.0');
};
var setOptimizeId = function setOptimizeId() {
(0, _honeycombNotification.logDeprecatedFunctionToConsole)('setOptimizeId', 'Google Analytics');
(0, _honeycombNotification.logDeprecatedFunctionToConsole)('setOptimizeId', 'Google Analytics', '14.2.0');
};
var setSites = function setSites() {
(0, _honeycombNotification.logDeprecatedFunctionToConsole)('setSites', 'Google Analytics');
(0, _honeycombNotification.logDeprecatedFunctionToConsole)('setSites', 'Google Analytics', '14.2.0');
};
var _default = exports["default"] = {
init: init,
Expand Down
2 changes: 1 addition & 1 deletion dist/honeycomb.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "honeycomb-web-toolkit",
"version": "14.2.0",
"version": "14.2.1",
"repository": {
"type": "git",
"url": "https://github.com/red-gate/honeycomb-web-toolkit"
Expand Down
7 changes: 4 additions & 3 deletions src/analytics/js/honeycomb.analytics.google.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const isExcludedEnvironment = () => {
'localhost',
'local.red-gate.com',
'local.honeycomb.com',
'local.simple-talk.com',
'webstaging.red-gate.com',
'coredev-uat',
];
Expand Down Expand Up @@ -195,15 +196,15 @@ const setupTrackingAlias = (element = document) => {
};

const setCustomVariable = (...args) => {
logDeprecatedFunctionToConsole('setCustomVariable', 'Google Analytics');
logDeprecatedFunctionToConsole('setCustomVariable', 'Google Analytics', '14.2.0');
};

const setOptimizeId = (...args) => {
logDeprecatedFunctionToConsole('setOptimizeId', 'Google Analytics');
logDeprecatedFunctionToConsole('setOptimizeId', 'Google Analytics', '14.2.0');
};

const setSites = (...args) => {
logDeprecatedFunctionToConsole('setSites', 'Google Analytics');
logDeprecatedFunctionToConsole('setSites', 'Google Analytics', '14.2.0');
};

export default {
Expand Down

0 comments on commit ec0586c

Please sign in to comment.