You need to enable JavaScript to run this app.
Growth Analysis (Privatization)

Growth Analysis (Privatization)

Copy page
Download PDF
Basic Concepts
Logic for Judging the Source of Page Visits
Copy page
Download PDF
Logic for Judging the Source of Page Visits

DataFinder provides preset events and preset attributes related to page visits, including attributes associated with the source of page visits (referer_type—source type, referer_site_name—source site name). The values of these attributes are further processed based on the collected URL of the visited page. This document introduces the processing logic for these attributes in DataFinder.

Logic description

The values of the source analysis attributes referer_type and referer_site_name are determined by the values of the referrer and url (visit link) attributes.

tip

referrer is a URL, which mainly consists of three parts: protocol://host[:port]/path. The host is generated by parsing the string into a java.net.URL object and calling the getHost() method.

Scenario judge

referer_type value

referer_site_name value

The host of url and referrer is the same

inner

referer_site_name is not constructed

When parsing the referrer field, if the protocol is invalid (parsing into a java.net.URL object fails), or the host is empty

direct

Constructed as: ""

The host parsed from referrer (after removing the www. prefix) is in the table below

Fixed enumerated values:

  • search_engine
  • social_network
  • referring_site

See the table below for details

Fixed values, see the table below for details

Other scenarios

referring_site

Assigned as the parsed value of the host

The following table shows the mapping between the enumerated values of the host parsed from referrer and the corresponding values of referer_type and referer_site_name.

The host parsed from referrer

Fixed enumerated value for referer_type

Fixed enumerated value for referer_site_name

baidu.com,
m.baidu.com,
bzclk.baidu.com

search_engine or referring_site
The result is determined by whether the path parsed from referrer starts with /s, /search, /link, or /baidu.php:

  • Yes: The value of referer_type is search_engine.
  • No: The value of referer_type is referring_site.

Baidu

sogou.com

search_engine

Sogou Search

google.com

search_engine

Google

google.com.hk

search_engine

Google

bing.com

search_engine

Bing

yahoo.com

search_engine

Yahoo

chinaso.com

search_engine

China Search

sm.cn

search_engine

Shenma Search

wx.qq.com

social_network

WeChat

mp.weixinbridge.com

social_network

WeChat

mp.weixin.qq.com

social_network

WeChat

qzone.qq.com

social_network

QQ Zone

im.qq.com

social_network

QQ

weibo.com

social_network

Weibo

weibo.cn

social_network

Weibo

zhihu.com

social_network

Zhihu

linkedin.com

social_network

LinkedIn

lnkd.in

social_network

LinkedIn

facebook.com

social_network

Facebook

twitter.com

social_network

Twitter

im.dingtalk.com

social_network

DingTalk

douban.com

social_network

Douban

douyin.com

social_network

Douyin

kuaishou.com

social_network

Kuaishou

Last updated: 2026.08.25 11:32:14