Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GLA Manual Smoke Tests
Use this guide to smoke-test the plugin (for compatibility or other reasons). If there's a common use case or cause of errors not included, please add it!
After each step during testing, be sure to check the debug logs and the browser console for errors, warnings, or notices.
Prerequisites: Wordpress.com and Google accounts, WooCommerce store with existing products and categories. (For example, see Importing WooCommerce Sample Data ).
Install extension / Uninstall extension
Onboarding Wizard
Set up your accounts
Choose your audience and product listings
Confirm store requirements
Complete your campaign
After onboarding is complete:
Google Listings & Ads > Dashboard
Google Listings & Ads > Reports
Programs tab
Products tab
Google Listings & Ads > Product Feed
Google Listings & Ads > Settings
Sync Products with Google Merchant Center
Note that the following operations with Google MC can take some minutes.
The Mismatched URL will block product synchronization. To test this part in a local environment, please try making the following adjustments to the local env first:
Sync All Products
andDelete All Synced Products
.Delete All Synced Products
.Sync All Products
.Gtag events
(Optional) Test Gtag events manually
page_view
event is present.view_item
event is present.page_view
event is present with additional cart details.conversion
andpurchase
events are present.https://www.google.com/pagead
with theadd_to_cart
event.Google connection between multiple sites
Note that this test requires to set up one local WooCommerce Connect Server and two WP sites that using the same Google account in GLA plugin.
Individual refresh tokens
wcc_token
, each site should have their own refresh token inrefresh_token
column.wcc_token
, modify thetoken_expires
column for both sites to make the access token expired.wcc_token
, the columnsaccess_token
andtoken_expires
have been updated.Disconnect one site does not affect the other site
wcc_token
table.wcc_token
table again.Composer package conflicts with other plugins
This is a tricky one to test as we found a few conflicting plugins but we don’t have a clear set of “other” plugins that use the same libraries. In this test we pick Flexible Shipping UPS and BackWPUp as both had conflicts with GLA in the past, but there might be more plugins that use the same packages would have conflicts. The issue #1976 is an example for fixing a conflict with another plugin. This test may only be required when we are releasing GLA with updated composer packages.
wp-admin/admin.php?page=wc-settings&tab=shipping
, addUPS Live Rates
shipping method to the shipping zone you're testing.