Zasób Cele opisuje cel jednego z profili użytkownika.
Listę metod stosowanych w przypadku tego zasobu znajdziesz na końcu tej strony.
Reprezentacje zasobów
Szablon JSON zasobu celu Analytics.
{ "id": string, "kind": "analytics#goal", "selfLink": string, "accountId": string, "webPropertyId": string, "internalWebPropertyId": string, "profileId": string, "name": string, "value": float, "active": boolean, "type": string, "created": datetime, "updated": datetime, "parentLink": { "type": "analytics#profile", "href": string }, "urlDestinationDetails": { "url": string, "caseSensitive": boolean, "matchType": string, "firstStepRequired": boolean, "steps": [ { "number": integer, "name": string, "url": string } ] }, "visitTimeOnSiteDetails": { "comparisonType": string, "comparisonValue": long }, "visitNumPagesDetails": { "comparisonType": string, "comparisonValue": long }, "eventDetails": { "useEventValue": boolean, "eventConditions": [ { "type": string, "matchType": string, "expression": string, "comparisonType": string, "comparisonValue": long } ] } }
nazwa usługi, | Wartość | Opis | Uwagi |
---|---|---|---|
accountId |
string |
Identyfikator konta, do którego należy ten cel. | |
active |
boolean |
Określa, czy ten cel jest aktywny. | |
created |
datetime |
Czas utworzenia tego celu. | |
eventDetails |
object |
Szczegóły celu typu EVENT . |
|
eventDetails.eventConditions[] |
list |
Lista warunków zdarzenia. | |
eventDetails.eventConditions[].comparisonType |
string |
Typ porównania. Możliwe wartości to LESS_THAN , GREATER_THAN lub EQUAL . |
|
eventDetails.eventConditions[].comparisonValue |
long |
Wartość użyta w porównaniu. | |
eventDetails.eventConditions[].expression |
string |
Wyrażenie użyte w tym dopasowaniu. | |
eventDetails.eventConditions[].matchType |
string |
Typ dopasowania do wykonania. Możliwe wartości to REGEXP , BEGINS_WITH oraz EXACT . |
|
eventDetails.eventConditions[].type |
string |
Typ tego warunku zdarzenia. Możliwe wartości to CATEGORY , ACTION , LABEL oraz VALUE . |
|
eventDetails.useEventValue |
boolean |
Określa, czy wartość zdarzenia powinna być używana jako wartość tego celu. | |
id |
string |
Identyfikator celu. | |
internalWebPropertyId |
string |
Wewnętrzny identyfikator usługi internetowej, do której należy ten cel. | |
kind |
string |
Typ zasobu celu Analytics. | |
name |
string |
Nazwa celu. | |
parentLink |
object |
Link nadrzędny dla celu. Wskazuje widok (profil), do którego należy ten cel. | |
parentLink.href |
string |
Link do widoku danych (profilu), do którego należy ten cel. | |
parentLink.type |
string |
Wartość to „analytics#profile ”. |
|
profileId |
string |
Identyfikator widoku danych (profilu), do którego należy ten cel. | |
selfLink |
string |
Link do tego celu. | |
type |
string |
Typ celu. Możliwe wartości to URL_DESTINATION , VISIT_TIME_ON_SITE , VISIT_NUM_PAGES i EVENT . |
|
updated |
datetime |
Czas ostatniej modyfikacji tego celu. | |
urlDestinationDetails |
object |
Szczegóły celu typu URL_DESTINATION . |
|
urlDestinationDetails.caseSensitive |
boolean |
Określa, czy wielkość liter w adresie URL celu musi być dokładnie taka sama jak w przypadku odwiedzanych adresów URL. | |
urlDestinationDetails.firstStepRequired |
boolean |
Określa, czy pierwszy krok danego celu jest wymagany. | |
urlDestinationDetails.matchType |
string |
Typ dopasowania adresu URL celu. Możliwe wartości to HEAD , EXACT oraz REGEX . |
|
urlDestinationDetails.steps[] |
list |
Lista kroków skonfigurowanych dla tej ścieżki celu. | |
urlDestinationDetails.steps[].name |
string |
Nazwa kroku. | |
urlDestinationDetails.steps[].number |
integer |
Numer kroku. | |
urlDestinationDetails.steps[].url |
string |
URL tego kroku. | |
urlDestinationDetails.url |
string |
Adres URL tego celu. | |
value |
float |
Wartość celu. | |
visitNumPagesDetails |
object |
Szczegóły celu typu VISIT_NUM_PAGES . |
|
visitNumPagesDetails.comparisonType |
string |
Typ porównania. Możliwe wartości to LESS_THAN , GREATER_THAN oraz EQUAL . |
|
visitNumPagesDetails.comparisonValue |
long |
Wartość użyta w porównaniu. | |
visitTimeOnSiteDetails |
object |
Szczegóły celu typu VISIT_TIME_ON_SITE . |
|
visitTimeOnSiteDetails.comparisonType |
string |
Typ porównania. Możliwe wartości to LESS_THAN lub GREATER_THAN . |
|
visitTimeOnSiteDetails.comparisonValue |
long |
Wartość użyta w porównaniu. | |
webPropertyId |
string |
Identyfikator usługi internetowej, do której należy ten cel. Identyfikator usługi internetowej ma postać
UA-XXXXX-YY . |
Metody
- pobierz
- Pobiera cel, do którego użytkownik ma dostęp.
- wstaw
- Utwórz nowy cel.
- list
- Lista celów, do których użytkownik ma dostęp.
- poprawka
- Aktualizuje istniejący cel. Ta metoda obsługuje semantykę poprawki.
- aktualizacja
- Aktualizuje istniejący cel.