//LOGOUT////////////////////////////////////////////////////////// //This function will log a user out of Onegate followed by IDM and redirected to url variable function logout(url) { var request = new XMLHttpRequest(); request.open('GET', '/c/portal/logout', false); request.send(null); window.location.href = url; } $(document).ready(function () { var gtagId = document.getElementById('googleAnalyticsGtagId').value; window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', gtagId); });