-
Notifications
You must be signed in to change notification settings - Fork 69
Smoke Testing WP Consent API integration with other extensions
In general, we do not have the capacity to support integration with so many the extensions in the wild.
That's why we stick to WP Consent API, which should act as somewhat of a "standard" API for others to integrate. We have synthetic WP Consent API checks in our automated and manual testing.
However, to ensure it delivers real value to merchants, we would like to check that there is an extension serving the UI that works over WP Consent API integration.
Complianz setup
- Install GA4W
- Set Google Analytics Tracking Id
/wp-admin/admin.php?page=wc-settings&tab=integration§ion=google_analytics
- Install WP Consent API & Complianz
(optional) you can test it also with the Autoptimize plugin
wp plugin install wp-consent-api --activate wp plugin install complianz --activate
wp plugin install autoptimize --activate
- Set up Complianz through its wizard (
/wp-admin/admin.php?page=complianz#wizard
) using GDPR preset and all defaults, "Show Consent Banner: Yes", "Enable cookie and script blocker: No".
Cookiebot by Usercentric setup
- Install GA4W
- Set Google Analytics Tracking Id
/wp-admin/admin.php?page=wc-settings&tab=integration§ion=google_analytics
- Install WP Consent API & Cookiebot
(optional) you can test it also with the Autoptimize plugin
wp plugin install wp-consent-api --activate wp plugin install cookiebot --activate
wp plugin install autoptimize --activate
- Go through the registration process on
/wp-admin/admin.php?page=cookiebot
. - Obtain “Domaing group ID” from the registration process, or read it from
https://admin.cookiebot.com/domain-groups?page=1
- Fill it in
/wp-admin/admin.php?page=cookiebot_settings
and save the changes
GDPR Cookie Compliance setup
- Install GA4W
- Set Google Analytics Tracking Id
/wp-admin/admin.php?page=wc-settings&tab=integration§ion=google_analytics
- Install WP Consent API & GDPR Cookie Compliance
(optional) you can test it also with the Autoptimize plugin
wp plugin install wp-consent-api --activate wp plugin install gdpr-cookie-compliance --activate
wp plugin install autoptimize --activate
- Enable the "Reject button" in the settings
/wp-admin/admin.php?page=moove-gdpr&tab=banner-settings
(to be have UI to reject all) - Enable the "Flotaing button"
/wp-admin/admin.php?page=moove-gdpr&tab=floating-button
(to get UI to update consent) - Enable the "3rd party cookies"
/wp-admin/admin.php?page=moove-gdpr&tab=third-party-cookies
(marketing
) - Enable the "Additional cookies"
/wp-admin/admin.php?page=moove-gdpr&tab=advanced-cookies
(statistics
)
-
Open https://tagassistant.google.com/ (TA) for your test domain
-
Add an item to the cart
-
Check in TA that the event was hit but w/o consent
-
Grand some consents
-
Check that the update was tracked
-
Add item to the cart
-
Check that this time, it was hit with consent
-
Reload the page
-
Check that the default denies are updated with the opt-in consent is before the
view_item_list
event -
Update content using UI banner again
-
Add the item to the cart and check that the update consent is propagated to the
add_to_cart
event.