-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new activities to Einstein API (#714)
* Add new endpoints to Einstein API * Update pages to send viewPage activity * Update checkout to send beginCheckout activity * Update PDP to send viewSearch and viewCategory activities * Address duplicate activity calls * Update PLP to send clickSearch and clickCategory activities * Include realm. Also include path location on viewPage * Begin fixing tests * Move useEffect to before the redirect to fix an error. * Mock Einstein in product listing test * Fix lint * Add tests for new activities * Add a guard for setting realm and remove correlationId for now. * Simplify activity logic in PLP * Fix tests * Fix lint * Remove pathname from home page viewPage * Re-add pathname to home page. * Refactor: use constants to represent checkout steps * Add checkoutStep activity to Einstein API Co-authored-by: Ben Chypak <[email protected]>
- Loading branch information
1 parent
fb7f4c0
commit c5db22c
Showing
23 changed files
with
966 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.