You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
First of all thanks for this amazing piece of software!
Second, yesterday it came to my mind that the remarketing variables (select_item, view_item_list, view_item) won't link to the lists in Google ads on variable products because they submit the SKU of the parent product and in the exported items in the merchant center, only specific products with stock are allowed.
So i used 2 of your hooks modifying/tricking the plugin into doing what I want.
I made a check if the product is variable -> checked for the first variant in stock with a SKU -> replaced the id with it.
To receive an product id within the hook without recalculating it from the SKU again. I had to disable the SKU as ID option in GTM4WP.
Therefore to fix the other e-commerce events in js triggering the SKU, i hooked into the global js options hook to enable the id -> SKU option there.
I assume, that many people could stumble into that issue and for some that approach could be a valid fix.
I posted here to open a discussion if I missed any important stuff and find a maybe even better solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
First of all thanks for this amazing piece of software!
Second, yesterday it came to my mind that the remarketing variables (select_item, view_item_list, view_item) won't link to the lists in Google ads on variable products because they submit the SKU of the parent product and in the exported items in the merchant center, only specific products with stock are allowed.
So i used 2 of your hooks modifying/tricking the plugin into doing what I want.
I made a check if the product is variable -> checked for the first variant in stock with a SKU -> replaced the id with it.
To receive an product id within the hook without recalculating it from the SKU again. I had to disable the SKU as ID option in GTM4WP.
Therefore to fix the other e-commerce events in js triggering the SKU, i hooked into the global js options hook to enable the id -> SKU option there.
I assume, that many people could stumble into that issue and for some that approach could be a valid fix.
I posted here to open a discussion if I missed any important stuff and find a maybe even better solution.
Beta Was this translation helpful? Give feedback.
All reactions