-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Objective
As a merchant, I want to adopt Enhanced Conversions (EC) to improve the accuracy of my conversion tracking. Google for WooCommerce should make it easy to enable sending EC data to Google Ads and direct to instructions for enabling EC on my Google Ads account.
Background
We previously attempted to implement this feature in this issue. At the time, this effort stalled due to complications guiding the end user to enable EC in their connected Ads account.
In this attempt, we'll avoid making any assumptions about whether the connected Ads account has enabled EC and will instead only focus on enabling sending EC data from the store.
Requirements
Overview
Prompt users to turn on EC after successfully setting up an Ad campaign
After a user successfully sets up their first Ad campaign, they are presented with the following success modal:
In order to guide merchants to enable up Enhanced Conversions, we'll add a second screen to this modal with the following content:
- Title: “Improve conversion tracking accuracy to improve campaign performance”
- Body: “Set up Enhanced Conversions, a feature designed to improve your measurement accuracy by collecting privacy-conscious data without the need for third-party cookies. Learn more about Enhanced Conversions.”
- CTA: "Set up Enhanced Conversions" – Link to setting screen
Add an Enhanced Conversion setting to the plugin settings screen
On the setting screen, we'll add a new settings section at the top of settings that will allow merchants to enable sending EC data to Ads.
- Title: “Send Enhanced Conversions data to Google Ads”
- Body1: “Enhanced Conversions is a feature designed to improve your measurement accuracy by collecting privacy-conscious data without the need for third-party cookies.”
- Body2: “Please make sure to follow the documentation to enable Enhanced Conversions. The feature needs to be enabled both here on WooCommerce and on your Google Ads account.”
- Setting card
- “Send Enhanced Conversions data to Google Ads”
- Toggle/Checkbox
Add EC data to the Global Site Tag
Important
The plugin provides a default integration with the WP Consent API. This feature must ensure that any data sent to Google's APIs use the correct consent mode defined by the API or by the custom woocommerce_gla_gtag_consent
filter that is also used in the plugin. See: Google Analytics (gtag) Consent Mode
When a merchant has enabled sending EC data to Google Ads, we will automatically update the Global Site tag on relevant pages to include this data according to instructions from this documentation: https://developers.google.com/google-ads/api/docs/conversions/upload-online#php (See previous implementation: #2242)