[Fixed] error on array-count at zero entries
This commit is contained in:
parent
19553fcee2
commit
22ea5a1ce2
@ -3,7 +3,7 @@
|
|||||||
[{assign var="gtmProducts" value=$oView->getArticleList()}]
|
[{assign var="gtmProducts" value=$oView->getArticleList()}]
|
||||||
|
|
||||||
[{block name="d3_ga4_view_search_result_block"}]
|
[{block name="d3_ga4_view_search_result_block"}]
|
||||||
[{if $gtmProducts|@count}]
|
[{if $gtmProducts}]
|
||||||
[{capture assign=d3_ga4_view_search_result}]
|
[{capture assign=d3_ga4_view_search_result}]
|
||||||
[{strip}]
|
[{strip}]
|
||||||
dataLayer.push({"event": null, "eventLabel": null, "ecommerce": null}); /* Clear the previous ecommerce object. */
|
dataLayer.push({"event": null, "eventLabel": null, "ecommerce": null}); /* Clear the previous ecommerce object. */
|
||||||
|
Loading…
Reference in New Issue
Block a user