All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Removed API Secret (Project Secret) authentication support
- Project Secret authentication has been deprecated and will be fully retired by Mixpanel on March 3, 2027
- All users must migrate to Service Account authentication
- The
api_secretparameter has been renamed toservice_account_password - The following parameters are now REQUIRED:
service_account_username- Your Service Account usernameservice_account_password- Your Service Account password/secretproject_id- Your Mixpanel project ID
- Attempting to initialize without these required parameters will raise a
ValueError
Old initialization (no longer supported):
mputils = MixpanelUtils('project_api_secret', token='token')New initialization (required):
mputils = MixpanelUtils(
service_account_username='my-user.12345.mp-service-account',
service_account_password='service_account_password_here',
project_id=project_id_here,
token='project_token_here'
)To create a Service Account, visit your Mixpanel project settings or refer to the Service Accounts documentation.
- Parameter order changed to prioritize Service Account credentials:
service_account_username(required)service_account_password(required, formerlyapi_secret)project_id(required)token(optional, required for imports)- Other optional parameters...
- Invalid or missing required parameters now raise
ValueErrorinstead of triggering assertions. - Added pytest test suite for
MixpanelUtils.__init__Service Account authentication requirements, including rejection of legacy API Secret-only usage. - Added pytest test suite for URL construction across all supported API endpoints and regions.
- Corrected the README example script link to point to
tools/mixpanel_utils_example.py.
- Support for Project Secret (API Secret) authentication
- Conditional logic for Service Account vs API Secret authentication
- Including group analytic operations
- Add support for India Residency
- Various bug fixes and improvements