This was not the post I thought I was writing. But as blogging does, I went in to write one thing, and in looking for some information I was digging….
Not that I gaze at the blog stats a lot, but my post
is will be about the silly posts that end up getting noticed (not that it is a goal).
So I went into the JetPack stats, and wound my way to the summary of top viewed posts, a screenshot shows it but is not useful. WHAT ABOUT THOSE LINKS!
Here is a trick, in Chrome, I go to File -> Save As and use the option to save as Web Page Complete
So I open the main HTML file and start looking to see how I can peel out the WordPress interface… nah, that’s convoluted. But I can see the entire HTML table of the part I want:
In my text editor, the ever beloved BBEdit, I can click the sideways triangle and fold up that entire HTML table, and copy it. Boom!
I paste that into a blank text document. There are a few rows I can see worth deleting, like the stats count for just the home page. I can, like above, find the
<tr> row, fold it, and delete.
Then I notice something else I will need to change- that little icon for the stats next to the account? Well in my local saved archive, it references a local image file. This HTML will not work!
So I just find that image file in my archive, upload it to my server as
http://cogdogblog.com/images/stats-icon.png. Then a global search for
src="./Site Stats ‹ CogDogBlog — WordPress_files/stats-icon.png" and replace with
I have an HTML table that is clean. I can then create a new page, and pop that HTML in it, Voila see the Top of the Dog House!
Now this is all manual, and if Tom Woodward was here he would be tsk tsking me into fetching the live data… but for the purposes of that blog post, this is Good Enough.
And this is how I get distracted arou— oh wait what if I do a …..