PostHog Handbook Library / Marketing

451 words. Estimated reading time: 3 min.

# Dashboard templates

Dashboard templates simultaneously showcase the use cases of PostHog and make it easier for users to get started. You can find a full list of them on the templates page.

This is "internal" documentation to show PostHog staff how to add new global templates.

Let us know on this GitHub issue if you'd like to see templates that are private for your team.

### Creating a new dashboard template

1. Create your dashboard with all the insights you want on it. Be sure to add descriptions to both.

1. Open the dashboard dropdown, click "Save as template."

1. Add variables as objects with the format below. Reference them in your template by adding the ID in curly brackets, like `{SIGNUPS}`, to replace the placeholder event.

    "variables": [
      {
        "id": "SIGNUPS",
        "name": "Signups",
        "type": "event",
        "default": {},
        "required": true,
        "description": "The event you use to define a user signing up"
      }
    ],

1. Once done, click "Create new template." Test that it works in the team project.

1. Create a dashboard image in Figma in the Hoggies file. Make the size of image small (like 396x208). Export and upload to Cloudinary.

1. With the URL, go to templates tab under dashboards, click the three dots to the far right of your template, and click "Edit." Add the URL to the `image_url` field and press Update template.

1. For the website, copy the same hedgehog as a small square thumbnail image (400x400) with a transparent background. Export and upload to Cloudinary.

1. While you are in Figma, create a 1920x1080 feature image with a couple of the insights. Export and upload to Cloudinary.

1. In the `posthog.com/contents/templates` folder, copy another `.mdx` file from another template, and modify for your new template. Add the thumbnail and feature images you uploaded to Cloudinary.

1. Open a pull request.

1. Once merged, click the three dots on the far right again, and click "Make visible to everyone."

1. To add to EU Cloud, click the three dots to edit the template and copy the JSON. Go to the PostHog EU Cloud instance, create a new blank dashboard, click "Save as template", paste the JSON (minus `deleted`, `created_at`, `created_by`, `team_id`, and `scope`), and "Create new template." Add `image_url`, edit, and test if needed. Finally, make visible to everyone.

### Removing a dashboard template

If you ever need to remove a dashboard template, you need to:

1. Open the templates list
2. Click on the three dots to the right of the template you want to remove and then click Make visible to this team only. This is a required step before you can delete it.
3. Click on the three dots again and then click Delete Dashboard.

Be sure of what you're doing as this is a non-reversible action.

Canonical URL: https://posthog.com/handbook/marketing/templates

GitHub source: contents/handbook/marketing/templates.md

Content hash: `e6f4fb1569512736`