merge_traffic_paths: Aggregate traffic metrics for all pages that have the same...

Description Usage Arguments Value

View source: R/utils.R

Description

merge_paths takes a tibble of traffic metrics by property, date and page and sums the metrics for all pages that have the same path i.e. for all pages whose paths differ only by their query string and internal links.

Usage

1
merge_traffic_paths(traffic, by_date)

Arguments

traffic

A tibble of traffic metrics by property, date and page path returned from one of the fetch_*_traffic functions.

by_date

A boolean indicating whether the results are broken down by date.

Value

A tibble with the same column structure as the input tibble where the metrics have been summed for all pages with the same root path.


olihawkins/clga documentation built on Sept. 17, 2020, 7:19 a.m.