Skip to content

Commit 2df1660

Browse files
committed
Move API.getPixallVisitorId to API.utils.getPixallVisitorId
1 parent 66c9af4 commit 2df1660

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

source/includes/_methods.md

-13
Original file line numberDiff line numberDiff line change
@@ -575,16 +575,3 @@ The loadJS method is a simple way to include additional JavaScript files require
575575
```
576576

577577
> Note that the `attributeMap` parameter is optional and may be ommitted in most cases.
578-
579-
## API.getPixallVisitorId()
580-
581-
The getPixallVisitorId method returns the Pixall Id for the current website visitor. Pixall provides a unique identifier for each visitor to aggregate analytics events initiated by that shopper across marketplaces.
582-
583-
> Usage
584-
585-
```javascript
586-
(async APILoader => {
587-
const API = await APILoader.create();
588-
const pxa_id = await API.getPixallVisitorId();
589-
})(window.DDC.APILoader);
590-
```

source/includes/_utilities.md

+14
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ This fetches an object containing the array of VINs on the current page and a co
124124
})(window.DDC.APILoader);
125125
```
126126

127+
## API.utils.getPixallVisitorId()
128+
129+
The getPixallVisitorId method returns the Pixall ID for the current website visitor. Pixall provides a unique identifier for each visitor to aggregate analytics events initiated by that shopper across marketplaces.
130+
131+
> Usage
132+
133+
```javascript
134+
(async APILoader => {
135+
const API = await APILoader.create();
136+
const visitorId = await API.utils.getPixallVisitorId();
137+
// `visitorId` now equals a string value similar to this example: 'e9qAVkIRhnC64Pd4EfdwhB3Z'
138+
})(window.DDC.APILoader);
139+
```
140+
127141
This fetches the <a href="#page-event">Page Event object</a> for the current website and page.
128142

129143
## API.utils.getUnlockedVehicles()

0 commit comments

Comments
 (0)