You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- There is a new greeting rule type in the [**Create Greeting**](/management/configuration-api/v3.7#create-greeting) method: `url_match_page_view_number`.
Copy file name to clipboardExpand all lines: src/pages/management/configuration-api/index.mdx
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2008,29 +2008,30 @@ Creates a new greeting.
2008
2008
|`rules[].type`<sup>**1**</sup> | Yes |`string`| The type of the rule condition. |
2009
2009
|`rules[].operator`<sup>**2**</sup> | Yes |`string`| The comparison operator for the rule. Not required for `url_funnel`<sup>**1**</sup>, `custom_variable`<sup>**1**</sup>, and `ads_traffic`<sup>**1**</sup>. |
2010
2010
|`rules[].value`| No |`string`| The value to compare against, based on the selected `operator`<sup>**2**</sup>. Required for most rule types. |
2011
-
|`rules[].urls`| No |`object[]`| An array of URLs. Required only for the `url_funnel`<sup>**1**</sup> type. Maximum: 10 objects.|
2012
-
|`rules[].urls[].url`| No |`string`| The URL for the `url_funnel`<sup>**1**</sup> rule. Required when `urls` array is used.|
2011
+
|`rules[].urls`| No |`object[]`| An array of URLs. Required only for the `url_funnel`<sup>**1**</sup> and `url_match_page_view_number`<sup>**1**</sup> types. Maximum: 10 objects. |
2012
+
|`rules[].urls[].url`| No |`string`| The URL for the `url_funnel`<sup>**1**</sup> and `url_match_page_view_number`<sup>**1**</sup> rules. Required when the `urls` array is used. |
2013
2013
|`rules[].urls[].operator`<sup>**2**</sup> | No |`string`| The operator for the URL comparison. Required when `urls` array is used. |
2014
2014
|`rules[].session_field`| No |`object`| Key-value pairs. Required for `custom_variable`<sup>**1**</sup> and `ads_traffic`<sup>**1**</sup> types - exactly one element. |
2015
2015
|`properties`<sup>**3**</sup> | No |`object`| The additional properties for the greeting as key-value pairs. |
2016
2016
|`rich_message`<sup>**4**</sup> | No |`object`| The rich message content of the greeting. |
2017
2017
2018
2018
**1)** Parameter requirements for each `rules[].type` value:
2019
2019
2020
-
| Type value | Required Parameters | Parameter Details |
|`visit_time_site`|`value`, `operator`| The `value` must be an integer between 0 and 900 (seconds spent on the entire website). |
2023
-
|`visit_time_page`|`value`, `operator`| The `value` must be an integer between 0 and 900 (seconds spent on the current page). |
2024
-
|`url_current`|`value`, `operator`| The `value` contains the current page URL to match. |
2025
-
|`url_visited`|`value`, `operator`| The `value` contains the previously visited URL to match. |
2026
-
|`url_funnel`|`urls`| The `urls` array with 1-10 URL objects, each with `url` and `operator`. |
2027
-
|`pages_view_number`|`value`, `operator`| The `value` contains the number of pages viewed to compare. |
2028
-
|`url_referrer`|`value`, `operator`| The `value` contains the referrer URL to match. |
2029
-
|`geolocation`|`value`, `operator`| The `value` contains the geographic location to match. |
2030
-
|`visits_number`|`value`, `operator`| The `value` contains the number of visits to compare. |
2031
-
|`search_keyword`|`value`, `operator`| The `value` contains the search keyword to match. |
2032
-
|`custom_variable`|`session_field`| The `session_field` object with exactly one key-value pair. Maximum: 255 characters each. |
2033
-
|`ads_traffic`|`session_field`| The `session_field` with one key from: `microsoft`, `facebook`, `google`, `twitter`, `yahoo`. Value maximum: 255 characters. |
2020
+
| Type value | Required Parameters | Parameter Details |
|`visit_time_site`|`value`, `operator`| The `value` must be an integer between 0 and 900 (seconds spent on the entire website). |
2023
+
|`visit_time_page`|`value`, `operator`| The `value` must be an integer between 0 and 900 (seconds spent on the current page). |
2024
+
|`url_current`|`value`, `operator`| The `value` contains the current page URL to match. |
2025
+
|`url_visited`|`value`, `operator`| The `value` contains the previously visited URL to match. |
2026
+
|`url_funnel`|`urls`| The `urls` array with 1-10 URL objects, each with `url` and `operator`. |
2027
+
|`pages_view_number`|`value`, `operator`| The `value` contains the number of pages viewed to compare. |
2028
+
|`url_referrer`|`value`, `operator`| The `value` contains the referrer URL to match. |
2029
+
|`geolocation`|`value`, `operator`| The `value` contains the geographic location to match. |
2030
+
|`visits_number`|`value`, `operator`| The `value` contains the number of visits to compare. |
2031
+
|`search_keyword`|`value`, `operator`| The `value` contains the search keyword to match. |
2032
+
|`custom_variable`|`session_field`| The `session_field` object with exactly one key-value pair. Maximum: 255 characters each. |
2033
+
|`ads_traffic`|`session_field`| The `session_field` with one key from: `microsoft`, `facebook`, `google`, `twitter`, `yahoo`. Value maximum: 255 characters. |
2034
+
|`url_match_page_view_number`|`value`, `operator`, `urls`| The `value` contains the number of pages viewed to compare. The `urls` is an array with 1-10 URL objects, each with `url` and `operator`. The rule matches if any of the `urls` match the `value`. |
2034
2035
2035
2036
**2)** Possible values for the `rules[].operator` and `rules[].urls[].operator` parameters:
2036
2037
@@ -4389,4 +4390,4 @@ curl -X POST \
4389
4390
4390
4391
# Contact us
4391
4392
4392
-
If you found a bug or a typo, you can let us know directly on GitHub. In case of any questions or feedback, don't hesitate to contact us at <ahref="mailto:developers@text.com">developers@text.com</a>. We'll be happy to hear from you!
4393
+
If you found a bug or a typo, you can let us know directly on GitHub. In case of any questions or feedback, don't hesitate to contact us at <ahref="mailto:developers@text.com">developers@text.com</a>. We'll be happy to hear from you!
Copy file name to clipboardExpand all lines: src/pages/management/configuration-api/v3.7/index.mdx
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2169,29 +2169,30 @@ Creates a new greeting.
2169
2169
|`rules[].type`<sup>**1**</sup> | Yes |`string`| The type of the rule condition. |
2170
2170
|`rules[].operator`<sup>**2**</sup> | Yes |`string`| The comparison operator for the rule. Not required for `url_funnel`<sup>**1**</sup>, `custom_variable`<sup>**1**</sup>, and `ads_traffic`<sup>**1**</sup>. |
2171
2171
|`rules[].value`| No |`string`| The value to compare against, based on the selected `operator`<sup>**2**</sup>. Required for most rule types. |
2172
-
|`rules[].urls`| No |`object[]`| An array of URLs. Required only for the `url_funnel`<sup>**1**</sup> type. Accepts up to 10 objects.|
2173
-
|`rules[].urls[].url`| No |`string`| The URL for the `url_funnel`<sup>**1**</sup> rule. Required when `urls` array is used.|
2172
+
|`rules[].urls`| No |`object[]`| An array of URLs. Required only for the `url_funnel`<sup>**1**</sup> and `url_match_page_view_number`<sup>**1**</sup> types. Maximum: 10 objects. |
2173
+
|`rules[].urls[].url`| No |`string`| The URL for the `url_funnel`<sup>**1**</sup> and `url_match_page_view_number`<sup>**1**</sup> rules. Required when the `urls` array is used. |
2174
2174
|`rules[].urls[].operator`<sup>**2**</sup> | No |`string`| The operator for the URL comparison. Required when `urls` array is used. |
2175
2175
|`rules[].session_field`| No |`object`| Key-value pairs. Required for `custom_variable`<sup>**1**</sup> and `ads_traffic`<sup>**1**</sup> types - exactly one element. |
2176
2176
|`properties`<sup>**3**</sup> | No |`object`| Additional properties for the greeting as key-value pairs. |
2177
2177
|`rich_message`<sup>**4**</sup> | No |`object`| The rich message content of the greeting. |
2178
2178
2179
2179
**1)** Parameter requirements for each `rules[].type` value:
2180
2180
2181
-
| Type value | Required Parameters | Parameter Details |
|`visit_time_site`|`value`, `operator`| The `value` must be an integer 0-900 (seconds spent on the entire website). |
2184
-
|`visit_time_page`|`value`, `operator`| The `value` must be an integer 0-900 (seconds spent on the current page). |
2185
-
|`url_current`|`value`, `operator`| The `value` contains the current page URL to match. |
2186
-
|`url_visited`|`value`, `operator`| The `value` contains a previously visited URL to match. |
2187
-
|`url_funnel`|`urls`| The `urls` array with 1-10 URL objects, each with `url` and `operator`. |
2188
-
|`pages_view_number`|`value`, `operator`| The `value` contains the number of pages viewed to compare. |
2189
-
|`url_referrer`|`value`, `operator`| The `value` contains the referrer URL to match. |
2190
-
|`geolocation`|`value`, `operator`| The `value` contains a geographic location to match. |
2191
-
|`visits_number`|`value`, `operator`| The `value` contains the number of visits to compare. |
2192
-
|`search_keyword`|`value`, `operator`| The `value` contains a search keyword to match. |
2193
-
|`custom_variable`|`session_field`| The `session_field` object with exactly one key-value pair. Maximum: 255 characters each. |
2194
-
|`ads_traffic`|`session_field`| The `session_field` with one key from: `microsoft`, `facebook`, `google`, `twitter`, `yahoo`. The value maximum: 255 characters. |
2181
+
| Type value | Required Parameters | Parameter Details |
|`visit_time_site`|`value`, `operator`| The `value` must be an integer between 0 and 900 (seconds spent on the entire website). |
2184
+
|`visit_time_page`|`value`, `operator`| The `value` must be an integer between 0 and 900 (seconds spent on the current page). |
2185
+
|`url_current`|`value`, `operator`| The `value` contains the current page URL to match. |
2186
+
|`url_visited`|`value`, `operator`| The `value` contains the previously visited URL to match. |
2187
+
|`url_funnel`|`urls`| The `urls` array with 1-10 URL objects, each with `url` and `operator`. |
2188
+
|`pages_view_number`|`value`, `operator`| The `value` contains the number of pages viewed to compare. |
2189
+
|`url_referrer`|`value`, `operator`| The `value` contains the referrer URL to match. |
2190
+
|`geolocation`|`value`, `operator`| The `value` contains the geographic location to match. |
2191
+
|`visits_number`|`value`, `operator`| The `value` contains the number of visits to compare. |
2192
+
|`search_keyword`|`value`, `operator`| The `value` contains the search keyword to match. |
2193
+
|`custom_variable`|`session_field`| The `session_field` object with exactly one key-value pair. Maximum: 255 characters each. |
2194
+
|`ads_traffic`|`session_field`| The `session_field` with one key from: `microsoft`, `facebook`, `google`, `twitter`, `yahoo`. Value maximum: 255 characters. |
2195
+
|`url_match_page_view_number`|`value`, `operator`, `urls`| The `value` contains the number of pages viewed to compare. The `urls` is an array with 1-10 URL objects, each with `url` and `operator`. The rule matches if any of the `urls` match the `value`. |
2195
2196
2196
2197
**2)** Possible values for the `rules[].operator` and `rules[].urls[].operator` parameters:
0 commit comments