diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b93db20410..41edabc673b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## Added + +- Moved `getPixallVisitorId()` to API.utils + +## [v2024-07-12T18.29.35] - 2024-07-12 + ## [v2024-07-11T19.56.25] - 2024-07-11 ## Added @@ -172,7 +178,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Tagging and uploading the releases. - Updating the changelog after a release -[Unreleased]: https://github.com/DealerDotCom/web-integration-api-docs/compare/v2024-07-11T19.56.25...HEAD +[Unreleased]: https://github.com/DealerDotCom/web-integration-api-docs/compare/v2024-07-12T18.29.35...HEAD + +[v2024-07-12T18.29.35]: https://github.com/DealerDotCom/web-integration-api-docs/compare/v2024-07-11T19.56.25...v2024-07-12T18.29.35 [v2024-07-11T19.56.25]: https://github.com/DealerDotCom/web-integration-api-docs/compare/v2023-11-15T00.44.26...v2024-07-11T19.56.25 diff --git a/source/includes/_methods.md b/source/includes/_methods.md index 6a2f18096ed..9ebe75513f0 100644 --- a/source/includes/_methods.md +++ b/source/includes/_methods.md @@ -575,16 +575,3 @@ The loadJS method is a simple way to include additional JavaScript files require ``` > Note that the `attributeMap` parameter is optional and may be ommitted in most cases. - -## API.getPixallVisitorId() - -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. - -> Usage - -```javascript -(async APILoader => { - const API = await APILoader.create(); - const pxa_id = await API.getPixallVisitorId(); -})(window.DDC.APILoader); -``` diff --git a/source/includes/_utilities.md b/source/includes/_utilities.md index 1faf92b2a8a..f19ac8690f9 100644 --- a/source/includes/_utilities.md +++ b/source/includes/_utilities.md @@ -235,3 +235,19 @@ The method must be called on each page where you want the vehicles to be unlocke }); })(window.DDC.APILoader); ``` + +## API.utils.getPixallVisitorId() + +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. + +> **Usage:** + +```javascript +(async APILoader => { + const API = await APILoader.create(); + API.utils.getPixallVisitorId().then(pixallId => { + // Outputs PixallVisitorId value + API.log(pixallId); + }); +})(window.DDC.APILoader); +``` \ No newline at end of file