get_goal: Gets a goal to which the user has access to

Description Usage Arguments Value References See Also

Description

Gets a goal to which the user has access to

Usage

1
get_goal(account.id, webproperty.id, profile.id, goal.id, token)

Arguments

account.id

integer or character. Account ID to retrieve the goal for.

webproperty.id

character. Web property ID to retrieve the goal for.

profile.id

ineger or character. View (Profile) ID to retrieve the goal for.

goal.id

ineger or character. Goal ID to retrieve the goal for.

token

Token2.0 class object with a valid authorization data.

Value

An Analytics goal resource

id

Goal ID.

kind

Resource type for an Analytics goal.

self.link

Link for this goal.

account.id

Account ID to which this goal belongs.

webproperty.id

Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.

internal.webproperty.id

Internal ID for the web property to which this goal belongs.

profile.id

View (Profile) ID to which this goal belongs.

name

Goal name.

value

Goal value.

active

Determines whether this goal is active.

type

Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, and EVENT.

created

Time this goal was created.

updated

Time this goal was last modified.

parent.link

Parent link for a goal. Points to the view (profile) to which this goal belongs.

visit.time.on.site.details

Details for the goal of the type VISIT_TIME_ON_SITE.

References

Management API - Goals

See Also

authorize

Other Management API: get_custom_dimension; get_custom_metric; get_experiment; get_filter; get_profile; get_unsampled_report; get_webproperty; list_accounts; list_custom_dimensions; list_custom_metrics; list_custom_sources; list_experiments; list_filters; list_goals; list_profiles; list_segments; list_unsampled_reports; list_webproperties


jdeboer/RGA-1 documentation built on May 18, 2019, 11:29 p.m.