Jump to content

Recommended Posts

Posted

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"},

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...