Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jonathanmooredigital/13ed07a9ab64e919846be968b2a2b94f to your computer and use it in GitHub Desktop.
Save jonathanmooredigital/13ed07a9ab64e919846be968b2a2b94f to your computer and use it in GitHub Desktop.
/*
========================================================================
Copy Universal Analytics Annotations
https://twitter.com/nathanless
https://www.linkedin.com/in/moorejonathan/
========================================================================
*/
copy(Array.from(document.querySelectorAll('.ga-table-contents')[0].rows).map(row => Array.from(row.cells).slice(1, 4).map(cell => cell.innerText).join('\t')).join('\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment