Low Code Manual Deployment

You may deploy the Rezolve widgets through our tag by following these few steps.

Step 1: Insert the Rezolve Tag

This is a necessary one-time step to be able to meaningfully continue with the rest of the deployment process. This piece of code should be placed in the HTML head of the website so that it can be executed earlier.

🚧

Avoid inserting the Rezolve Tag using Tag Managers

Using tag managers may cause a delay in loading the Rezolve Tag which could lead to shoppers not seeing the widget or the widget not loading at all due to other issues.

Step 2: Set Page Targeting Rules

This step is for you to set rules using the page URL that decide which pages the widgets will load on. You have four conditions that you can combine using 'AND' or 'OR' conditions.

  1. URL starts with
  2. URL ends with
  3. URL contains
  4. Regular Expression

For example, if you would like your widgets to only appear on the jeans PDPs, where the URL path of these PDPs contain /products/jeans/, then you could use the condition 'URL contains' to create this rule.

Thereafter, remember to test whether your rule is working as expected in the 'Test conditions' section by inserting a few examples of URLs where you expect the rule to be applied and not.

Step 3: Locating the Product ID

For recommendations to be generated, a product ID is required. This is typically the product ID of the PDP that your shopper is viewing. What you would have to do is key in javascript code that would be run when the widget is loaded on the page to retrieve the product ID.

After writing the javascript code, test whether it works by keying in a page URL where you would expect to see a recommendation for and click the 'Test' button. Note: this step only works if you had installed the Rezolve tag as specified in step 1. A new window should open loading the page URL in a debug environment, with a window at the top left that helps you ascertain whether your setup is working as expected. Navigate to the 'Product ID' tab and check whether the value shown is the correct product ID. If not, inspect for errors using the browser's console, end the test, modify the javascript code that you keyed in previously and try again.

Step 4: Enabling Analytics

Enabling analytics is critical in getting the full benefits of Visenze's solutions and what it requires is the capturing of key events along the shopper's journey. Using the low code manual deployment, you would only be sending two events - add to cart and transactions. Capturing an event comprises two parts:

  1. Creating the trigger - the action/event that sends data to Rezolve, e.g. clicking the 'Add to cart' button.
  2. Sending the event with the requisite data once the trigger action/event takes place

While this step is optional, we strongly encourage that you complete this step early on to get the maximum utility from your widgets.

2852

Adding triggers comprises four steps.

  1. Name your trigger - Especially incases where there are multiple affordances on your website for a shopper to add a product to cart, this helps you and your team know at a glance which trigger is being referred to

  2. Choose your trigger type - The most indicative action/event that signifies that a product has been added to cart/purchased

  • 'On click': Generally refers to when a CTA button has been clicked
  • 'When visible': Generally refers to when a toast or a banner appears to signify that an event has happened
  • 'On page load': When a user reaches a certain page, e.g. a checkout completion page
  1. Identify the trigger element - For 'On click' and 'When visible' trigger types, this involves specify the selector of the element that is clicked/visible. For 'On page load', it is specifying the url pattern that matches the page that the user would reach.

  2. Sending the product ID (and transaction amount) - This is to identify the product that has been added to cart. For transactions, you would also need to send the transaction amount for each product.

Once you have filled up these four conditions, you can proceed to test whether your setup is working as expected. As in the previous step, load a page url and this time, navigate to the 'Events' tab.

Before triggering any event, you should see a message that tells you that events are being listened for. When the event is successfully triggered and captured, you should see the trigger that was fired, the associated product id and transaction value (if it was a transaction trigger, for ATC triggers, the transaction amount would be NA).

If you have triggered an event and there is no change to the earlier visual in the Test Assistant, it means that no trigger activation was detected. This typically is an issue with the selector that was identified while setting up the trigger. End your test, check if the selector is correct and try again.

If the trigger was detected and the event was not captured, switch to the 'Errors' tab to further debug. Typically errors come from javascript that was not executable or the values that were returned were unexpected. These are the list of errors:

  • ATC_PID_INVALID: Product ID value returned for 'Add to cart' event should be a string.
  • JAVASCRIPT_INVALID: Unable to parse your custom javascript, you may further debug this using your browser’s console log.
  • TRANSACTION_TYPE_INVALID: The object returned for the 'Transaction event' should be an array of maps.
  • TRANSACTION_PID_MISSING: The [pid] key is missing in one or more maps.
  • TRANSACTION_PID_INVALID: The [pid] returned should be a string.
  • TRANSACTION_VALUE_INVALID: The [value] returned should be a number.

Step 5: Review your publishing settings

This final step is for you to review your entire setup before making it live on your website. You may revisit each section and test the final outcome. Once you are satisfied, hit 'Publish now' and your widgets should be deployed in the next 10 minutes.