Open vn-fab opened 2 years ago
Hi @vn-fab 👋 thanks for raising this issue. There is separate Personalize team that owns the AWSPersonalizeProvider
that we use in our library. We will reach out to them about this. Labeling this as a feature request.
Any updates on this guys? Is doing a fork the only way to do this right now?
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Analytics
Amplify Categories
analytics, interactions, predictions
Environment information
Describe the bug
Recommendation id is not supported in https://github.com/aws-amplify/amplify-js/blob/main/packages/analytics/src/Providers/AmazonPersonalizeProvider.ts
PutEvents api has recommendationid and impression data in the payload.
Also PutEventsCommand has support for same.
But AmazonPersonalizeProvider does not log recommendationId
Please add support for this
Expected behavior
Should be able send recommendationid and impression to AWS personalize using AmazonPersonalizeProvider
Reproduction steps
Try sending events like
Analytics.record( { eventType: 'View', userId: userId, recommendationId: rId, properties: { itemId: currentProduct.itemId.toString(), }, }, 'AmazonPersonalize', ) }
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response