🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Clockify Premium Add-on Setup Guide

Updated 6 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Get your Clockify API key
  4. The settings page
  5. Add a feed to a form
  6. Start, end and billable
  7. Projects, tasks and tags
  8. Conditions
  9. What your visitors see
  10. On the entry
  11. Retries are safe
  12. Privacy and security
  13. Troubleshooting

Video walkthrough

Gravity Forms Clockify Add-On Setup Guide: Time Entries from Forms (WordPress Side)
Video setup guide: Gravity Forms Clockify Watch on YouTube

The Gravity Forms Clockify Premium Add-on turns every form submission into a record in Clockify: it can create a time entry from the description, start and end time, billable flag, project, task and tags you map from your form fields, or create a client or a project in your workspace instead. The created Clockify id is kept with the entry so you can show it in notifications and follow it back to Clockify. This guide walks through connecting your Clockify account, picking your workspace, adding a feed to a form, and understanding exactly what the add-on sends and stores.

What you need

You need Gravity Forms 2.9 or newer, a WordPress site running PHP 7.4 or newer, and a Clockify account. The Clockify REST API is available on the free plan, so you can generate an API key and create time entries, clients and projects without paying — some fields, such as marking an entry billable or writing custom fields, need a paid Clockify plan. The add-on only ever contacts the Clockify REST API at api.clockify.me; it never talks to any other service.

Get your Clockify API key

In Clockify, click your profile at the bottom left and open your profile settings, then open Preferences, then the Advanced tab, and under Manage API keys generate an API key. This key belongs to your account, so treat it like a password. You paste it into the add-on settings once, and from then on it is stored encrypted on your own site.

The settings page

In WordPress go to Forms → Settings → Clockify, activate your GravityExtra license key, then paste your Clockify API key into the key field and save. The field is a password field, the key is encrypted before it reaches the database, and it is never shown again in clear. Next click Load workspaces: the add-on asks Clockify which workspaces your key can see and lists them, and you click Use next to the one you want to fill the workspace field. Use the Test connection button to confirm the key works: it asks Clockify for your account and reports success, without creating anything.

The Clockify settings page in Gravity Forms: license key, Clockify API key, a Load workspaces picker and a Test connection button
The settings page: your Clockify API key, a workspace picker and a Test connection button.

If your site cannot encrypt secrets (the PHP openssl extension is missing), the add-on tells you, and you can instead define the key with the GFCLK_API_KEY constant in wp-config.php. When that constant is set, the key field is replaced with a short note and nothing is stored in the database. You can also fix the workspace with the GFCLK_WORKSPACE constant.

Add a feed to a form

Open a form, go to Settings → Clockify, and add a feed. The first choice is what to create: a time entry, a client, or a project. Give the feed a name so you can recognise it later. A single form can have several feeds — for example one that creates a client and one that creates a project — and each runs when its condition is met.

The Clockify feed in Gravity Forms: create a time entry, client or project, with the description, start time and billable flag mapped
A feed chooses what to create and maps the fields from the submission.

For a time entry, map the Description from the submission — it is required — and optionally the Start time, End time, Billable flag, Project id, Task id and Tag ids. Every field accepts merge tags, so you can pull the description straight from a text field, for example {Description:3}, and the start time from a date field. For a client, map the Client name (and an optional note). For a project, map the Project name (and an optional client id and colour).

Start, end and billable

Clockify records a time entry with a start instant. If you map a Start time — a date, a date and time, or an ISO-8601 value — the add-on converts it to a proper UTC instant for Clockify. If you leave the start empty, the add-on uses the moment of submission, so an entry always has a valid start. Map an End time to record a finished entry, or leave it empty for a running one. The Billable field reads a yes/no value: map a field whose value is yes, 1, true or billable to mark the entry billable (billable entries need a paid Clockify plan).

Projects, tasks and tags

You can point a time entry at an existing project and task by mapping their Clockify ids, and attach one or more tags by mapping their tag ids separated by commas. These are optional: an entry without them is created against the workspace with no project. Because the ids come from your Clockify workspace, a hidden field or a calculated value is often the cleanest way to supply them; a visible drop-down whose values are the Clockify ids works too.

Conditions

A conditional-logic rule at the bottom of the feed lets you create in Clockify only when a rule is met, for example only when a request is marked billable, so one form can serve several cases through separate feeds. You can run several feeds on one form — for instance a feed that creates a client and a feed that creates a project when a new engagement is signed up.

What your visitors see

Nothing changes for the person filling in the form. They submit as usual and see your normal confirmation. The Clockify record is created quietly in the background, and if the Clockify call ever fails the submission is still saved, so you never lose a request.

A front-end Gravity Form whose submission creates a time entry in Clockify
A normal form: the visitor never sees anything about Clockify.

On the entry

Every entry records a note saying what happened, and keeps the id of the time entry, client or project that was created. Three merge tags, {clockify_entry}, {clockify_client} and {clockify_project}, are available in your Gravity Forms notifications so you can send the created id to the customer and to your team. The add-on also fires time-entry-created, client-created, project-created and failed events you can attach notifications to.

A Gravity Forms entry screen showing the Clockify note with the created time entry id
The entry note records what was created in Clockify for your records.

Retries are safe

The add-on creates each entry once and never files it twice. If you resend a feed, or Gravity Forms retries it, a “done” marker on the entry means nothing is created a second time, and a short per-entry lock stops two simultaneous runs from both creating the same record. If a call fails, you can safely resend once the problem is fixed and it will create the record exactly once.

Privacy and security

Your Clockify API key is encrypted at rest with AES-256-GCM and is never shown again, never written to an entry, and never written to a log. The key travels only in the X-Api-Key header of the request, never in the URL or the request body. The add-on fixes the host to api.clockify.me over https with certificate verification on, and never follows a redirect, so the key cannot be sent anywhere else. Error messages have the key stripped out before they are shown or stored.

Troubleshooting

If Test connection fails, re-copy the key from Clockify and confirm it has not been revoked. If a submission leaves an error note, the note includes the HTTP status from Clockify (for example a 401 for an invalid key, a 403 when the key cannot do that in the workspace, a 404 when the workspace id is wrong, or a 429 if you are rate limited). Fix the cause, then resend the feed from the entry. If you use the constants, remember that GFCLK_API_KEY overrides the stored key and GFCLK_WORKSPACE overrides the saved workspace.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr