Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created September 2, 2011 14:36
Show Gist options
  • Save mahemoff/1188756 to your computer and use it in GitHub Desktop.
Save mahemoff/1188756 to your computer and use it in GitHub Desktop.
Total page views on Google Analytics (across all domains)
function calc() {
var sum = 0;
$('.profile_list_table > tbody > tr > td:nth-child(2) div div').each(function() {
console.log(this, this.innerHTML);
sum+=parseInt(this.innerHTML.replace(',',''))
});
$('.account_table_header_text').append(' [Total: '+sum+']');
}
setTimeout(calc,3000);
@mahemoff
Copy link
Author

mahemoff commented Sep 2, 2011

Made with ControlFreak extension for the page: https://www.google.com/analytics/settings/home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment