Icarus User Guide - Web Analytics Plugins

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

Bing Webmaster Tools

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
    <!-- Twitter universal website tag code -->
    <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');
    // Insert Twitter Pixel ID and Standard Event data below
    twq('init','abcdef');
    twq('track','PageView');
    </script>
    <!-- End Twitter universal website tag code -->

    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.
Author

PPOffice

Posted on

2017-01-31

Licensed under

CC BY-NC-SA 4.0

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×