Your Heap account is structured into a series of projects and environments. Projects in Heap can be thought of as blank slates and are completely independent of another. Environments are subsets of projects that share definitions (defined events, segments, and reports), but do not share any data.
Projects are intended to be used for distinct datasets, whereas environments are to be used to separate production data from testing data in a given project. When you sign up for Heap, we’ll automatically create one
Main project with two environments:
When to Create New Projects and Environments
In most cases, the single project and two environments that come with Heap by default will be sufficient for all of your analysis needs. Depending on the variety of products or services you offer, and the variety of different users you support, you may be best served by a setup with additional environments and/or projects.
Single Project & Environment (default)
To analyze user behavior across multiple installations or products, you’ll want to put everything into a single project and (your Production) environment. Use cases for this include:
- You want to track visitor > customer conversion, so you’ll send in all of your marketing site data and in-app data to the same project and environment.
- You have multiple products with overlapping user bases, and you’d like to understand the complete journey of a single user across your entire suite of products, so you send in data from multiple products to the same project and environment. Note that you will need a common identifier for users you want to track cross-domain within the same environment.
- You have an iOS app, Android app, and web app for a single product and want to understand how a single user behaves across each of these apps.
Single Project, Multiple Environments
To keep analysis results separate but share related data points across the environment, you’ll want to set up a single project with multiple environments. Use cases for this include:
- To separate production, development, and staging data. (This is the primary use case for this setup).
- When you have global sites for different countries and want to keep data from each region separate for analysis purposes, but share definitions, reports, and segments across them. The trade-off is that you won’t be able to do global reporting in Heap, though you can use Heap Connect to do this downstream.
Multiple Projects, Multiple Environments
If you have products or systems that are completely unrelated to each other, you will want to set up multiple projects and environments to keep your datasets entirely separate. Use cases for this include:
- You have internal and external tools, and you’d like to track engagement with both as completely separate datasets.
- You have a set of brands or products not related to each other, such as owning multiple, unrelated businesses.
Creating New Environments
Environments are attached to a specific project, and a new environment created with an existing project will carry over existing definitions, as well as reports, from the other environments, though it will contain no data.
To create a new environment, navigate to the Account > Manage > Projects page.
Click into the project you want the environment categorized under, then click the ‘Add Environment’ button that appears on the Project details pane.
To quickly look at reports and data on a different environment, you can change your environment by clicking on the dropdown in the top left of the dashboard.
Development environment is generally sufficient for most customers. In this setup, we recommend sending all production data from your live application to your
Production environment and any testing data to your
Development environment. If you happen to have a complex staged deployment process, we recommend creating environments that align with each stage in the process:
As it relates to integration work, the only changes you need to make across environments in your codebase is the environment ID that is used in the Heap installation snippet and any server-side API calls.
Creating New Projects
To create a new project, navigate to the Account > Manage > Projects page.
Click the + Add Project button at the top. Add a name for your project, then click the Create Project button.
To delete an environment, navigate to Account > Manage > Projects, then click the pencil icon next to the Environment you wish to delete.
In the pop-up that appears, click the ‘Delete’ button, then follow the on-screen instructions. This deletes all the data associated with this environment, so proceed with caution!
To delete a Project, navigate to Account > Manage > Projects, click the trash can icon next to the project you wish to delete, then follow the on-screen instructions.
This deletes the project and all the data contained in its environments, so proceed with caution!
Anyone in your Heap account can star environments, including team members in a Read-Only role.
Use stars to favorite the Environments that you work in often and quickly jump between them. Any environments that you star will be added to your Starred Environment View in the Environment Selector.
To star an environment, click the projects drop-down in the top left, then click the star icon next to an environment.
To remove a star, click the star icon again.
Viewing Your Starred Environments
By default, when you have at least one starred environment, you will only see your starred environments in the Environment Selector. If you want to see all of your environments, click the Show All Projects button at the bottom of the Environment Selector.