I’m excited to announce a powerful new feature in the Product Sync for GBP plugin! With the release of v1.3.0, you can now customize the Call-to-action button URL.
Combined with WooCommerce’s Add-to-cart URLs, this new capability lets you to:
- Direct visitors straight to the checkout page for a product.
- Send them to the shopping cart page with the product already added.
- Redirect to the product page and automatically add the item to their cart.
- Append UTM tags to track product clicks in Google Analytics and Facebook.
Let’s dive into how this feature works and how you can start using it to boost your GBP product strategy.
How to use the feature
Here’s a step-by-step guide to setting up the Call-to-action button URL feature:
- Update the Plugin: Ensure you’re running the latest version of the plugin. Version v1.3.1 should already be available in the Plugins section of your WordPress dashboard.
- Enable the CTA Button: Navigate to the plugin’s Settings page and switch on the “Add Call-to-action button” toggle if it’s not enabled yet.
By default, the button redirects visitors to the product page, represented by the token {{wc_product.get_permalink}}.
Available tokens
To customize the Call-to-action button URL, you can use these helpful tokens:
- {{wc_checkout_url}}: Links to the checkout page.
- {{wc_cart_url}}: Links to the shopping cart page.
- {{wc_shop_url}}: Links to the main WooCommerce shop page.
- {{wc_product.get_id}}: Retrieves the numeric product ID.
Example use cases
Here are some practical examples to illustrate the power of this feature:
1. Add a product to the shopping cart and redirect to the checkout page:
{{wc_checkout_url}}?add-to-cart={{wc_product.get_id}}&quantity=1
2. Redirect to the product page and add a specific quantity to the cart:
{{wc_product.get_permalink}}?add-to-cart={{wc_product.get_id}}&quantity=10
3. Add UTM tags for analytics tracking:
{{wc_product.get_permalink}}?utm_source=google+business+profile&utm_medium=product&utm_campaign={{wc_product.get_id}}
Applying the new URL to existing products
To retroactively apply the new Call-to-action button URL to your existing GBP products:
- Go to the plugin’s Sync section.
- Hit the Sync Products button.
This action updates all your current Google Business Profile products and applies the newly configured URLs.
A big thank you to James for suggesting this feature!
As always, I’m grateful for everyone’s input in improving the plugins. If you have ideas or suggestions for further enhancements, feel free to reach out!
Got creative ways to use this new feature? Share your ideas in the comments below, I’d love to hear how you’re putting it to work!
Happy syncing!