• 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 and item_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 the item_id is showing a different number (5020582). The only reference I could find to this internal_id was in your GitHub repository, specifically in the woocommerce.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 the item_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 and item_id within the context of this plugin? Specifically, I’d like to understand why internal_id contains the actual product ID and what the item_id refers to in this instance.

    Thank you for your help in understanding this issue.

    Best regards,
    Ricardo

  • You must be logged in to reply to this topic.