Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Thanks for submitting this issue.
    I will need to look at this more closely. I will do my best to get back with an answer asap.

    Cheers,
    Thomas Geiger

    Hi Thomas,

    I’m not sure if you’ve contacted this user via private message regarding a solution to this issue, but I’m also having this issue with the product variations showing up as categories in GA. The categories are still showing up properly but it’s also showing product variations as categories. How do I get these product variations to not show up as categories in GA?

    Screenshot below:
    https://drive.google.com/file/d/0B77XTBcRbe6yZGxrcG9CWkZhVVE/view?usp=drivesd

    Also, I checked in the plugin code under the integration/woocommerce.php file and noticed code referencing the variations. I’m no PHP expert, but it looks like you have it set in the code that if there are product variations that you have set the variations equal to the product category. Would it be as simple as commenting out some of the code referencing the product variations to get the variations to stop being displayed in GA as product categories?

    The code snippet I’m referring to is linked below:
    https://pastebin.com/yM9Ferss

    Thanks,
    Mark

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Mark,

    With the enhanced ecommerce implementation you do not have currently proper support for product variations. There are some codes that try to do the best to get some data but for example product ID is always set to the root product and not to the variation product.

    This has to be changed in the plugin and this is top priority on the road map. I am committed to include proper support for variations in v1.6 but this new version will only be released in January as I do not want to mess anything in live webshops during the Xmas season.

    You may want to track development in the GitHub repo of the plugin but you should not expect this change to be included this year:
    https://github.com/duracelltomi/gtm4wp/releases

    In the meantime commenting out the mentioned lines could solve your issue.

    Have a great day,
    Thomas Geiger

    Hi Thomas,

    I see. That makes sense. Looking forward to the upcoming 1.6 update! Until then, I will go ahead and comment those lines out and test it to see if that solves it. Thanks!

    Mark

    jurij_c

    (@jurij_c)

    Hello Thomas! I have edited the woocommerce integration and it looks like working fine
    line 191
    https://pastebin.com/L0Hq9QeP

    Yuriy

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Yuriy,

    Thanks for posting your update.

    So you commented out the else statement so that lines in the else branch gets executed regardless of whether it is a variable product or not?

    Thomas

    jurij_c

    (@jurij_c)

    Hello Thomas,

    I have commented else branch to get data about category always, also if variation is available, variable $_category_variation is set and then later asigned “variant” => $_category_variation. In Analytics I get data for categories and for variants.

    Yuriy

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wrong Product Category in GA’ is closed to new replies.