It looks cPanel Inc. is delivering GoogleTagmanager Script inside WHM.
I see that as a security risk and dataprivacy issue, when a thirdparty script is injected in the WHM console of every server.
The dataLayer contains an ID and certain license data.
I see that as a security risk and dataprivacy issue, when a thirdparty script is injected in the WHM console of every server.
Code:
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.j
The dataLayer contains an ID and certain license data.
Code:
DNSOnly:
window.COMMON.licenseType = 'standard';
window.COMMON.resellerType = 'reseller';
window.COMMON.resellerType = 'root';
window.mandatoryDataLayer = [{
cpSessionId: window.COMMON.securityToken.substring(1),
hasRootPrivileges: window.COMMON.hasRootPrivileges,
resellerType: window.COMMON.resellerType,
id: <SNIP ID>,
licenseType: window.COMMON.licenseType,
isDnsOnly: window.COMMON.isDnsOnly,
serverProfile: "DNSONLY",
}];
VPS:
window.COMMON.licenseType = 'standard';
window.COMMON.resellerType = 'reseller';
window.COMMON.resellerType = 'root';
window.mandatoryDataLayer = [{
cpSessionId: window.COMMON.securityToken.substring(1),
hasRootPrivileges: window.COMMON.hasRootPrivileges,
resellerType: window.COMMON.resellerType,
id: <SNIP ID>,
licenseType: window.COMMON.licenseType,
isDnsOnly: window.COMMON.isDnsOnly,
serverProfile: "STANDARD",
Last edited: