Cleanup Plum Analytics whitespace; resolve error if hook is triggered from non-article page.