Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rmi22186 committed Sep 26, 2023
1 parent a0d4ecf commit 361036e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/GA4Client/src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Common.prototype.standardizeName = function (name) {
name = window.GoogleAnalytics4Kit.setCustomNameStandardization(name);
} catch (e) {
console.error(
'Error calling setCustomNameStandardization callback. Check your callback. Data will still be sent without user-defined standardization',
'Error calling setCustomNameStandardization callback. Check your callback. Data will still be sent without user-defined standardization. See our docs for proper use - https://docs.mparticle.com/integrations/google-analytics-4/event/',
e
);
}
Expand Down
10 changes: 5 additions & 5 deletions packages/GA4Client/src/initialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ var initialization = {
) {
mParticle._setIntegrationDelay(this.moduleId, true);

// Due to current limitations, the API for allowing a customer to cleanse
// their data before our cleansing occurs must be placed on the
// window.GoogleAnalytics4Kit object. This exists when initializing MP
// SDK via snippet, but not via npm. If a customer uses npm, using the API
// requires window.GoogleAnalytics4Kit to exist on the page.
// The API to allow a customer to provide the cleansing callback
// relies on window.GoogleAnalytics4Kit to exist. When MP is initialized
// via the snippet, the kit code adds it to the window automatically.
// However, when initialized via npm, it does not exist, and so we have
// to set it manually here.
window.GoogleAnalytics4Kit = window.GoogleAnalytics4Kit || {};

common.forwarderSettings = forwarderSettings;
Expand Down

0 comments on commit 361036e

Please sign in to comment.