- Create an account and log into Google Analytics. More detailed documentation
Edit theme config file and fill
google_analyticswith your Google track ID. Google track ID always starts with
# Google Analytics
only_pageviewis set to true, NexT will only send
pageviewevent to Google Analytics.
The benefit of using this instead of
only_pageview: falseis reduce a external script on your site, which will give you better performance but no complete analytics function.
NexT will not send record to Google Analytics as long as page request has "localhost" as its host name. This will prevent local debugging from polluting analytics.
Login to Baidu Analytics and locate to site code getting page.
Copy the script ID after
hm.js?, like the following picture:
Edit theme config file and change section
baidu_analytics to your script ID.
# Baidu Analytics ID
Official documentation: https://docs.growingio.com/sdk-integration/sdk-2.x-docs/
- Create an account and log into CNZZ Analytics. More detailed documentation
- Set the value of section
cnzz_siteidin theme config file to your CNZZ site ID. You can find this ID in link or the auto-generated script.
# CNZZ count
The script will show «Webmaster Statistics» and it's ugly, so we used a
display: none; to hide it.
Adding article reading times counting to NexT theme. Documentation how to set the counter up and running safely aviable in hexo-leancloud-counter-security.
hexo-leancloud-counter-security by run following command in site root dir:
$ npm install hexo-leancloud-counter-security
Edit site config file and add following content:
app_id: <<your app id>>
app_key: <<your app key>>
username: <<your username>> # Will be asked while deploying if is left blank
password: <<your password>> # Recommmended to be left blank. Will be asked while deploying if is left blank
Edit theme config file and fill options under
# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
# Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
# If you don't care about security in lc counter and just want to use it directly
# (without hexo-leancloud-counter-security plugin), set the `security` to `false`.
Firebase Analytics provides the functionality of visitor statistics.
Login to Firebase to get apiKey and projectId. More detailed documentation
Edit theme config file and add or change
collection: articles #required, a string collection name to access firestore database
busuanzi_count option in theme config file.
enable: true, global setting is enabled. If
post_views are all
false, Busuanzi only counts but never shows.
total_visitors: true, it will show site UV in footer. You can also use font-awesome by setting
total_visitors_icon to the name of the icon.
total_views: true, it will show site UV in footer. You can also use font-awesome by setting
total_views_icon to the name of the icon.
post_views: true, it will show page PV in post meta. You can also use font-awesome by setting
post_views_icon to the name of the icon.