Skip to content

Commit 7e6e4a0

Browse files
committed
move new function to API.utils
1 parent 66c9af4 commit 7e6e4a0

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Updated
11+
12+
- Moved `getPixallVisitorId()` to API.utils
13+
1014
## [v2024-07-11T19.56.25] - 2024-07-11
1115

1216
## Added

source/includes/_methods.md

Lines changed: 0 additions & 13 deletions
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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,19 @@ The method must be called on each page where you want the vehicles to be unlocke
235235
});
236236
})(window.DDC.APILoader);
237237
```
238+
239+
## API.utils.getPixallVisitorId()
240+
241+
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.
242+
243+
> **Usage:**
244+
245+
```javascript
246+
(async APILoader => {
247+
const API = await APILoader.create();
248+
API.utils.getPixallVisitorId().then(pixallId => {
249+
// Outputs PixallVisitorId value
250+
API.log(pixallId);
251+
});
252+
})(window.DDC.APILoader);
253+
```

0 commit comments

Comments
 (0)