Clarification Needed on internal_id
-
Hello,
I recently encountered an issue while testing the data layer on my website using the GTM Tag Manager Assistant. During an
add_to_cart
action, I noticed that two IDs are being pushed to the data layer:internal_id
anditem_id
. This has caused some confusion for me.To provide more context, I’ve attached an image below:
In the screenshot, the
internal_id
is showing the correct product ID from my WooCommerce setup (4286
), but theitem_id
is showing a different number (5020582
). The only reference I could find to thisinternal_id
was in your GitHub repository, specifically in thewoocommerce.php
file (link to GitHub file).However, I’m confused about the following points:
- Why does the
internal_id
hold the actual product ID (4286
) instead of theitem_id
? - The
item_id
(5020582
) doesn’t seem to correspond to the SKU, GTIN, or any other identifiable attribute of my product, and the SKU field for this product is actually blank. - I couldn’t find any mention of
internal_id
in the Google Analytics documentation, which adds to the confusion.
Could you please clarify the difference between
internal_id
anditem_id
within the context of this plugin? Specifically, I’d like to understand whyinternal_id
contains the actual product ID and what theitem_id
refers to in this instance.Thank you for your help in understanding this issue.
Best regards,
Ricardo - Why does the
- You must be logged in to reply to this topic.