Techdocs
Search…
Sending Customer Information
Use api.customer() function to send information about the current customer to Nosto. After the information is sent, current visit is updated with latest details.
Typical situation when manual update is needed if your site handles login with AJAX compared to regular implementation where login requires a page load and the following page includes customer tagging.
1
nostojs(function(api) {
2
api.customer({
4
first_name:"Jane",
5
last_name:"Doe",
6
marketing_permission: true,
7
customer_reference: "5e3d4a9c-cf58-11ea-87d0-0242ac130003"
8
})
9
});
Copied!
Last modified 5mo ago
Copy link