Loading...
Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(информация) For the conditional operator "Any of" it is necessary to enter the values separated by commas.

ConditionOperatorsAvailable eventsAdditional info

Visitor's city name

Visitor's country name

IP address of the visitor

Referrer page, from which the user cam to your website

Domain name

Landing page

Source

UTM tags values

roistat_param tags values

Equals

Any of

Contains

Doesn't contain

New visit

New deal

Deal status change

X days passed since deal creation

X days passed since the deal was closed

Custom event

This group of conditions uses the visitor's data
Number of deals

Equals

Greater than

Lesser than

New visit

New deal

Deal status change

X days passed since deal creation

X days passed since the deal was closed

Custom event

The condition uses data from the first visit of the user.

Deal status

Equals

Any of

Contains

Doesn't contain

New deal

Deal status change

X days passed since deal creation

X days passed since the deal was closed

The condition checks the deal status in the CRM system
Additional fields from CRM system

Equals

Any of

Contains

Doesn't contain

New deal

Deal status change

X days passed since deal creation

X days passed since the deal was closed

The condition checks additional field values in the CRM system
Event name

Equals

Any of

Contains

Doesn't contain

Custom eventThe condition checks that a specific event has occured

Action

If the event selected in the first step satisfies the conditions selected in the second, one of the following actions will be performed, which is configured in this step.

...

In all texts, you can use dynamic variables that will change their value in each particular case, the full list below:

Переменная
Variable Name
Значение
Value
{visit_id}Visit ID
{visit_ip}IP address of the visit
{visit_marker}Visit source (marker)
{visit_city}City of visit
{visit_country}Country of visit
{visit_referrer}Referrer page of the visit
{visit_domain}Website domain
{visit_landing_page}Landing page
{visit_utm_source}utm_source tag value
{visit_utm_medium}utm_medium tag value
{visit_utm_campaign}utm_campaign tag value
{visit_utm_term}utm_term tag value
{visit_utm_content}utm_content tag value
{visit_roistat_param_1}roistat_param1 parameter value
{visit_roistat_param_2}roistat_param2 parameter value
{visit_roistat_param_3}roistat_param3 parameter value
{visit_roistat_param_4}roistat_param4 parameter value
{visit_roistat_param_5}roistat_param5 parameter value
{client_external_id}Client ID in the CRM system
{client_name}Client name
{client_company}Client company name
{client_phone}Client phone number
{client_email}Client email
{order_id}Order ID in the CRM system
{order_price}Revenue (amount) of the order
{order_cost}Order cost
{order_status}Deal (order) status in the CRM
{event_id}ID of event execution
{event_meta_id}ID of event that was executed
{event_data}Data about the event that was executed

(warning) All variables are subject to the following restriction: if at the moment the script triggers in Roistat there is no information about the client, order, etc., then a dynamic variable itself will be sent to the notification instead of the value.

...

Code Block
languagejs
titleФормат данных:Data Format
{
"event_type": "order_created",
"script_id": "19",
"script_name": "New deal",
"visit": {
"id": "12345",
"ip": "123.45.67.89",
"marker": "test_page_post",
"city": "Moscow",
"country": "Russia",
"referrer": "testpage.com",
"domain": "site.com",
"landing_page": "site.com/test/page",
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"utm_term": null,
"utm_content": null,
"roistat_param_1": null,
"roistat_param_2": null,
"roistat_param_3": null,
"roistat_param_4": null,
"roistat_param_5": null
},
"order": {
"id": "100",
"price": 120,
"cost": 100,
"status": "New"
},
"client": {
"external_id": "2",
"name": "Test Client",
"company": null,
"phone": "79012223344",
"email": "test@client.com"
}
}

...