V
V
Vicavic2018-03-16 01:03:30
PHP
Vicavic, 2018-03-16 01:03:30

Transferring deals from CRM to Roistat?

Greetings!
The task is to integrate Roistat. There is already a link between the site and AmoCRM, in fact, this is the problem. It is necessary to organize the transfer of transactions from CRM to Roistat. The manual is mainly devoted to organizing the transfer of transactions from Roistat to CRM. All that is in the manual on my question -

Add a script to the site page that receives the roistat_visit cookie value. It must be placed before sending data to CRM. Script example:
$roistatVisitId = array_key_exists('roistat_visit', $_COOKIE) ? $_COOKIE['roistat_visit'] : "неизвестно"

Since I am not an expert, it is very difficult for me to understand where I need to write this line. To a handler? Into the roistat counter? Where?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anastasia Lashkevich, 2018-07-05
@AnastasiaL

In the section of code that creates an order on your site. Immediately following the order creation operation. That. as soon as the order is created, with this line you will pass information about it to the roystat

G
Grigory Kovalenko, 2021-07-07
@bitrix24info

Transactions from your CRM are transferred to Roistat if the visit number is filled in (see the documentation for this). Further, your site is connected to CRM, and the task is to pass the visit number from the site, which issues the Roistat script on the site, into the transaction.
You need to add the transfer of the visit number to the CRM in the integration of the site, to the API, for example, or if there are forms that are not transmitted through the API, then they probably transfer UTM tags, respectively, we add the visit number to the tag, and then we already work in CRM with this label in terms of filling in the right place.
PS I would be grateful if more experienced AmoCRM partners correct me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question