Welcome sequence

Description

To call welcome emails, in Retail Rocket a special method was developed that is responsible for sending the required trigger script. Before calling the welcomeSequence method, the user must subscribe to mailing lists using the setProfile tracking code.

The logic of sending one welcome letter for one email should be supported by the store on its side. Retail Rocket will send as many welcome emails as it receives calls to the welcomeSequence tracking code.
The minimum delay for sending a letter to the address of one user is 1 minute.
Emails in this scenario have no sending limits (48 hours). In this way, they can be sent, for example, together with an abandoned view trigger mail.

🚧

User's email address

<user_email> - user's email address.

🚧

Stock ID

<stock_id> - Identifier of the stock to which products belong, string. Must match identifier of stock, which is passed in the product database.

Example of code

< script type = "text/javascript" >
    (window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() {
        try {
            rrApi.setProfile({
                "email": "<user_email>",
                "isAgreedToReceiveMarketingMail": true
            });
            rrApi.welcomeSequence("<user_email>");
        } catch (e) {}
    }) <
    /script>
< script type = "text/javascript" >
    (window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() {
        try {
            rrApi.setProfile({
                "email": "<user_email>",
                "defaultStockId": "<stock identifier>",
                "isAgreedToReceiveMarketingMail": true
            });
            rrApi.welcomeSequence("<user_email>");
        } catch (e) {}
    }) <
    /script>