Email tracking allows to track down the source of client's requests sent by e-mail. It works the following way: when a customer visits your website, he sees the substitution e-mail address. When he sends a request on this e-mail address, the request is redirecting to the real address you specified in email tracking settings.
Email tracking setup is a fairly simple process. It consists of several steps:
Roistat calculates the recommended number of substitute e-mail addresses from your website attendance within the last 3 days.
Substitute e-mail will be linked to the visit number within 15 minutes.
Activate the email tracking by dragging the Track emails bar to the right:
Now, the email address that receives the messages, is substituted by the algorithm you specified in the previous step.
If you want to deactivate email tracking on particular webpages, use the following JS API method:
<script> window.onRoistatModuleLoaded = function () { window.roistat.emailtracking.enabled = false; }; </script> |
Click the Test connection button to test the correctness of entered data.
Synchronization will allow downloading the messages from your mailbox to the Roistat project.
Roistat project receives the messages only from the Inbox folder.
How to send to CRM messages with requests loaded in Roitat project:
After the message with visit number was loaded to your project, Roistat sends POST-request to the destination address.
POST-request body contains JSON-object, that sends the following information about the request:
{ "id": "111",// unique message number in Roistat "email_id": "222", // unique message number in your email "visit_id": "123456", // visit number "subject": "Re: Test", // subject of the message "text": "Test message", // text of the message "email_from": "email_1@mail.com", // email from where the message came from "email_to": "email+123456@mail.com", // address the email was sent "attachments": [], // attached files "referrer": "fb.com", // landing page "marker": "fb_new", // visit source "city": "New York", // city "country": "USA", // country "ip": "161.185.160.93", // IP-address "first_visit": "1001", // first visit "domain": "test.com", // website domain "landing_page": "test.com/new", // landing 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, "google_client_id": null, "source_level_1": "fb", "source_level_2": "new" } |
Example of a handler that supplements the log:
<?php $data = json_decode(trim(file_get_contents('php://input')), true); file_put_contents('webhook-log.html', serialize($data) . '<br />', FILE_APPEND); // In $data will be array "key" => value with information about the letter described above |
Deals in CRM will be created only:
To substitute each additional address, place the following script between <body></body> tags in the code of your website page with substitute addresses:
To receive all letters in CRM automatically, readdress the letters from all your addresses to one email.
|
To browse the letters that are loaded to your Roistat project, click the History tab:
You will see the loaded letters in the table with the following columns:
Date - date and time of the letter;
Sender - sender address;
Receivers - receivers addresses;
Visit number - visit number from roistat_visit cookie;
Deal number - number of the deal from CRM (if you clicked the Send to CRM checkbox); If a user sends the letter with the attached file, this file will be saved to Roistat server, and deal in CRM will receive a link to this file.
Theme - the subject of the letter;
The frequency of the letters list updating depends of the number of Roistat projects on the server. In average, letters list is updating every 3-15 minutes.