1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2024-11-10 12:19:24 +03:00
parent 58a91c2e10
commit 09727e7d23
30 changed files with 6118 additions and 5286 deletions
@@ -0,0 +1,83 @@
---
sidebar_position: 1
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Create counter
Creates a counter by field description
`Function CreateCounter(Val Token, Val CounterStructure) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Auth token |
| CounterStructure | --fields | Structure of KeyAndValue | ✔ | Counter structure. See GetCounterStructure |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [Creating a counter](https://yandex.ru/dev/metrika/en/management/openapi/counter/addCounter)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
CounterStructure = New Structure;
CounterStructure.Insert("autogoals_enabled", True);
CodeSettingsStructure = New Structure;
CodeSettingsStructure.Insert("async" , 0);
CodeSettingsStructure.Insert("clickmap" , 1);
CodeSettingsStructure.Insert("ecommerce" , 1);
CodeSettingsStructure.Insert("in_one_line" , 0);
CodeSettingsStructure.Insert("track_hash" , 1);
CodeSettingsStructure.Insert("visor" , 1);
CodeSettingsStructure.Insert("xml_site" , 0);
CodeSettingsStructure.Insert("ytm" , 0);
CodeSettingsStructure.Insert("alternative_cdn", 1);
InformerStructure = New Structure;
InformerStructure.Insert("color_arrow", 1);
InformerStructure.Insert("color_end" , "EFEFEFFE");
InformerStructure.Insert("color_start", "EEEEEEEE");
InformerStructure.Insert("color_text" , 0);
InformerStructure.Insert("enabled" , 1);
InformerStructure.Insert("indicator" , "uniques");
InformerStructure.Insert("size" , 2);
InformerStructure.Insert("type" , "ext");
CodeSettingsStructure.Insert("informer", InformerStructure);
CounterStructure.Insert("code_options", CodeSettingsStructure);
FlagsStructure = New Structure;
FlagsStructure.Insert("collect_first_party_data" , True);
FlagsStructure.Insert("measurement_enabled" , True);
FlagsStructure.Insert("use_in_benchmarks" , True);
FlagsStructure.Insert("direct_allow_use_goals_without_access", True);
CounterStructure.Insert("counter_flags" , FlagsStructure);
CounterStructure.Insert("favorite" , 1);
CounterStructure.Insert("filter_robots" , 2);
CounterStructure.Insert("gdpr_agreement_accepted", 1);
DomainStructure = New Structure("site", "openintegrations.dev");
CounterStructure.Insert("site2", DomainStructure);
Result = OPI_YandexMetrika.CreateCounter(Token, CounterStructure);
```
@@ -0,0 +1,41 @@
---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Delete counter
Deletes a counter by ID
`Function DeleteCounter(Val Token, Val CounterID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | &#x2714; | Auth token |
| CounterID | --counter | Number, String | &#x2714; | Counter ID for deletion |
Returns: Map Of KeyAndValue - serialized JSON response from Yandex
<br/>
:::tip
Method at API documentation: [Deleting a counter](https://yandex.ru/dev/metrika/en/management/openapi/counter/deleteCounter)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
CounterID = "98873524";
Result = OPI_YandexMetrika.DeleteCounter(Token, CounterID);
```
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 3
---
import Tabs from '@theme/Tabs';
@@ -34,4 +34,118 @@ Description in the API documentation: [Creating a counter](https://yandex.ru/dev
```json title="Result"
{
"autogoals_enabled": "<auto-targeting>",
"code_options": {
"async": "<asynchronous counter code>",
"clickmap": "<collection of statistics for Click Map operation>",
"ecommerce": "<e-commerce data collection>",
"in_one_line": "<output the counter code in one line>",
"track_hash": "<tracking the hash in the browser address bar>",
"visor": "<recording and analyzing the behavior of site visitors>",
"xml_site": "<for XML-sites>",
"ytm": "<use of a tag management system>",
"alternative_cdn": "<take into account visits from regions without access to Yandex resources>",
"informer": {
"color_arrow": "<arrow color on the informer>",
"color_end": "<final (bottom) color of the informer in RRGGBBAA format>",
"color_start": "<initial (top) color of the informer in RRGGBBAA format>",
"color_text": "<informer text color>",
"enabled": "<informer display permission>",
"indicator": "<informer index>",
"size": "<informer size>",
"type": "<informer type>"
}
},
"counter_flags": {
"collect_first_party_data": "<use advanced tracking settings>",
"measurement_enabled": "<enable the Measurement Protocol option>",
"use_in_benchmarks": "<access market reports>",
"direct_allow_use_goals_without_access": "<allow optimization by goals in advertising campaigns without access to the counter>"
},
"favorite": "<favorite>",
"filter_robots": "<robots filtration>",
"filters": [
{
"action": "<filter type>",
"attr": "<type of data to which the filter is applied>",
"status": "<filter status>",
"type": "<attitude or action for the filter>",
"end_ip": "<last IP address of the range>",
"id": "<filter identifier to change>",
"start_ip": "<first IP address of the range>",
"value": "<value>",
"with_subdomains": "<subdomain filter>"
}
],
"gdpr_agreement_accepted": "<consent to the Data Processing Agreement>",
"goals": [
{
"name": "<goal name>",
"type": "<goal type>",
"default_price": "<goal default price>",
"id": "<if of goal for updating>",
"is_favorite": "<favorite>"
}
],
"grants": [
{
"perm": "<Access level>",
"comment": "<arbitrary comment>",
"partner_data_access": "<access to report group Monetization>",
"user_login": "<login of the user to whom the authorization has been granted>",
"user_uid": "<uid of the user to whom the authorization has been granted>"
}
],
"labels": [
{
"name": "<lable name>"
}
],
"measurement_tokens": "<active token list>",
"mirrors2": [
{
"site": "<full site domain>"
}
],
"name": "<counter name>",
"offline_options": {
"offline_calls_extended_threshold": "<extended call accounting period>",
"offline_conversion_extended_threshold": "<extended accounting period for offline conversions>",
"offline_visits_extended_threshold": "<extended accounting period for offline visits>"
},
"operations": [
{
"action": "<action type>",
"attr": "<filter field>",
"status": "<action status>",
"id": "<change actions>",
"value": "<replacement value>"
}
],
"owner_login": "<owners login>",
"permission": "<counter access level>",
"publisher_options": {
"enabled": "<content analytics data collection>",
"schema": "<markup type used on the site>",
"schema_options": "<available markup options>"
},
"site2": [
{
"site": "<full site domain>"
}
],
"source": "<counter type>",
"time_zone_name": "<time zone>",
"visit_threshold": "<visit timeout in seconds>",
"webvisor": {
"arch_enabled": "<page saving>",
"arch_type": "<page content recording>",
"load_player_type": "<page load to player>",
"urls": "<save page list>",
"wv_forms": "<recording the contents of fields and forms>",
"wv_version": "<webvisor version>"
}
}
```