From 6f544a8b3793837260d0dfcc310c9ca91818c04f Mon Sep 17 00:00:00 2001 From: Gaurav Kochar Date: Mon, 26 Feb 2024 17:36:26 +0530 Subject: [PATCH 1/4] Worked on adding consent signal in Google tag --- integrations/google-adwords-new/lib/index.js | 27 +++++++++ .../google-adwords-new/test/index.test.js | 58 +++++++++++++++++-- 2 files changed, 81 insertions(+), 4 deletions(-) diff --git a/integrations/google-adwords-new/lib/index.js b/integrations/google-adwords-new/lib/index.js index 39317b99f..651aa12db 100644 --- a/integrations/google-adwords-new/lib/index.js +++ b/integrations/google-adwords-new/lib/index.js @@ -9,6 +9,7 @@ var each = require('@ndhoule/each'); var find = require('obj-case'); var reject = require('reject'); var extend = require('extend'); +const UNSPECIFIED='unspecified'; /** * Expose `GoogleAdWordsNew` integration. @@ -23,6 +24,12 @@ var GoogleAdWordsNew = (module.exports = integration('Google AdWords New') .option('defaultPageConversion', '') .option('disableAdPersonalization', false) .option('floodlightAccountId', '') + .option('enableConsentMode',false) + .option('adUserDataConsentState') + .option('adPersonalizationConsentState') + .option('defaultAdsStorageConsentState') + .option('defaultAnalyticsStorageConsentState') + .option('waitTimeToUpdateConsentStage') // The ID in this line (i.e. the gtag.js ID) does not determine which account(s) will receive data from the tag; rather, it is used to uniquely identify your global site tag. Which account(s) receive data from the tag is determined by calling the config command (and by using the send_to parameter on an event). For instance, if you use Google Analytics, you may already have the gtag.js global site tag installed on your site. In that case, the gtag.js ID may be that of the Google Analytics property where you first obtained the snippet. .tag( '