1 Overview
Standalone Tracking is the script-based implementation of Mapp Fashion tracking. It uses a dedicated JavaScript loader that runs independently of the Mapp Intelligence Pixel and handles all core tracking functions on the website. This includes initializing the tracking library, capturing page views and product interactions, and maintaining session and user context required for recommendations and measurement.
2 Implementation
This section explains how to initialize the tracking library and how default page view tracking works.
2.1 Initialization
Add the following loader snippet to your website before the closing </head> tag.
This initializes the tracking library and ensures tracking begins as soon as possible.
(function(D, r, e, s, S, i, p, I) {
D.DressipiLoaderObjectName = i;
D[i] = D[i] || function() {
(D[i].q = D[i].q || []).push(arguments);
};
D[i].l = 1 * new Date();
D[i]('config', 'set', 'host', S);
p = r.createElement(e);
I = r.getElementsByTagName(e)[0];
p.async = 1;
p.src = s;
I.parentNode.insertBefore(p, I);
})(window, document, 'script', 'https://static.dressipi.com/dressipi.v3.js',
'https://dressipi.example.com', 'Dressipi');After loading the tracking library, set your namespace and trigger the initial page view:
Dressipi('config', 'set', 'namespace_id', '0699d521-eebd-43a9-8543-9d3a704ab427');
Dressipi('track', 'pageView');This automatically starts session tracking and records the initial page view event.
2.2 Default Page View Tracking
The default pageView event records key information about the page the shopper is visiting, including device details, referrer, and session context.
This event is sent automatically after initialization, but you can also trigger it manually if needed.
Tip:
Always trigger a
pageViewbefore any other event such as PDP, PLP, or order tracking to ensure proper session linking.
2.2.1 Example Request Body
{
"schema": "iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",
"data": [
{
"e": "pp",
"url": "https://www.example.com/p/high-neck-print-maxi-dress",
"page": "High Neck Print Maxi Dress | Example Store",
"refr": "https://www.example.com/",
"eid": "e2cdb374-8a97-4d66-b63f-9dd3ba65b9bf",
"tv": "js-3.8.0",
"tna": "dressipi",
"aid": "0699d521-eebd-43a9-8543-9d3a704ab427",
"p": "web",
"cookie": "1",
"cs": "UTF-8",
"lang": "en-US",
"res": "1920x1243",
"cd": "30",
"dtm": "1749733951080",
"vp": "904x1079",
"ds": "889x4039",
"vid": "1",
"sid": "c5248318-f25e-41f1-8635-cefa79a9f1e9",
"duid": "0355592c-a158-4378-afc9-556e1d4d34a1",
"stm": "1749733951081"
}
]
}2.2.2 Parameter Meanings
Key | Description |
|---|---|
| Event type – |
| Full URL of the page being viewed. |
| Page title (the content of the |
| Referrer URL – the page the visitor came from. |
| Event ID – unique identifier for this event. |
| Tracker version |
| Tracker namespace |
| Application ID – the customer-specific ID used in configuration. |
| Platform – |
| Indicates whether cookies are enabled ( |
| Character set of the page (e.g., |
| Browser language setting (e.g., |
| Screen resolution in pixels (e.g., |
| Color depth (bits per pixel, e.g., |
| Device timestamp (milliseconds since epoch). |
| Base64-encoded JSON containing additional context (e.g., page or user data). |
| Viewport dimensions (visible browser area). |
| Document size (total scrollable area). |
| Visit count – increments on each session. |
| Session ID – identifies the current visit. |
| Domain user ID – persistent ID for the same browser. |
| Timestamp when the event was sent. |
3 Available Tracking Methods
The following table lists all standard Dressipi.js tracking methods. Each method can be triggered using:
Dressipi('track', '<method>', { ...parameters });Method | Description | Smart Pixel Equivalent |
|---|---|---|
init | Initializes configuration settings |
|
pageView | Captures page information |
|
addToBasket | Logs when a product is added to the cart |
|
removeFromBasket | Logs when a product is removed from the cart |
|
identify | Identifies the customer via email or customer ID |
|
plp | Tracks product list page (PLP) interactions |
|
pdp / itemView | Tracks product detail page (PDP) interactions |
|
order | Confirms order completion |
|
itemClickPDP | Logs product clicks on the PDP |
|
itemClickQuickView | Logs product clicks within sets or quick views |
|
carouselNavigate | Tracks carousel gallery navigation (next/previous slide) |
|
carouselPaginate | Tracks carousel pagination (current page change) |
|
tabClick | Tracks tab clicks |
|
3.1 Session and Visit Information
Dressipi.js automatically tracks:
Session ID (sid): Resets each visit.
Domain User ID (duid): Persistent per browser.
Visit Count (vid): Increments automatically with each return visit.
Device and browser information: Screen resolution, viewport size, language, and color depth.
Referrer URL: Captured on every page view.
No manual setup is required — these values are included automatically with each tracked event.
4 Best Practices
Always trigger a
pageViewbefore any product or basket events.Use
identifywhen the user logs in or completes an order to link activity across sessions.Verify that your configuration (
namespace_idandhost) matches your integration setup.Keep event triggers simple. Dressipi.js handles the structure and submission automatically.