pc_get_backlinks: Get referral backlinks to my website.

Description Usage Arguments Value Examples

View source: R/pc_get_backlinks.R

Description

Get referral backlinks to my website.

Usage

1
2
3
4
5
6
pc_get_backlinks(
  date_range = c(Sys.Date() - 32, Sys.Date() - 1),
  sources_to_exclude = popularitycheckr::sources_to_exclude,
  include_domain = TRUE,
  ga_id = NULL
)

Arguments

date_range

A characther vector of length two, providing the first and the last day to include in the data request, e.g. 'c("2020-06-01", "2020-06-30")'.

sources_to_exclude

A characther vector of domains to be excluded. By default, a vector of commonly found search engines, social media, and webmail providers. See popularitycheckr::sources_to_exclude

include_domain

Logical, defaults to TRUE. Include the base domain in the 'landingPagePath' column for clarity, assuming https protocol.

ga_id

A Google Analytics viewId. Defaults to NULL. If not given, it uses the environment variable typically set with 'pc_set_ga_id()'.

Value

A data frame (a tibble) of five columns: 'date', 'sessions', 'source', "fullReferrer", "landingPagePath",

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
pc_set_ga_id(1234567)

backlinks <- pc_get_backlinks(date_range = c(Sys.Date()-32,
Sys.Date()-1))
backlinks


## End(Not run)

giocomai/popularitycheckr documentation built on Aug. 1, 2020, 11:50 a.m.