本文介绍了在Ghost博客中获得观看次数最多的帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想列出上个月浏览次数最多的帖子.我发现有关此的信息几乎为零.

I want to make a list of the most viewed posts in the last month. I found almost zero info about this.

有可能吗?可以使用Google Analytics(分析)或其他方法完成吗?

Is it possible? Can it be done using Google Analytics or something?

推荐答案

我认为Ghost的内置工具集无法做到这一点.由于我发现像您这样的信息几乎为零,因此我决定创建自己的实现.

I don't think this can be done with the built-in toolset of Ghost. Since I have found almost zero info about this like you, I decided to create my own implementation.

首先,您必须将GA跟踪集成到您的网站.以下是有关如何执行此操作的更多信息: https://help.ghost.org/article/16-google-analytics

First, you have to integrate GA tracking to your site. Here's more info on how to do that:https://help.ghost.org/article/16-google-analytics

我创建了一个自定义的Ghost助手来下载Google Analytics(分析)指标.请注意,不幸的是,设置自定义帮助程序的文档不多,而且绝对不支持.

I created a custom Ghost helper to download Google Analytics metrics. Please note that setting up a custom helper is unfortunately not very well documented and definitely not supported.

这是带有源代码的Github存储库: https://github.com/conwid/GhostHelpers

Here's the Github repository with the source code: https://github.com/conwid/GhostHelpers

查看项目的Wiki.

Check out the project's wiki.

  • There information on how to set up a custom helper: https://github.com/conwid/GhostHelpers/wiki/Adding-a-custom-helper-to-Ghost
  • And there's information on how to set up the Google Analytics helper specifically: https://github.com/conwid/GhostHelpers/wiki/Top

我还写了一些有关此内容的博客文章,这些文章可以为您提供更多信息:

I have also written a couple of blog posts about this that could give you more info:

  • Create custom helpers to add functionality to your Ghost blog
  • Creating a most popular posts page with a custom ghost helper to download Google Analytics data

最后,您可以在我的博客上查看使用该帮助程序的最终结果: https://dotnetfalcon .com/greatest-hits/

And finally you can check out the end results of using the helper on my blog: https://dotnetfalcon.com/greatest-hits/

(对不起,自我营销很抱歉,但正如我所说,我在其他地方也都发现了几乎零信息).

(Sorry for the shameless self-marketing, but as I said, I found almost zero info about this also everywhere else).

这篇关于在Ghost博客中获得观看次数最多的帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-14 01:54