Drag and drop the following Bookmarklet into your browser’s bookmark bar and click it once in Google Analytics.
Unminified source code
The code can be optimized although I’ve kept it like this so it’s easier to update if Google updates the DOM.
document.getElementById('ID-headerPanel').style.display='none'; document.getElementById('ID-headerTabPanel').style.display='none'; document.getElementsByClassName('uI')[0].style.marginTop=0; document.getElementById('ID-navToggle').click(); if (document.getElementsByClassName('ACTION-remove')[0]) {document.getElementsByClassName('ACTION-remove')[0].click();} document.getElementById('ID-reportHeader-toolbarSection').style.display='none'; document.getElementById('ID-reportHeader-titleSection').style.display='none'; document.getElementsByClassName('NO')[0].style.display='none'; document.getElementsByTagName('body')[0].style.overflowX = 'hidden'; document.getElementsByTagName('body')[0].style.margin = '0 -15px 0 -35px';
Once you are done editing you can bookmarkletize the code with Ted’s fantastic Bookmarklet Crunchinator tool.
Performance note!
The Real-time screen has a memory leak and will eat your RAM memory after a few hours so I’d recommend you to install an extension that reloads the page every 10-30 minutes such as Revolver Tabs.
Google Analytics has the x-frame-options: SAMEORIGIN
header enabled so you won’t be able to embed the page in an iframe, the Revolver extension will also be useful if you want to show data for more than one site (open one tab for each site).
Photo by Sam Gao
No comments yet