惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
V
V2EX
T
Tailwind CSS Blog
N
News | PayPal Newsroom
The Cloudflare Blog
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
C
Cyber Attacks, Cyber Crime and Cyber Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
V
Vulnerabilities – Threatpost
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Threat Research - Cisco Blogs
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
T
Threatpost
U
Unit 42
T
The Exploit Database - CXSecurity.com
I
Intezer
爱范儿
爱范儿
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园 - Franky
Spread Privacy
Spread Privacy
A
Arctic Wolf
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News and Events Feed by Topic
Google Online Security Blog
Google Online Security Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recorded Future
Recorded Future
The Register - Security
The Register - Security
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
H
Help Net Security
Schneier on Security
Schneier on Security
P
Proofpoint News Feed
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
K
Kaspersky official blog
C
Check Point Blog
小众软件
小众软件
A
About on SuperTechFans
博客园 - 【当耐特】
IT之家
IT之家

Icarus

Getting Started with Icarus Icarus User Guide - Configuring the Theme FAQ Cyberpunk Theme Variant Upgrade Guide Custom Hexo Tag Helpers 自定义Hexo标签插件 Hexo Built-in Tag Helpers Icarus User Guide - CDN Providers Icarus User Guide - Comment Plugins Icarus User Guide - Donation Buttons Icarus User Guide - Other Plugins Icarus User Guide - Share Buttons Icarus User Guide - Search Plugin Icarus User Guide - Widgets Icarus快速上手 Icarus用户指南 - 主题配置 常见问题 升级指南
Icarus User Guide - Web Analytics Plugins
PPOffice · 2017-01-31 · via Icarus

This article covers web analytics plugins supported by Icarus 5.

The following web analytics plugins are provided by ppoffice/hexo-component-inferno. Please refer to it for a complete list of supported plugins and their configuration details.

All plugins mentioned below may be blocked by AD blockers. Use them with caution.

Baidu Statistics

Installation Guide

  1. Log into Baidu Statistics. Click the “Add new website” button on the “Admin > Site list” page and fill in the site information such as name and homepage URL. Click “OK” to complete site creation.

    Add Site - Baidu Analytics
  2. On the next page, find the ID behind hm.baidu.com/hm.js? and set it as the value of plugins > baidu_analytics > tracking_id in the theme configurations.

    Get Code - Baidu Analytics

    For example, the following Baidu Statistics code:

    Baidu Statistics code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <script>
    var _hmt = _hmt || [];
    (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?3f06f2b732a5b1034c989f74e28d0eea";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
    })();
    </script>

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    plugins:
    baidu_analytics:
    tracking_id: 3f06f2b732a5b1034c989f74e28d0eea

Installation Guide

  1. Log into Bing - Webmaster Tools. Then, choose “Add your site manually” and enter the URL to your site. Click “Add” button to continue.

    Add Site - Bing Webmaster Tools
  2. In the “Add & verify site” panel, select “HTML Meta Tag” method. Copy value of the content attribute in the HTML meta tag to the plugins > bing_webmaster > tracking_id in the theme configurations.

    Verify Site - Bing Webmaster Tools
    _config.icarus.yml
    1
    2
    3
    plugins:
    bing_webmaster:
    tracking_id: ABCDEFABCDEFABCDEFABCDEFABCDEFABCDEF

BuSuanZi Web Counter

Installation Guide

  1. Set the plugins > busuanzi to true to enable BuSuanZi web counter and display the number of visitors on the header of each blog post and the bottom of the page.

    _config.icarus.yml
    1
    2
    plugins:
    busuanzi: true

CNZZ Statistics

Installation Guide

  1. Log into Umeng+. On the dashboard of Umeng+, click “Create new application” > “Web application”. Then, fill in your site information such as “website name”, “site domain name”, and “site homepage URL”. Click “Confirm adding the site” after finished.

    Add Site - CNZZ
  2. Find the HTML code in the “text style” row on the get installation code page. Copy the values of id and web_id to the plugins > cnzz > id and web_id in the theme configurations, respectively.

    Get Code - CNZZ

    For example, the following CNZZ installation code:

    CNZZ installation code
    1
    <script type="text/javascript" src="https://s9.cnzz.com/z_stat.php?id=123456789000&web_id=123456789000"></script>

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    4
    plugins:
    cnzz:
    id: 123456789000
    web_id: 123456789000

Google Analytics

Installation Guide

  1. Log into Google Analytics and click the “Admin” on the left side of the user dashboard.

  2. On the admin page, click the “Create Property” button and set “What do you want to measure?” to “Web”. Click the “Continue” button after that.

    Create Property - Google Analytics
  3. Then, fill in the Website Name, Website URL, Industry Category, and Reporting Time Zone. Click the “Create” button to finish the property creation.

    Property Setup - Google Analytics
  4. Find the value of “Tracking ID”, e.g., “UA-12345678-0”, on the “Tracking Code” page. Set it to the plugins > google_analytics > tracking_id in the theme configurations to enable the Google Analytics plugin.

    Get Code - Google Analytics
    _config.icarus.yml
    1
    2
    3
    plugins:
    google_analytics:
    tracking_id: UA-12345678-0

Hotjar

Installation Guide

  1. Log into Hotjar and click the ➕ (plus sign) > “Add new site” link on the top left of the page.

  2. Fill in the “WEBSITE”, “SITE TYPE”, and “SITE OWNER”, then click the “Add Site” button.

    New Site - Hotjar
  3. Find the newly created site on the “Sites & Organizations” page you have been redirected to. Click the “Tracking Code” button on the right.

    Site List - Hotjar
  4. Copy the value of “Site ID” (e.g., 1234567) from the popup dialog to plugins > hotjar > site_id in the theme configurations to enable the Hotjar plugin.

    Get Code - Hotjar
    _config.icarus.yml
    1
    2
    3
    plugins:
    hotjar:
    site_id: 1234567

Statcounter

Installation Guide

  1. Log into Statcounter. Click “Add New Project” button in the “Projects” page.

    Projects - Statcounter
  2. Fill in the website URL and project title in the “Add Project” page. Tweak rest of the project settings if you need to. Then, click the “Add Project” button.

    Add Project - Statcounter
  3. Click “Continue to Default Installation” in the “Platform Check Complete” page.

    Platform Check Complete - Statcounter
  4. Finally, in the “Insert the Code on Your Website” page, copy the value of sc_project and sc_security variable in the HTML snippet to plugins > statcounter > project and plugins > statcounter > security in the theme configurations, respectively.

    Insert Code - Statcounter

    For example, the following Statcounter code:

    Statcounter code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    <script type="text/javascript">
    var sc_project=12345678;
    var sc_invisible=1;
    var sc_security="abcdef12";
    var sc_https=1;
    </script>
    <script type="text/javascript"
    src="https://www.statcounter.com/counter/counter.js"
    async></script>
    ...

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    4
    plugins:
    statcounter:
    project: 12345678
    security: abcdef12

Twitter Conversion Tracking

Installation Guide

  1. Follow How to set up conversion tracking to enable universal website tag of Twitter conversion tracking.

  2. Find the init (Pixel ID) in your conversion tracking code. Copy its value to plugins > twitter_conversion_tracking > pixel_id in the theme configurations.

    For example, the following Twitter conversion tracking code:

    Twitter conversion tracking code
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

    <script>
    !function(e,n,u,a){e.twq||(a=e.twq=function(){a.exe?a.exe.apply(a,arguments):
    a.queue.push(arguments);},a.version='1',a.queue=[],t=n.createElement(u),
    t.async=!0,t.src='//static.ads-twitter.com/uwt.js',s=n.getElementsByTagName(u)[0],
    s.parentNode.insertBefore(t,s))}(window,document,'script');

    twq('init','abcdef');
    twq('track','PageView');
    </script>

    maps to the following theme configuration:

    _config.icarus.yml
    1
    2
    3
    plugins:
    twitter_conversion_tracking:
    pixel_id: abcdef

Something wrong with this article? Click here to submit your revision.