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

Item ID by SKU number #2029

Closed
kaoopro opened this issue Jul 30, 2023 · 1 comment
Closed

Item ID by SKU number #2029

kaoopro opened this issue Jul 30, 2023 · 1 comment
Labels
type: enhancement The issue is a request for an enhancement.

Comments

@kaoopro
Copy link

kaoopro commented Jul 30, 2023

pls change Item ID to SKU number. don't like "gla_27364". it will issue don't match with SEO product and conversion for google ads

@kaoopro kaoopro added the type: enhancement The issue is a request for an enhancement. label Jul 30, 2023
@jorgemd24
Copy link
Contributor

Hey, @kaoopro, thanks for getting in touch!

We are looking into this option, but implementing it is not a straightforward task, as it could have an impact on any running Ads campaigns and reporting.

If you happen to be a developer, you can make changes to the product offer ID using the below filter:

return apply_filters( 'woocommerce_gla_get_google_product_offer_id', "{$slug}_{$product_id}", $product_id );

Moreover, you have the option to customize how the plugin maps with the correct product ID (in your case, the SKU) using the filter mentioned here:

return (int) apply_filters( 'woocommerce_gla_get_wc_product_id', $wc_product_id, $mc_product_id );

But please note that these changes will only affect new products.

It would be fantastic if you could suggest this new feature in the Google Listings and Ads Requests. This way, other merchants can vote for it, allowing us to prioritize this task accordingly.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants