Integration with Reskyt

 

Questo articolo è attualmente disponibile in inglese e spagnolo. Puoi fare riferimento a questa documentazione mentre arriva nella tua lingua.

If your eCommerce is in Reskyt, integrate your Connectif account with Reskyt and send native push notifications through the app.

In this article, you’ll learn how to integrate your Connectif account with Reskyt to collect contact activity and automate sending push notifications through your eCommerce app.

  

Implementation time: 1 hour.
Difficulty: Intermediate
When to use it:
To send push notifications via the app.

 

This is an example of the many possibilities offered by this integration. By following the basic principles explained in this article, you'll be able to create more push strategies to help you meet your goals.

 

Why implement the extension

1. Use cases you can create after this integration

Here are some ideas that can help you implement different strategies in the Reskyt application after activating the extension with Reskyt in your Connectif Store.

  • Recover abandoned carts.
  • Implement remarketing strategies through Reskyt push notifications.
  • Send birthday greetings to contacts.
  • Send a first purchase anniversary discount.

2. What can you do with Connectif in Reskyt?

With this extension, from Connectif you can create automated strategies to send push notifications through the Reskyt app.

Additionally, you can gather contact activity in Reskyt.

3. What Connectif data can you use in Reskyt?

Likewise, in Reskyt you can leverage all the information collected in the contact's profile, as well as their real-time activity, to personalize notifications with Connectif contact data.

 

Before you start: what to consider

To integrate your Connectif account with Reskyt and automate native push notifications, you will need to:

  • Request Reskty to activate the API and its value, to be able to use it.

In addition, you should bear in mind some of Reskyt’s properties for sending mobile push notifications:

  • It is not possible to unsubscribe a contact from these notifications as there is no mechanism to notify you in case of delivery error.
  • Mobile pushes have no statistics or analysis for submissions, opening or clicks. 
    • The number of clicks could be retrieved using UTM options on the link, but it is not a default value.
  • The contact will have one device at most, as only one token can be stored in the custom field.
  • Two or more contacts can have the same Reskyt token, as they could start multiple sessions on the same device, for example. 

 

STEP 1: Creating the custom field that will store the Reskyt token

(This section will create the custom field that will collect the Reskyt token, i.e. the contact identifier in the App).

1. Go to "Contacts > Contact fields" and click Add new custom field.

Integración con Reskit - 1-min.png

2. Assign it the Text type and click Go to Editor.

Integración con Reskit - 2-min.png

3. Give it the Name and ID "reskyt-token" and click Save.

 

For the integration to work and the token to be stored in Connectif, it is important that the custom field has this name and ID.

Integración con Reskit - 3 (1)-min.png

 

STEP 2: Creating the workflow to collect the contact's token

(This section will create the workflow that will collect contact activity while browsing the Reskyt app and in Connectif update the custom field you created in STEP 1. This activity will be collected using a script that will be inserted into Reskyt using inline content).

4. Go to Workflows and click Create new workflow.

Integración con Spoki 2023 - 6-min.png

5. Select a new blank workflow.

6. In the "Start node”, select All contacts from my list.

7. Add the trigger node "On page visit" so that the workflow is activated the moment a contact visits the web.

Integración con Reskit - 4-min.png

8. Add the "Check value" condition node and access the node editor.

9. In the settings of the "Check value" node, select the User Agent operator obtained from the "On page visit" node and drag it to the left column of the center panel.

Integración con Reskit - 5-min.png

10. From the right column, select the Literal value and drag it to the middle panel, to the right column. Then enter the text "rktwebview" in that value.

  

The value we indicate is what Reskyt assigns by default. You can modify it, but if you do this you will need to indicate the value you have assigned in this field instead of "rktwebview".

Integración con Reskit - 6-min.png

11. Click Update.

  

Connectif will then verify that the page contains the value "rktwebview" in the User Agent parameter during browsing. This information is transferred directly by Reskyt to indicate that a contact is browsing via its application.

12. Add the "Send web content" action node to insert the script that will check contact activity via Reskyt.

13. Do not edit the junction of this node with the "Check value" node, so that "Yes" appears.

Integración con Reskit - 7-min.png

14. Click (Edit node settings) of the “Send web content” node and Create new content to generate new content.

15. When creating new content, select Inline as the type, give it a name, for example "Reskyt Script", and click Create new content

16. Add an HTML component and edit it by copying and pasting the following code:

<script>
(function connectifReskyt(global) {

  if (global.connectif &&

      global.connectif.managed &&

      global.connectif.managed.isInitialized()) {

    getReskytToken();

  } else {

    global.document.addEventListener(

      "connectif.managed.initialized",

      function onConnectifInitialized() {

        getReskytToken();

      }

    );

  }

  function getReskytToken() {

    var reskytToken = getCookie("token_md5") || "";

  var previousReskytToken = global.sessionStorage.getItem("cn_reskyt_token");

    if (reskytToken !== previousReskytToken) {

      global.connectif.managed.sendEvents([], {

        entityInfo: { "reskyt-token": reskytToken },

        onResponded: function onResponded() {

          global.sessionStorage.setItem("cn_reskyt_token", reskytToken);

        }

      });

    }

  }

  function getCookie(name) {

    var value = "; " + global.document.cookie;

    var parts = value.split("; " + name + "=");

    if (parts.length === 2) return parts.pop().split(";").shift();

  }

})(window);
</script>
  

This Script collects the Reskyt token from a cookie and stores it in the custom "reskyt-token" field.

Integración con Reskit - 8-min.png

17. Click Save to keep your changes to the layout and Back to selector to go back and finish configuring the node.

18. Once you’ve selected the Inline content you just created, click Next .

Integración con Reskit - 9-min.png

19. In Configuration, add the appropriate selector to display the content. In this case, it is advisable to include the content in the product page or another page that is rendered both on the website and in the app.

Integración con Reskit - 10-min.png

20. Click Complete .

21. Save and activate Workflow.

 

STEP 3: Creating the outbound data event to show pushes in Reskyt

(In this section you’ll create the event that will send the information from Connectif to Reskyt to allow push notifications to be displayed within the app).

22. Go to Store Backoffice in the left side menu.

23. In the tab selector, go to "Integrations > Custom integrations (webhooks)" and click Create new integration.

Integración con Spoki 2023 - 0-min.png

24. Set the "Integration name" field to identify the integration and click Update.

25. On the Send data tab, click Create new Outbound event.

26. Within that screen, give the event a name.

27. Click Add a new header and name it "x-api-key" and enter the Reskyt API value in Value.

 
 

In order to use it, you’ll need to request this value from Reskyt, as well as activation of its API.

Integración con Reskit - 11-min.png

28. Click Add a new field to create each custom field and fill in its information:

  • Create a Text field with the name and ID "dateEnd".

Although it is not mandatory to add the end date, we do recommend it, for example in strategies where you want to send a push with an offer, so that it stops being sent when the offer ends.

  • Create a Text field with the name and ID "pictureUrl".
  • Create a Text field with the name and ID "title" and mark it as mandatory.
  • Create a Text field with the name and ID "tokens" and mark it as mandatory. Enable the JSON options and give it the parameter "/tokens/0".

Integración con Reskit - 15-min.png

  • Create a Text field with the name and ID "url".
  • Create a Text field with the name and ID "utmCampaign".

Integración con Reskit - 12-min.png

29. Click Save.

 

STEP 4: Creating the workflow to send a push notification in Reskyt

(In this section you’ll create the strategy that will send a push notification to the Reskyt app).

 

We recommend that you create a dynamic plus segment to filter the reskyt-token custom field to non-empty contacts. This will trigger the strategy for Reskyt contacts only, to avoid Connectif having to search through your entire database.

30. Go to Workflows and click Create new workflow.

Integración con Spoki 2023 - 6-min.png

31. Select a new blank workflow.

32. In the "Start node", select the Dynamic Segment Plus you created to filter Reskyt contacts. 

34. Look for the action node that you created when you created the Reskyt integration (step 3) and add it to your workflow.

Integración con Reskit - 13-min.png

35. In the node settings, drag the "reskyt-token" field from the contact information and match it to the "Tokens" value in the right column. Match the rest of the values with a Literal field to give it the form and information that your push will contain in Reskyt.

 

The dateEnd field should be in Timestamp format. You can use this converter to get the format of the date you want to enter. In addition, Reskyt marks the deadline two months after delivery.

Integración con Reskit - 14-min.png

36. Click Update to save the node configuration and activate your workflow.

 

 

Success!
The integration of your Connectif account with Reskyt is ready.

 


Keep learning!

To make the most of your Connectif account, we recommend reading these articles next:

  • Custom integration for receiving data, to learn how to use information that is not registered by default on the platform.
  • Predefined webhooks, to integrate your Connectif account with WhatsApp, Doofinder and other webhooks on your website.
  • Use cases, to get ideas and strategy templates that you can apply in your Store.
  • API integrations, to manage events such as purchase registrations or contact registrations.

 

 
 
 
Questo articolo ti è stato utile?
Utenti che ritengono sia utile: 0 su 0