Integration method recommended by Netcore Unbxd onboarding experts.
Netcore Unbxd Pulse is a JavaScript snippet added to your website to capture anonymous data on user interactions. This data is sent to our servers, where it fuels Unbxd’s AI models, enhancing your shoppers’ ability to find the products they’re looking for.
Pulse is engineered to function without impacting site performance. It operates efficiently, utilizing event listeners to track shopper activity without interfering with the browser’s event loop.
Simplified Ownership
With other methods, customers bear the responsibility of integrating analytics, often requiring extensive support. Netcore Unbxd Pulse shifts this responsibility to us, requiring you to only include a single line of code on your website.
Faster Integration
Traditional integration processes are often delayed by roadblocks during implementation, leading to analytics not being ready even after going live. With Netcore Unbxd Pulse, the integration process is drastically shortened, targeting completion within a couple of days.
Enhanced Post-Go-Live Experience
Netcore Unbxd Pulse proactively addresses issues with broken analytics after going live. If analytics fails for specific metrics:
An alert banner will appear in the Console.
The support team will be notified automatically.
The support team will proactively resolve the issue and redeploy the analytics script without your intervention.
Every event requires mandatory attributes to form its payload. Ensure these values are accessible in the page, DOM, or URL for sending the event. Additionally, specific HTML attributes may need to be added for each document or event type. Refer to the event payload section for detailed information.
2
Add the integration code
Add the following <script> tag at the end of your site’s HTML body.
The use of the defer attribute is to load the script in parallel with HTML parsing, ensuring the script executes only after the HTML is fully parsed. This improves the load performance of the page.
3
Validate payload data retrieval
Verify that Netcore Unbxd Pulse can retrieve event payload data from sources such as DOM, URL, or browser windows.
The mandatoryquerypayload is captured from the search input box, and the event is triggered when the shopper either presses the Enter key or clicks the search submit button.
In this reference markup, the query value is extracted by targeting the input value from the class selector.
💡 You can skip this event if you’ve not purchased Netcore Unbxd Browse.
The mandatorypage and pageTypepayloads should be triggered on all category pages.
Activating the categoryPage event relies on the configuration of category fields in your feed and the method used to request the category API. To enable this event, make sure the UnbxdAnalyticsConf object is properly set on the window with accurate page and page_type values.
In this reference markup, the page and page_type values are extracted by targeting the UnbxdAnalyticsConf object from the window.
Example markup of the category page
Copy
Ask AI
window.UnbxdAnalyticsConf = window.UnbxdAnalyticsConf || {};window.UnbxdAnalyticsConf["page"] = "{{categoryPath used for category api call (value of 'p' parameter)}}";window.UnbxdAnalyticsConf["page_type"] = "BOOLEAN";
The mandatorypidpayload is captured from the product element of the Products Listing Page, and the click event is triggered when the shopper clicks on the product.
Key points:
The pid can be obtained from an HTML attribute or a URL, such as the img_url or href on the product card.
If the unique ID for the product has not been added to the product element, refer to the Netcore Unbxd Search API response to pass it.
The mandatory pid and variantid (if your catalog contains product variants) payloads are captured from the DOM or from a URL, such as the browser URL, img_url, or href in the product details section. The event is triggered when the respective CTA button is clicked.
Example browser URL:https://www.example.com/product/product_107440/107440_green?sale=clearance
The mandatory pid and variantid (if your catalog contains product variants) payloads are captured from the DOM or from a URL, such as the browser URL, img_url, or href in the product details section. The event is triggered when the quantities are modified.
The ownership of the Order event lies with the retailer. Details of successfully ordered products should be stored as a variable on the browser’s window, as demonstrated in the example below. Netcore Unbxd Pulse will retrieve this data from the window object and trigger the order event accordingly.
💡 The key names need to be maintained as shown in the example below given the ownership of the event will not be with Netcore Unbxd.
Example JSON of the order success page
Copy
Ask AI
window.unbxdOrderData = [ { pid: "107440", // Required - Product ID variantId: "107440_01", // Required only if your catalog has variants qty: "1", price: "29.99", }, { pid: "245102", // Required - Product ID variantId: "245102_red", // Required only if your catalog has variants qty: "2", price: "10.99", },];