Skip to content

Commit 945d448

Browse files
author
svs
committed
Change rees46.com to rees46.ru domain in config
1 parent 2dc9203 commit 945d448

File tree

2 files changed

+65
-65
lines changed

2 files changed

+65
-65
lines changed

config.r46.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
activate :relative_assets
4040
set :relative_links, true
4141

42-
set :api_endpoint, 'api.rees46.com'
43-
set :cdn_endpoint, 'cdn.rees46.com'
42+
set :api_endpoint, 'api.rees46.ru'
43+
set :cdn_endpoint, 'cdn.rees46.ru'
4444
set :js_sdk_name, 'r46'
4545
set :ios_sdk_package_name, 'REES46'
4646
set :ios_sdk_repo, 'https://github.com/rees46/ios-sdk.git'

source/includes/_tracking.md.erb

+63-63
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ To track assisted events, you need to user `recommendedBy` (or `recommended_by`,
1515

1616
All events require at least these parameters:
1717

18-
Parameter | Type | Required | Description
19-
--------- | ------- | ------- | -----------
20-
shop_id | String | true | Your API key
21-
did | String | true | Device ID
22-
seance | String | true | User's current session
23-
event | String | true | Type of an event
24-
stream | String | false | Data stream code. Alphanumeric string (letters, numbers only). Max length: 16. Default: null (means "web"). Can be "ios", "android" or any other string. Used to distinguish between mobile apps, web and other events sources
18+
| Parameter | Type | Required | Description |
19+
|------------|--------|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
20+
| shop_id | String | true | Your API key |
21+
| did | String | true | Device ID |
22+
| seance | String | true | User's current session |
23+
| event | String | true | Type of an event |
24+
| stream | String | false | Data stream code. Alphanumeric string (letters, numbers only). Max length: 16. Default: null (means "web"). Can be "ios", "android" or any other string. Used to distinguish between mobile apps, web and other events sources |
2525

2626

2727
SDKs already handle these parameters out of the box.
@@ -392,39 +392,39 @@ sdk.track("cart", {
392392
```
393393

394394
### JS SDK syntax (short request for a single product)
395-
|Syntax|
396-
| ------------ |
397-
|<%= config[:js_sdk_name] %>("track", "cart", id);|
395+
| Syntax |
396+
|---------------------------------------------------|
397+
| <%= config[:js_sdk_name] %>("track", "cart", id); |
398398

399399
### JS SDK Parameters
400-
|Parameter|Type|Requirement|Description|
401-
| ------------ | ------------ | ------------ | ----------- |
402-
|id|number/string|required|The ID of the product added to the cart|
400+
| Parameter | Type | Requirement | Description |
401+
|------------|---------------|--------------|-----------------------------------------|
402+
| id | number/string | required | The ID of the product added to the cart |
403403

404404
### JS SDK syntax (full request for a single product)
405-
|Syntax|
406-
| ------------ |
407-
|<%= config[:js_sdk_name] %>("track", "cart", {params});|
405+
| Syntax |
406+
|---------------------------------------------------------|
407+
| <%= config[:js_sdk_name] %>("track", "cart", {params}); |
408408

409409
### JS SDK Parameters
410-
|Parameter|Type|Requirement|Description|
411-
| ------------ | ------------ | ------------ | ------------ |
412-
|id|number/string|required|The ID of the product added to the cart|
413-
|amount|number|optional|Product quantity|
414-
|stock|boolean|optional|Product availability. If defined, it overwrites the value received from the product feed (XML) and HTTP-import of the product catalog.|
415-
|recommended_by|string|required in some cases|If a product from a recommendation widget was opened in a popup or a website uses a "single page" architecture, this parameter must contain the value "dynamic".|
416-
|recommended_code|string|required in some cases|If a product from the recommendations widget was opened in the pop-up or the site uses a "single page" architecture, this parameter must contain a unique code of the recommendations widget, available in the account in the "data-recommender-code" attribute for each widget.|
410+
| Parameter | Type | Requirement | Description |
411+
|------------------|---------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
412+
| id | number/string | required | The ID of the product added to the cart |
413+
| amount | number | optional | Product quantity |
414+
| stock | boolean | optional | Product availability. If defined, it overwrites the value received from the product feed (XML) and HTTP-import of the product catalog. |
415+
| recommended_by | string | required in some cases | If a product from a recommendation widget was opened in a popup or a website uses a "single page" architecture, this parameter must contain the value "dynamic". |
416+
| recommended_code | string | required in some cases | If a product from the recommendations widget was opened in the pop-up or the site uses a "single page" architecture, this parameter must contain a unique code of the recommendations widget, available in the account in the "data-recommender-code" attribute for each widget. |
417417

418418
### JS SDK syntax (request to send the full current cart)
419-
|Syntax|
420-
| ------------ |
421-
|<%= config[:js_sdk_name] %>("track", "cart", [{params}, ..., {params}]);|
419+
| Syntax |
420+
|--------------------------------------------------------------------------|
421+
| <%= config[:js_sdk_name] %>("track", "cart", [{params}, ..., {params}]); |
422422

423423
### JS SDK Parameters
424-
|Parameter|Type|Requirement|Description|
425-
| ------------ | ------------ | ------------ | ------------ |
426-
|id|number/string|required|The ID of the product added to the cart|
427-
|amount|number|optional|Product quantity|
424+
| Parameter | Type | Requirement | Description |
425+
|------------|---------------|--------------|-----------------------------------------|
426+
| id | number/string | required | The ID of the product added to the cart |
427+
| amount | number | optional | Product quantity |
428428

429429
## User removed product from cart
430430

@@ -462,14 +462,14 @@ sdk.track("remove_from_cart", id);
462462
```
463463

464464
### JS SDK syntax (full request for a single product)
465-
|Syntax|
466-
| ------------ |
467-
|<%= config[:js_sdk_name] %>("track", "remove_from_cart", id);|
465+
| Syntax |
466+
|---------------------------------------------------------------|
467+
| <%= config[:js_sdk_name] %>("track", "remove_from_cart", id); |
468468

469469
### JS SDK Parameters
470-
|Parameter|Type|Requirement|Description|
471-
| ------------ | ------------ | ------------ | ------------ |
472-
|id|number/string|required|The ID of the product removed from the cart|
470+
| Parameter | Type | Requirement | Description |
471+
|------------|---------------|--------------|---------------------------------------------|
472+
| id | number/string | required | The ID of the product removed from the cart |
473473

474474

475475
## User purchased products
@@ -540,33 +540,33 @@ If you want to debug purchase tracking, keep in mind: if you send event for exis
540540
</aside>
541541

542542
### JS SDK syntax
543-
|Syntax|
544-
| ------------ |
545-
|<%= config[:js_sdk_name] %>("track", "purchase", {params});|
543+
| Syntax |
544+
|-------------------------------------------------------------|
545+
| <%= config[:js_sdk_name] %>("track", "purchase", {params}); |
546546

547547
### JS SDK Parameters
548-
|Parameter|Type|Requirement|Description|
549-
| ------------ | ------------ | ------------ | ------------ |
550-
|products|array|required|An array of objects with product information in the order. Description of parameters in the table below.|
551-
|order|number/string|optional|Order number in the store. If not defined, the internal order numbering system will be used. In this case synchronization of order status is impossible.|
552-
|promocode|string|optional|Promo code used in transaction.|
553-
|order_price|number|optional|The final cost of the order including all discounts, bonuses, and additional services. If not defined, the cost of the order is calculated from the data in the product database without discounts and additional services.|
554-
|order_cash|number|optional|How much a customer paid with real money.|
555-
|order_bonuses|number|optional|How much a customer paid with bonuses.|
556-
|order_delivery|number|optional|Delivery fee.|
557-
|order_discount|number|optional|Order discount.|
558-
|delivery_type|string|optional|Method of delivery. Available values: "self_pickup", "delivery", "pickup_point"|
559-
|payment_type|string|optional|Payment type. Can by any string value. Ex: cash, card, wire.
560-
|tax_free|boolean|optional|Tax free
548+
| Parameter | Type | Requirement | Description |
549+
|----------------|---------------|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
550+
| products | array | required | An array of objects with product information in the order. Description of parameters in the table below. |
551+
| order | number/string | optional | Order number in the store. If not defined, the internal order numbering system will be used. In this case synchronization of order status is impossible. |
552+
| promocode | string | optional | Promo code used in transaction. |
553+
| order_price | number | optional | The final cost of the order including all discounts, bonuses, and additional services. If not defined, the cost of the order is calculated from the data in the product database without discounts and additional services. |
554+
| order_cash | number | optional | How much a customer paid with real money. |
555+
| order_bonuses | number | optional | How much a customer paid with bonuses. |
556+
| order_delivery | number | optional | Delivery fee. |
557+
| order_discount | number | optional | Order discount. |
558+
| delivery_type | string | optional | Method of delivery. Available values: "self_pickup", "delivery", "pickup_point" |
559+
| payment_type | string | optional | Payment type. Can by any string value. Ex: cash, card, wire. |
560+
| tax_free | boolean | optional | Tax free |
561561

562562
Description of parameters in the objects of the "products" array:
563563

564-
|Parameter|Type|Requirement|Description|
565-
| ------------ | ------------ | ------------ | ------------ |
566-
|id|number/string|required|The ID of the product in the order|
567-
|amount|number|required|Product quantity|
568-
|price|number|optional|Product cost per unit|
569-
|stock|boolean|optional|Product availability. It may be useful when a single product is sold to exclude it from the recommendations at once.|
564+
| Parameter | Type | Requirement | Description |
565+
|------------|---------------|--------------|----------------------------------------------------------------------------------------------------------------------|
566+
| id | number/string | required | The ID of the product in the order |
567+
| amount | number | required | Product quantity |
568+
| price | number | optional | Product cost per unit |
569+
| stock | boolean | optional | Product availability. It may be useful when a single product is sold to exclude it from the recommendations at once. |
570570

571571
## User added product to favorites
572572

@@ -787,9 +787,9 @@ Endpoint: `POST https://<%= config[:api_endpoint] %>/track/clicked`
787787

788788
All events require at least these parameters:
789789

790-
Parameter | Type | Required | Description
791-
--------- | ------- | ------- | -----------
792-
shop_id | String | true | Your API key
793-
code | String | true | Message identifier. Value can be taken from push's JSON payload. For Android it's located in `id` property. In iOS SDK it's `src.id`
794-
type | String | true | Message type. Value can be taken from push's JSON payload. For Android it's located in `type` property. In iOS SDK it's `src.type`
790+
| Parameter | Type | Required | Description |
791+
|-----------|--------|------------|--------------------------------------------------------------------------------------------------------------------------------------|
792+
| shop_id | String | true | Your API key |
793+
| code | String | true | Message identifier. Value can be taken from push's JSON payload. For Android it's located in `id` property. In iOS SDK it's `src.id` |
794+
| type | String | true | Message type. Value can be taken from push's JSON payload. For Android it's located in `type` property. In iOS SDK it's `src.type` |
795795

0 commit comments

Comments
 (0)