Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Ads bullet point from Consent Mode modal when Ads is not connected. #8381

Closed
4 tasks done
techanvil opened this issue Mar 12, 2024 · 5 comments
Closed
4 tasks done
Labels
P1 Medium priority Squad 2 (Team M) Issues for Squad 2 Type: Enhancement Improvement of an existing feature

Comments

@techanvil
Copy link
Collaborator

techanvil commented Mar 12, 2024

Feature Description

When an Ads Conversion ID has not been set up, we should not show the "Performance of your Ad campaigns" bullet point in the disable modal (screenshots taken from Figma):

image

As a result the copy above the bullet points should also be updated, so the modal description and bullet point list should read as follows:

image

See also the related issue #8389.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • When Ads is not considered "connected" for the purpose of the Consent Mode feature:
    • The Consent Mode disable modal should have its description copy updated as per the latest iteration of the Figma design:
      • Disabling consent mode may affect your ability in the European Economic Area and the United Kingdom to:
    • The bullet point relating to Ads should be removed.
    • The remaining bullet point's copy should be updated to: Track how visitors interact with your site
  • Note that for Ads to be considered connected within this context, at least of one of the following should be true:
    • An Ads Conversion Tracking ID has been configured.
    • An Ads link has been created for the current GA4 property.
    • The Google tag for the current GA4 property has an Ads tag as a destination.

Implementation Brief

  • Update assets/js/components/consent-mode/ConfirmDisableConsentModeDialog.js:
  • Get the adsConversionID from the MODULE_ADS store using the getAdsConversionID selector.
  • Add a new variable that uses useMemo to return a new provides array based on the Ads Conversion ID's presence:
	const provides = useMemo( () => {
		let providesArray = [
			__(
				'How visitors interact with your site via Analytics',
				'google-site-kit'
			),
		];

		if ( adsConversionID !== undefined && adsConversionID !== '' ) {
			providesArray = [
				...providesArray,
				__( 'Performance of your Ad campaigns', 'google-site-kit' ),
			];
		}

		return providesArray;
	}, [ adsConversionID ] );
  • Update the provides prop on the ModalDialog to take the new provides array: provides={ provides }

Test Coverage

  • No additional test coverage is required.

QA Brief

Ads Module Connected

  • Ensure the Ads module is connected.
  • Navigate to Settings->Admin Settings page.
  • Disable the "Enable consent mode" toggle switch.
  • Verify that the modal's description remains unchanged from the current version.
  • Confirm that the list of bullet points remains unchanged from the current version.

Ads Module Disconnected

  • Disconnect the Ads module.
  • Navigate back to the Settings -> Admin Settings page.
  • Again, disable the "Enable Consent Mode" toggle switch.
  • Verify that the modal's description is updated to match the specific text provided in the AC.
  • Ensure that the bullet point related to the Ads module is removed. Confirm that the remaining bullet point is updated as specified in the AC.

Changelog entry

  • Remove warning about Ad campaigns in the Consent Mode deactivation modal if Google Ads is not connected.
@techanvil techanvil added P1 Medium priority Type: Enhancement Improvement of an existing feature labels Mar 12, 2024
@benbowler benbowler assigned benbowler and unassigned benbowler Mar 13, 2024
@eugene-manuilov eugene-manuilov self-assigned this Mar 13, 2024
@eugene-manuilov
Copy link
Collaborator

IB ✔️

@eugene-manuilov eugene-manuilov removed their assignment Mar 13, 2024
@ivonac4 ivonac4 added the Squad 2 (Team M) Issues for Squad 2 label Apr 3, 2024
@hussain-t hussain-t self-assigned this Apr 7, 2024
@hussain-t
Copy link
Collaborator

Hi @techanvil, we have updated the description copy to include "and the United Kingdom" as part of #8389. Could you confirm if, in the absence of the Ads conversion ID, the description should now read: "Disabling consent mode may affect your ability in the European Economic Area and the United Kingdom to"? Also, should the bullet point be revised to "Track how visitors interact with your site"?

@techanvil
Copy link
Collaborator Author

Hi @hussain-t, thanks for raising this. The copy should indeed be updated as you've pointed out.

I've also realised the AC had become a bit out of date with regard to the conditions for determining if Ads is connected, and have updated it accordingly. Please can you ensure the implementation follows the AC? If you want to send it back to IB to ensure the IB is also aligned, please feel free to do so, but if you prefer to simply address this during execution that seems fine to me too.

@hussain-t
Copy link
Collaborator

Thanks for the clarification, @techanvil. We don't need to move it to IB. I will address the changes in my PR.

@wpdarren
Copy link
Collaborator

QA Update: ✅

Verified:

Ads Module Connected

  • The modal's description remains unchanged from the current version.
  • The list of bullet points remains unchanged from the current version.

image

Ads Module Disconnected

  • The modal's description is updated to match the specific text provided in the AC.
  • The bullet point related to the Ads module is removed.
  • The remaining bullet point is updated as specified in the AC.

image

I tested this when:

  • An Ads Conversion Tracking ID was configured.
  • An Ads link was created for the current GA4 property. (oi.ie)
  • The Google tag for the current GA4 property has an Ads tag as a destination.

@wpdarren wpdarren removed their assignment Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 Medium priority Squad 2 (Team M) Issues for Squad 2 Type: Enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

8 participants