-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Analytics Plugin not working (or available?) in v6.0.8 of aws-amplify #12725
Comments
The are lot of issues that are no more working when migrating from v5 wich I find very frustrating. |
Hello, @Alk3m1st 👋. We appreciate you opening this issue, as more people will likely run into this when upgrading to v6. Custom plugins for Analytics are not currently supported in v6. Can you provide more details as to what your custom plugin was doing to send events to API Gateway/Kinesis as a journey analytics solution to see if there's a workaround or alternative that can be implemented? |
Hi @cwomack. Happy to provide more details if you can recommend an alternative or workaround. We have a Custom Plugin that implements the We use On the API Gateway side we perform some lightweight validation before going into a Kinesis Stream and writing to an S3 bucket via Firehose. Ultimately we ingest these events into our Data Lake. We are only using the Amplify JS library, not the platform, we use CDK for our infrastructure. Hopefully there's a migration strategy we could use to get onto v6 or a straightforward alternative that allows us to keep sending the same events through to our Data Lake. |
Just checking in to see if there's been any movement or updates since I raised this issue? |
@Alk3m1st, wanted to follow up on this issue after reviewing it further with our team. With v6 functional approach, you shouldn't need to implement your own solution as an Amplify plugin and can use the With the above said, I'll close this issue out for now... but we can reopen if we revisit our support Custom Analytics Plugins again. |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Analytics
Amplify Categories
Not applicable
Environment information
Describe the bug
We have been using a Custom Analytics plugin to send events to API Gateway and then Kinesis as a journey analytics solution following guidance in the v5 documentation - https://docs.amplify.aws/javascript/prev/build-a-backend/more-features/analytics/create-custom-plugin/
This has been working well for us however when I went to upgrade to the newer v6 aws-amplify JS library so that we can benefit from the recent file size and tree shaking improvements, I've found there's no obvious equivalent or documentation around how to migrate a Custom Analytics plugin to the new version.
Expected behavior
Detailed documentation on how to migrate to the new version and where the various imports have been migrated to.
Reproduction steps
npm i aws-amplify
verify that v6 has been installed
notice that the Analytics class is not exposed and thus access to the addPluggable method
no obvious way to configure an existing Custom Analytics Plugin
Code Snippet
// Put your code below this line.
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
The text was updated successfully, but these errors were encountered: