Overriding Customer Data
Last updated
Was this helpful?
Last updated
Was this helpful?
In order to modify the customer data that is sent to Nosto, you need to create your own mini-module. Please read the basics on
For modifying Nosto's customer data you must register hook actionNostoCustomerLoadAfter
and the actionNostoOrderLoadAfter
and implement corresponding action methods. Below is an example of how your MyNosto
class could look like.
File modules/mynosto/mynosto.php
Once you have overridden the customer model and customised whatever fields you may need, you should verify that it, in fact, working as expected.
NOTE: Please note that in order to verify the changes using the debug-toolbar, you must have a Nosto account for the given store.
A simple way to verify that the changes are working would be to log in as a customer and view any page with the Nosto debug-mode enabled. The debug mode can be enabled by adding the query parameter nostodebug=true
to the end of any URL. This will cause a helpful debug toolbar to appear where you can view the tagged data on the page. For more information on the debug-toolbar, please refer to this guide titled in our Support Center.