Hi there,
I’m currently facing an issue while integrating Mixpanel into my Forge app to track user events. The goal is to monitor feature usage within the app.
I’ve followed the documentation here:
https://developer.atlassian.com/platform/forge/add-content-security-and-egress-controls/
Everything works as expected when I run the app locally using forge tunnel
— events are successfully sent to Mixpanel. However, when I deploy the app to the Forge-hosted environments (Develop and Staging), the events are no longer sent to Mixpanel.
I’ve tried:
- Sending events from the backend
- Sending events from the frontend
- Sending events via REST API (fetch from @forge/api)
Unfortunately, none of these methods worked in the hosted environments.
Here is my manifest.yml
configuration and a sample of how I’m calling Mixpanel:
If anyone has experienced something similar or has suggestions, I’d really appreciate your help. Thank you in advance!
Hi @NghiaNguyen , Forge tunnel serves your app via localhost. Can you check if Mixpanel requires additional configuration settings for analytics to be sent from a non-localhost domains? Otherwise are you seeing any errors in the browser console, network tab or from forge logs
when attempting to send analytics from your development or staging environment?
@QuocLieu Thank you, but no further configuration is needed from Mixpanel, we just need to get project token from Mixpanel, and use in our application.
We’ve integrated Mixpanel with some of our applications without any issues. However, for the Connect app and the Forge app (which is migrating from Connect), they don’t need to be configured with Egress Permissions like Forge.
In this app, when we run it in the Dev or Staging environment, there are no logs in the browser console when accessing screens where we track Mixpanel events
How about the networks tab in Chrome? Are you seeing any blocked requests?