teraßyte Posted July 9, 2022 Posted July 9, 2022 The data layer JS is: {{if settings.core_datalayer_enabled}} <script> $('body').trigger( 'ipsDataLayer', { _key: 'content_view', _properties: { {{foreach $event->getDataLayerProperties() as $key => $value}} $key : {expression="json_encode( $value )" raw="true"}, {{endforeach}} view_location: 'hovercard', } } ); </script> {{endif}} Update the line inside the foreach to: '{$key}' : {expression="json_encode( $value )" raw="true"},
Recommended Posts