var setWindowVar = function(event){
        const {excludeAnalytics, accountId, userId} = event.detail;
        //set window variables for interaction events
        window.excludeAnalytics = excludeAnalytics;
        window.accountId = accountId;
        window.userId = userId;

        //push a new event for viewing the page to google analytics 
        window.dataLayer.push({
                event: 'dscPageView',
                userId: userId,
                accountId: accountId,
                excludeAnalytics: excludeAnalytics
            });

    }
//event listener to handle event sent from rscFooter lwc    
document.addEventListener("addGAWindowVariables", setWindowVar)