Import from PostHog
VersaTailor allows you to seamlessly import your historical PostHog analytics data, giving you a complete view of your product's performance. This guide will walk you through the import process step by step.
Prerequisites
Before you begin, make sure you have:
- A VersaTailor account set up
- Access to your PostHog dashboard
- Your PostHog API key and Project ID
Step 1: Finding Your API Key
First, you'll need to find your PostHog API Key:
- Log in to PostHog
- Click your profile picture → Personal Settings
- Select API Keys in the sidebar
- Click + Create Personal API Key
- Name it (e.g., "VersaTailor Import")
- Copy the generated key (starts with "phx_")
Step 2: Finding Your Project ID
Next, you'll need to find your PostHog Project ID:
- Click the gear icon (⚙️) in the top navigation
- Look for Project ID at the top
- Copy the numeric ID
Step 3: Import to VersaTailor
Now, let's import your data into VersaTailor:
- Open your VersaTailor dashboard
- Go to your website settings
- Click on the "Import" tab
- Find the PostHog card and click "Import"
- Upload your PostHog data in the import modal
- Monitor the progress bar during processing
Step 4: Managing Imported Data
Need to remove imported PostHog data? Here's how:
- Go to your website settings
- Open the "Import" tab
- Scroll to "Remove Imported Data"
- Click "Remove PostHog Data"
- Confirm the removal
Security Notes
Security Note: Keep your API key secure and never share it publicly. Treat it like a password.
Important Information
Important: The import may take a few minutes depending on your data volume. You can continue using VersaTailor while it runs.
Warning
Warning: Removing imported data is a permanent action and cannot be reversed. Make sure you have a backup if needed.
What Gets Imported
- Page views: All page view data within the selected date range
- Events: Custom events and their properties
- Users: User identification and properties
- Sessions: Session data and user journeys
- Properties: Custom properties and attributes
Troubleshooting
Import Fails
If the import fails:
- Check that your API key is correct and has proper permissions
- Verify your Project ID is accurate
- Ensure you have sufficient data export permissions in PostHog
- Contact support if the issue persists
Data Not Appearing
If imported data doesn't appear:
- Wait a few minutes for processing to complete
- Check the import status in your VersaTailor dashboard
- Verify the date range of imported data
- Contact support if data is missing
Best Practices
- Test with small dataset first: Import a small date range to test the process
- Backup your data: Keep a backup of your PostHog data before importing
- Monitor the process: Watch the import progress and check for any errors
- Verify results: After import, verify that your data appears correctly
Next Steps
After successfully importing your PostHog data:
Need help? Contact us for assistance.
Suggest features? We'd love your feedback