@blotoutio/providers-google-ads-clicks-sdk 0.19.0 → 0.21.0

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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -129,13 +129,14 @@ var ProvidersGoogleAdsClicksSdk = (function () {
129
129
  };
130
130
 
131
131
  const tag = ({ data, eventName, manifestVariables, eventId }) => {
132
- const isLoaded = (window === null || window === void 0 ? void 0 : window.gtag) && getCookieValue('_gAds_loaded') === '1';
132
+ const isInIframe = window.self !== window.top;
133
+ const isLoaded = (window === null || window === void 0 ? void 0 : window.gtag) && getCookieValue('_gAds_loaded') === '1' && !isInIframe;
133
134
  if (isLoaded) {
134
135
  handleTag({ data, eventName, manifestVariables, eventId });
135
136
  }
136
137
  return {
137
138
  loaded: isLoaded,
138
- sdkVersion: "0.19.0" ,
139
+ sdkVersion: "0.21.0" ,
139
140
  };
140
141
  };
141
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotoutio/providers-google-ads-clicks-sdk",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "Google Ads Browser SDK for EdgeTag",
5
5
  "author": "Blotout",
6
6
  "license": "MIT",