Overriding Customer Data
In order to modify the customer data that is sent to Nosto, you need to create your own extension. Please read the basics on how to extend or override data in Nosto extension
Verifying
Once you have overridden the product model and customised whatever fields you may need, you should verify that it, in fact, working as expected.
A simple way to verify that the changes are working would be to view any product 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 Nosto Debug Toolbar in our Support Center.
If you were to extend the product model using the example given above, you would see that the "Tags" field in the debug-toolbar will read "nosto".
NOTE: Please note that in order to verify the changes using the debug-toolbar, you must have a Nosto account for the given store.
Required files and configurations
1. The module configuration app/code/local/My/Nosto/etc/config.xml
app/code/local/My/Nosto/etc/config.xml
2. The events config app/code/My/Nosto/etc/config.xml
app/code/My/Nosto/etc/config.xml
3. The customer block app/code/local/My/Nosto/Block/Customer.php
app/code/local/My/Nosto/Block/Customer.php
4. The buyer model app/code/local/My/Nosto/Model/Meta/Order/Buyer.php
app/code/local/My/Nosto/Model/Meta/Order/Buyer.php
Last updated