Usercentrics - PUBLIC

How do I find out how much space is occupied by the Usercentrics CMP in LocalStorage?

Please open the web page where our CMP is embedded in your browser and open the console in the developer tools. Now run the following code:

var _lsLog = []; var _lsTotal=0,_xLen,_x;for(_x in localStorage){ if(!localStorage.hasOwnProperty(_x)){continue;} _xLen= ((localStorage[_x].length + _x.length)* 2);_lsTotal+=_xLen; _lsLog.push(_x.substr(0,50)+" = "+ (_xLen/1024).toFixed(2)+" KB")};console.log("Total = " + (_lsTotal / 1024).toFixed(2) + " KB");

The result shows how much space the CMP occupies in LocalStorage on behalf of your website.


Do you need further help?

How can I get help with technical questions?

 

Usercentrics - PUBLIC