I’m wondering if anyone has run into the same issue and found a solution. Support keeps telling me my configuration is wrong but they’re not addressing the root cause. I opened a change request and it seems to have been accepted, but in the meantime I’d like to find a workaround.
I use sGTM with my WooCommerce store. Everything tracks fine, but the problem is that I also use it for my offline store, where many orders are placed from the backend using a Point of Sale system.
If I use the official Stape plugin, it counts all POS orders as regular orders and sends them to Facebook, for example — which it shouldn’t.
So I had to install GTM4WP, which does allow disabling the container for admin users, which would solve the problem.
However, I can’t get GTM4WP to correctly run the Custom Loader.
So if anyone has a solution — either to prevent the Stape container from firing for admin users, or to properly configure GTM4WP with the custom loader — I’d really appreciate it.
As an option, you can disable the Stape app and generate a custom loader code in your Stape container by selecting the ‘Other’ platform. Generate it, copy it and add it to the section of your website.
You should also disable the insertion of GTM code in the GTM4WP plugin.
@LudusBelli do I understand correcrly that not loading for admin roles would suffice in your case? This feature went to dev and will go live for WP plugin within roughly a week.
What @Dmytro suggested with injecting in code directly, would work as well until we update the plugin.
Thank you also for the suggestion but doing it in the way I suppose i need to leave the plug active for the data layers but selecting no for injecting the code, right?