Monetate

Debugging

Introduction

Debugging Monetete API calls can be done several ways

1. Experience Not visibile

  1. Check the network call in browser developer tools, typically the request will be from name toolstation, if you can't see the network call check in code weather the call is made or not, depending on which page you are you might want to check the monetate middleware file or monetate store file. Refer - How to Check Network call
  2. Once you are sure network call is right you can now check the payload you are sending, depending on weather you are getting recommendations based on page type or event type you can check weather you are sending the correct page type / event type or not. dashboard
  3. If you sending the right payload/ event you'll get an object response > data > responses > actions. actions will contain an array containing all the recommendations. returned by monetate, here you can verify the component name from actions > component it should contain the correct products inside the item array.
  4. if you are getting an empty array actions but the compoenent name is correct. its possibly the issue in experience, it might not be getting enough data to return any vaild recommendations, in that case you should report it to your project manager as this issue is from monetate side.

2. Page type not visible in monetate inscpector

  1. we are using Hybrid Implementation of monetate, so to fetch the recommendations and sending some events we are using engine api and to send page type and some other events we are using tag integration (script).
  2. if the page type is not visible, check in code weather you are sending the correct page type or not through monetate script.

example -

window.monetateQ = window.monetateQ || [];
window.monetateQ.push([
  "setPageType",
  "main"
]);
window.monetateQ.push([
  "trackData"
]);

Copyright © 2026