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
Setting the "Overwrite GTM function" gtmFunctionOverwrite should output the exact same string in the frontend.
Solution:
The output should be raw: src/Resources/views/storefront/layout/meta.html.twig:31
var googleTag = {% endverbatim %}{{ wbmTagManagerConfig.gtmFunctionOverwrite|raw }}{% verbatim %}
Actual behaviour
Output string is escaped, example
var googleTag = function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
How to reproduce in a demoshop
Config a custom script in plugin config wbmTagManagerConfig.gtmFunctionOverwrite see the result in the frontend.
The text was updated successfully, but these errors were encountered:
PHP Version
8.1
Shopware Version
6.4.17.2
Expected behaviour
Setting the "Overwrite GTM function"
gtmFunctionOverwrite
should output the exact same string in the frontend.Solution:
The output should be raw:
src/Resources/views/storefront/layout/meta.html.twig:31
Actual behaviour
Output string is escaped, example
How to reproduce in a demoshop
Config a custom script in plugin config
wbmTagManagerConfig.gtmFunctionOverwrite
see the result in the frontend.The text was updated successfully, but these errors were encountered: