Jump to content

[BUG 4.7.0] Data layer for calendar eventBlock


teraßyte

Recommended Posts

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

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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