Skip to content

TechnicalWebAnalytics/RFunctions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RFunctions

Repository of useful functions.

Table of Contents

GA Referrals

AMPRestAPI


GA Referrals

Description

A simple function that extracts Referrals by a list of URLs you provide.

Dependencies

Load the dependent Library library("RGA")

Authorizations

Authorize your GA account authorize()

Parameters

  • view: the GA view id you are extracting the data from
  • startDate / endDate: your preferred date range
  • urls: this needs to be passed as a list
    • example: urls <- c( "l.facebook.com", "lm.facebook.com" )

Function

see GAReferrals.R

Example

view <- "1234567"

startDate <- "2017-01-01"
endDate <- "2017-01-31"

urls <- c(
"l.facebook.com",
"lm.facebook.com"
)

x <- getReferrals(view,startDate,endDate,urls)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages