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

Variant Product has inconsistent “content_ids” of pixel event #2493

Closed
GrandGap opened this issue Mar 7, 2023 · 5 comments
Closed

Variant Product has inconsistent “content_ids” of pixel event #2493

GrandGap opened this issue Mar 7, 2023 · 5 comments
Assignees
Labels
type: question The issue is a question about how the product works.

Comments

@GrandGap
Copy link

GrandGap commented Mar 7, 2023

Just pay attention to the content_ids; these screenshots take on the same product, which has variants in it:

For View Content: https://snipboard.io/ZagwS2.jpg
For AddToCart: https://snipboard.io/qp1oOJ.jpg
For Checkout: https://snipboard.io/0uQAx9.jpg

You can see that View Content shows the ID of the parent product, but for Add To Cart & Checkout, it shows the ID of the variant.

The inconsistency of content_ids does not happen in Shopify; it remains the same content_ids for the whole process; why is Woocommerce different? Does this app create by the same team at Facebook?

I’m afraid this cause trouble in the optimization when running ads because the content_ids is not going through all step from, ViewContent, AddToCart, Checkout, and Purchases; the ideal case is from all action; it should remain the same content_ids.

I hope you guys consider this in the next update; if you want to add a variant in the data, you can create a new entry like content_variant, but the idea of content_ids should be the same.

@ibndawood
Copy link
Contributor

Thank you @GrandGap, for reporting this issue. I'll review the issue and get back to you on this.

@ibndawood ibndawood self-assigned this Mar 7, 2023
@ibndawood
Copy link
Contributor

ibndawood commented Mar 7, 2023

Hello @GrandGap, I've reviewed the issue and can see that the content_ids behave as expected. My explanation is that when you are on the single product page of a variable product, the variations are not chosen yet. Hence, the content ID is wc_post_id_17997, which is the group ID. Once you've selected the variation and add to the cart, it displays the content ID of the selected variation in the AddToCart event. It is the same content ID displayed in the initiateCheckout event. In your case, CLEAR-QUARTER-INCHE-FOOT_17998.

Does this clarify? Please let us know.

@ibndawood ibndawood added needs feedback The issue/PR needs a response from any of the parties involved in the issue. type: question The issue is a question about how the product works. and removed needs feedback The issue/PR needs a response from any of the parties involved in the issue. labels Mar 7, 2023
@ibndawood
Copy link
Contributor

Hello again, I'll close this issue as the plugin is behaving as expected as I've explained. If you do have additional questions, please do let us know.

@GrandGap
Copy link
Author

GrandGap commented Mar 9, 2023

Hello again, I'll close this issue as the plugin is behaving as expected as I've explained. If you do have additional questions, please do let us know.

Hi @ibndawood

Even if the variants are chosen, the contet_ids still belong to the group ID, not the variant ID. I set the default variant in my product as well.

In Shopify, the content_ids is consistent and kept the same for the whole process, even if you choose a different variant. This makes the algorithms of Facebook Ads better as it learns data for the whole product

@ibndawood
Copy link
Contributor

I agree that if a default variant is set, the content id should be the default variant ID. I have created this issue: #2495 to achieve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question The issue is a question about how the product works.
Projects
None yet
Development

No branches or pull requests

2 participants