Optimizely + Yotpo Loyalty & Rewards

Posted by: Dhirendra Singh

High level guide to implement reviews in Optimizely

Loyalty programs, sponsored by retailers and other businesses, offer rewards, discounts, and other special incentives as a way to attract and retain customers. For eCommerce, loyalty program is a system designed as a seamless part of the customer journey to create a proactive community around your brand and offerings. 

In this article we’ll be focusing on the Yotpo Loyalty & Rewards integration with Optimizely. 

The Optimizely & Yotpo integration provides brands with full access to loyalty and reviews data that can enhance the precision of customer predictions generated by Optimizely’ data science capability, making campaigns more personal and timely. With this integration, brands will deepen customer relationships and increase lifetime value with loyalty and reviews-driven personalization, creating moments of engagement for shoppers based on data.

To get complete benefits of the article, it is recommended to have understanding / experience of Optimizely CMS and Commerce Project Development

Let's start with the Yotpo account creation.by default, one default store gets created when you sign up. While sign-up you will be asked to select product(s). Make sure to select “Loyalty & Reward”. 

After successfully signing up you will be redirected to the Loyalty & Reward Dashboard. Now it's time to set up various programs through “Set up Program” menu options. 

For your reference various screens from “Set up Program” the menu are given below:

Set up Program - Rewards

Set up Program - Earning Rule Set up Program - VIP Tiers You can refer below link to get deep insights of Yotpo Loyalty Account and Programs set up https://support.yotpo.com/en/article/set-up-your-yotpo-loyalty-referrals-membership-program-with-a-paid-membership-earning-rule https://support.yotpo.com/en/loyalty-referrals/installing-yotpo-loyalty-referrals

Now it's time to implement various APIs available for Review with Optimizely. Before moving to the next step. Lets explore below API documentation available from Yotpo. https://loyaltyapi.yotpo.com/reference/reference-getting-started

Implementing Yotpo Loyalty with Optimizely Commerce

 -        Create Yotpo Loyalty Service Module Class

This class contains all the settings and implementation code of Yotpo Review API with the CMS / Commerce Application. Refer below sample 

====================================================

====================================================

  • Initialize & Register Yotpo Service Module Class in the initialization module

Once the Service class is ready now it's time to make it available to CMS / Commerce. This can be done using the Optimizely Initialization. This is documented in the Optimizely World and you can refer to this link for more details.

https://docs.developers.optimizely.com/content-cloud/v11.0.0-content-cloud/docs/initialization

Below is the sample example of Initialization Module class

====================================================

====================================================

Above code snippet also uses Dependency Injection through the ConfigurationContainer method. Ideally YotpoLoyaltyService should contain implementation code and YotpoSettings should contain Yotpo settings related information, refer below code snippet.

====================================================

====================================================

  • Optimizely Scheduled Jobs

-        A scheduled job is a service performing a task (job) at a given time interval or an administrator can start it manually. By default, Optimizely platform with Optimizely CMS and Optimizely Commerce includes several scheduled jobs. You can develop customized scheduled jobs for specific website purposes. Creation of jobs are provided in details in mentioned articles

https://docs.developers.optimizely.com/content-cloud/v11.0.0-content-cloud/docs/scheduled-jobs https://docs.developers.optimizely.com/commerce/v13.0.0-commerce-cloud/docs/scheduled-jobs

-        For Yotpo Loyalty, Jobs can be created for syncing between Yotpo and Optimizely. Example of synchronization can be for Loyalty Redemption, Order Export from Optimizely to Yotpo Loyalty, Order Returns etc. To conclude the article in a few words: Optimizely (CMS & Commerce) site(s) can easily make use of Richer Loyalty program of Yotpo.

AccelerateBSi uses cookies to deliver superior functionality and to enhance your experience of our website. Continued use of this site indicates that you accept this policy.