Description Usage Arguments Value Methods (by class) Examples
A menu user-interface for selecting a Google Analytics view.
Get the view ID of the query.
Set the view ID for the query.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ga_view_selector(creds = GoogleApiCreds(), with_gui = FALSE)
GaView(object, value)
GaView(object) <- value
## S4 method for signature 'gaProperty,missing'
GaView(object)
## S4 method for signature 'gaAccount,missing'
GaView(object)
## S4 method for signature 'ANY,missing'
GaView(object)
## S4 method for signature '.query,missing'
GaView(object)
## S4 method for signature '.query,ANY'
GaView(object, value)
## S4 replacement method for signature '.query'
GaView(object) <- value
|
creds |
Optional. An OAuth2.0 credentials object to use for the request. |
with_gui |
Optional. Boolean value indicating whether to use a GUI for
the menu. Default is |
object |
An object to coerce to a |
value |
The optional replacement view if the object supplied is a query,
in which case |
A gaView
object.
object = gaProperty,value = missing
: Select the default view of the property.
object = gaAccount,value = missing
: Select the default view of the first listed property of
the account.
object = ANY,value = missing
: Returns the ID of the supplied view, or the default view
within the supplied property or the default view within the first property
of the supplied account, or coerces a numeric or character into a
viewId
.
object = .query,value = missing
: gets the view ID of the supplied query.
object = .query,value = ANY
: Set the view of a query, returning the query with the
updated view applied.
.query
: Replaces the view being used by a query.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
my_ga_account <- GaAccounts()[['60253332']]
my_website_property <- my_ga_account$properties[['UA-60253332-2']]
my_default_view <- GaView(my_website_property)
## End(Not run)
## Not run:
my_ga_account <- GaAccounts()[['60253332']]
my_default_view <- GaView(my_ga_account)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.