Create a data source

This article describes how to create a data source.

Adding a web, mobile, server-side, or webhook data source requires three steps: select a platform, choose the events you want to track (event specifications), and get the code for your installation.

To add a data source for offline data, see file import data source.

Use the following steps to add a data source:

  1. In the sidebar, select Sources > Data Sources.
  2. Click + Add Data Source.
  3. From the Select a Platform screen, select a language or platform for your installation. To filter selections by category, click a category in the left panel.
  4. In the Name field under Summary, enter a name and click Continue. This is a required field.
  5. Click Continue. The dialog advances to the Choose Event Specifications step.
    You can optionally click Skip to skip this step, otherwise continue with the following steps.
  6. To continue, select one or more event specifications.
    To filter event specification types, click a category in the left panel.
    Choose Event Specifications

Clicking Select All in filtered categories selects only the specifications that display. Clicking Deselect All in filtered categories deselects the specifications in all categories.

  1. Click Continue.
    The dialog advances to the Get Code step and displays the data source key and installation code or instructions.
    Get Code
  2. Optional. To download installation instructions, including the data source key, base code, and event tracking code, click Download as PDF.
  3. Click Save & Continue.
    A summary of the data source appears.
  4. Click Close.
    The new data source displays with a summary of actionable items.
    To expand or collapse the details of a data source, click the data source name.

From the detailed data source view you can perform the following actions:

  • View and copy the data source key
  • View installation instructions
  • Return to the Get Code page
  • Open the Get Code pop-up/dialogue
  • Edit the data source settings
  • Duplicate the event source
  • Delete the data source
  • Add or remove event specifications
  • View event specification details
  • View live events related to an event specification

Was this page helpful?

This page was last updated: January 7, 2023