{nocache} {if $runtime.controller eq 'checkout' && $runtime.mode ne 'complete'} {capture name="cart_order_info"} {foreach from=$cart_products item="item" name="products"} '{$item.product_id}'{if not $smarty.foreach.products.last},{/if} {/foreach} {/capture} {/if} {if $runtime.controller eq 'checkout' && $runtime.mode eq 'complete'} {capture name="checkout_order_info"} {foreach from=$order_info.products item="item" name="products"} '{$item.product_id}'{if not $smarty.foreach.products.last},{/if} {/foreach} {/capture} {/if} {literal}{/literal}
{/nocache}
After a long time and since google works with gtag and events now needs some modification. works fine like this. The thing is only at product IDs .
Sents the product id only from product :-) . When you change to cart or checkout the field for 'id' is blank .
Any clues? Thanks in advance !