Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save prykon/69c3537952b5b5b10d5843949e324402 to your computer and use it in GitHub Desktop.
Save prykon/69c3537952b5b5b10d5843949e324402 to your computer and use it in GitHub Desktop.
Extract keywords from Google Analytics
!function(){for(var kwds=$$("._GApu"),clicks=$$("._GAtjb"),impresiones=$$("._GAtjb"),ctr=$$("._GAtjb"),total=kwds.length,content="",i=0;i<total;i++)content+="<li>"+kwds[i].innerHTML+"</li>";with(output="<html><head><title>Punto Rojo Tools - Google Analytics Keyword Extractor</title><style type='text/css'>body,table{font-family: 'Open Sans', sans-serif;font-size:11px;color:#000}h1,h2,th{color:#405850}th{text-align:left}h2{font-size:11px;margin-bottom:3px}</style></head><body>",output='<img src="https://puntorojo.agency/wp-content/themes/punto_rojo/img/logo_mini.png" width="200px"><br><h1>Google Analytics Keyword Extractor</h1><br>',output+='<table colpadding="10">',output+=content,output+="</table></body></html>",window.open())document.write(output),document.close()}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment