DataLayer for integrating external systems

Enterprise Navigation supports writing a DataLayer for integrating external systems, like Adobe DTM.

The json format of data layer is:

digitalData: {
    page: {
        liveEngage: {
        email?: string;
        firstName?: string;
        lastName?: string;
        channel?: string;
        enterpriseId?: string;
        userName?: string;
        doNotContact?: boolean;
    };
};

Initialize the DataLayer in the following way. Ensure that the following script is added on top of the other scripts that depends on it like the Adobe DTM script or the Enterprise Nav itself. Initialization should be done in the project that is using the EnterpriseNav component.

<script type="text/javascript">
  digitalData = {
    page: {
      liveEngage: {},
    },
  };
</script>