This doesn’t work for Ghost(Pro) users.
Client side helpers go into
core/server/helperswhich is inaccessible to Ghost(Pro) users. Even if the client helper is shoved into themes,
there’s no place to store secrets. The credentials for fetching the view data (from Google Analytics for example) must be stored at a place accessible by the helper but not by the public. There aren’t any places in Ghost(Pro) for the secrets.
Due to these two limitations, “popular posts” feature can’t be implemented for Ghost(Pro) users. As such, ghost.org is the only party who can provide a solution for this.