@blotoutio/providers-google-analytics-4-sdk 1.63.3 → 1.64.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +26 -2
- package/index.js +26 -2
- package/index.mjs +26 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -484,7 +484,31 @@ const usStates = new Map([
|
|
|
484
484
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
485
485
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
486
486
|
]);
|
|
487
|
-
|
|
487
|
+
/**
|
|
488
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
489
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
490
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
491
|
+
*/
|
|
492
|
+
const caProvinces = new Map([
|
|
493
|
+
['CA-AB', 'Alberta'],
|
|
494
|
+
['CA-BC', 'British Columbia'],
|
|
495
|
+
['CA-MB', 'Manitoba'],
|
|
496
|
+
['CA-NB', 'New Brunswick'],
|
|
497
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
498
|
+
['CA-NS', 'Nova Scotia'],
|
|
499
|
+
['CA-NT', 'Northwest Territories'],
|
|
500
|
+
['CA-NU', 'Nunavut'],
|
|
501
|
+
['CA-ON', 'Ontario'],
|
|
502
|
+
['CA-PE', 'Prince Edward Island'],
|
|
503
|
+
['CA-QC', 'Quebec'],
|
|
504
|
+
['CA-SK', 'Saskatchewan'],
|
|
505
|
+
['CA-YT', 'Yukon'],
|
|
506
|
+
]);
|
|
507
|
+
new Set([
|
|
508
|
+
...isoCountries.keys(),
|
|
509
|
+
...usStates.keys(),
|
|
510
|
+
...caProvinces.keys(),
|
|
511
|
+
]);
|
|
488
512
|
|
|
489
513
|
/** This function will create a deep copy using JSON stringify/parse
|
|
490
514
|
* that will also remove all methods from the incoming objects. Use
|
|
@@ -972,7 +996,7 @@ const tag = ({ data, eventName, manifestVariables, eventId, pageUrl, }) => {
|
|
|
972
996
|
}
|
|
973
997
|
return {
|
|
974
998
|
loaded: isLoaded,
|
|
975
|
-
sdkVersion: "1.
|
|
999
|
+
sdkVersion: "1.64.1" ,
|
|
976
1000
|
};
|
|
977
1001
|
};
|
|
978
1002
|
|
package/index.js
CHANGED
|
@@ -485,7 +485,31 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
485
485
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
486
486
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
487
487
|
]);
|
|
488
|
-
|
|
488
|
+
/**
|
|
489
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
490
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
491
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
492
|
+
*/
|
|
493
|
+
const caProvinces = new Map([
|
|
494
|
+
['CA-AB', 'Alberta'],
|
|
495
|
+
['CA-BC', 'British Columbia'],
|
|
496
|
+
['CA-MB', 'Manitoba'],
|
|
497
|
+
['CA-NB', 'New Brunswick'],
|
|
498
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
499
|
+
['CA-NS', 'Nova Scotia'],
|
|
500
|
+
['CA-NT', 'Northwest Territories'],
|
|
501
|
+
['CA-NU', 'Nunavut'],
|
|
502
|
+
['CA-ON', 'Ontario'],
|
|
503
|
+
['CA-PE', 'Prince Edward Island'],
|
|
504
|
+
['CA-QC', 'Quebec'],
|
|
505
|
+
['CA-SK', 'Saskatchewan'],
|
|
506
|
+
['CA-YT', 'Yukon'],
|
|
507
|
+
]);
|
|
508
|
+
new Set([
|
|
509
|
+
...isoCountries.keys(),
|
|
510
|
+
...usStates.keys(),
|
|
511
|
+
...caProvinces.keys(),
|
|
512
|
+
]);
|
|
489
513
|
|
|
490
514
|
/** This function will create a deep copy using JSON stringify/parse
|
|
491
515
|
* that will also remove all methods from the incoming objects. Use
|
|
@@ -973,7 +997,7 @@ var ProvidersGoogleAnalytics4Sdk = (function () {
|
|
|
973
997
|
}
|
|
974
998
|
return {
|
|
975
999
|
loaded: isLoaded,
|
|
976
|
-
sdkVersion: "1.
|
|
1000
|
+
sdkVersion: "1.64.1" ,
|
|
977
1001
|
};
|
|
978
1002
|
};
|
|
979
1003
|
|
package/index.mjs
CHANGED
|
@@ -482,7 +482,31 @@ const usStates = new Map([
|
|
|
482
482
|
['US-UM', 'United States Minor Outlying Islands'],
|
|
483
483
|
['US-VI', 'Virgin Islands, U.S.'],
|
|
484
484
|
]);
|
|
485
|
-
|
|
485
|
+
/**
|
|
486
|
+
* ISO 3166-2:CA province and territory codes, keyed `CA-XX` to mirror
|
|
487
|
+
* `usStates`. Used by the consent banner's Canada region to offer province
|
|
488
|
+
* selection (Québec is treated specially by the regional consent config).
|
|
489
|
+
*/
|
|
490
|
+
const caProvinces = new Map([
|
|
491
|
+
['CA-AB', 'Alberta'],
|
|
492
|
+
['CA-BC', 'British Columbia'],
|
|
493
|
+
['CA-MB', 'Manitoba'],
|
|
494
|
+
['CA-NB', 'New Brunswick'],
|
|
495
|
+
['CA-NL', 'Newfoundland and Labrador'],
|
|
496
|
+
['CA-NS', 'Nova Scotia'],
|
|
497
|
+
['CA-NT', 'Northwest Territories'],
|
|
498
|
+
['CA-NU', 'Nunavut'],
|
|
499
|
+
['CA-ON', 'Ontario'],
|
|
500
|
+
['CA-PE', 'Prince Edward Island'],
|
|
501
|
+
['CA-QC', 'Quebec'],
|
|
502
|
+
['CA-SK', 'Saskatchewan'],
|
|
503
|
+
['CA-YT', 'Yukon'],
|
|
504
|
+
]);
|
|
505
|
+
new Set([
|
|
506
|
+
...isoCountries.keys(),
|
|
507
|
+
...usStates.keys(),
|
|
508
|
+
...caProvinces.keys(),
|
|
509
|
+
]);
|
|
486
510
|
|
|
487
511
|
/** This function will create a deep copy using JSON stringify/parse
|
|
488
512
|
* that will also remove all methods from the incoming objects. Use
|
|
@@ -970,7 +994,7 @@ const tag = ({ data, eventName, manifestVariables, eventId, pageUrl, }) => {
|
|
|
970
994
|
}
|
|
971
995
|
return {
|
|
972
996
|
loaded: isLoaded,
|
|
973
|
-
sdkVersion: "1.
|
|
997
|
+
sdkVersion: "1.64.1" ,
|
|
974
998
|
};
|
|
975
999
|
};
|
|
976
1000
|
|