Goals

GET https://trk.condoo.systems/api/goals/
curl --request GET \
--url 'https://trk.condoo.systems/api/goals/' \
--header 'Authorization: Bearer {api_key}' \
Parameter Details Beschreibung
website_id Optional (Optional) Ganzzahl
type Optional (Optional) Zeichenkette Erlaubte Werte: pageview, custom, scroll, scroll_element, click_element, webhook
search Optional (Optional) Zeichenkette Die Suchanfrage.
search_by Optional (Optional) Zeichenkette Nach welchem Feld suchst du? Erlaubte Werte sind: name, path, key.
datetime_field Optional (Optional) Zeichenkette Erlaubte Werte: datetime, last_datetime
datetime_start Optional (Optional) Zeichenkette Filter results starting from this datetime. Y-m-d H:i:s format.
datetime_end Optional (Optional) Zeichenkette Filter results up to this datetime. Y-m-d H:i:s format.
order_by Optional (Optional) Zeichenkette Nach welchem Feld sollen die Ergebnisse sortiert werden? Erlaubte Werte sind: goal_id, last_datetime, datetime, name, path, key, scroll_percentage.
order_type Optional (Optional) Zeichenkette Die Reihenfolge der Ergebnisse. Erlaubte Werte sind: ASC für aufsteigende Reihenfolge und DESC für absteigende Reihenfolge.
page Optional (Optional) Ganzzahl Die Seitenzahl, von der du die Ergebnisse möchtest. Standardmäßig ist sie 1.
results_per_page Optional (Optional) Ganzzahl Wie viele Ergebnisse möchtest du pro Seite? Erlaubte Werte sind: 10, 25, 50, 100, 250, 500, 1000. Standardmäßig ist es 25.
{
    "data": [
        {
            "id": 1,
            "website_id": 1,
            "user_id": 1,
            "key": "123456789",
            "type": "custom",
            "path": null,
            "scroll_percentage": null,
            "scroll_selector": null,
            "click_selector": null,
            "value": null,
            "webhook_url": null,
            "name": "Example",
            "last_datetime": null,
            "datetime": "2026-11-05 13:40:07"
        }
    ],
    "meta": {
        "page": 1,
        "total_pages": 1,
        "results_per_page": 25,
        "total_results": 1
    },
    "links": {
        "first": "https://trk.condoo.systems/api/goals?page=1",
        "last": "https://trk.condoo.systems/api/goals?page=1",
        "next": null,
        "prev": null,
        "self": "https://trk.condoo.systems/api/goals?page=1"
    }
}
GET https://trk.condoo.systems/api/goals/{goal_id}
curl --request GET \
--url 'https://trk.condoo.systems/api/goals/{goal_id}' \
--header 'Authorization: Bearer {api_key}' \
{
    "data": {
        "id": 1,
        "website_id": 1,
        "user_id": 1,
        "key": "123456789",
        "type": "custom",
        "path": null,
        "scroll_percentage": null,
        "scroll_selector": null,
        "click_selector": null,
        "value": null,
        "webhook_url": null,
        "name": "Example",
        "last_datetime": null,
        "datetime": "2026-11-05 13:40:07"
    }
}
POST https://trk.condoo.systems/api/goals
Parameter Details Beschreibung
website_id Erforderlich Ganzzahl -
type Erforderlich Zeichenkette Erlaubte Werte: pageview, custom, scroll, scroll_element, click_element, webhook
name Erforderlich Zeichenkette -
path Optional (Optional) Zeichenkette Verfügbar, wenn: type = pageview, scroll, scroll_element, click_element
scroll_percentage Optional (Optional) Ganzzahl Verfügbar, wenn: type = scroll
scroll_selector Erforderlich Zeichenkette Verfügbar, wenn: type = scroll_element. The goal converts when the first matching element enters the viewport, including when already in view on page load. Enter a valid CSS selector with up to 1024 characters.
click_selector Erforderlich Zeichenkette Verfügbar, wenn: type = click_element. The goal converts when a visitor clicks any matching element, including an icon or text inside it. Enter a valid CSS selector with up to 1024 characters.
value Optional (Optional) Float Optional amount saved with each new conversion. Leave empty to track conversions without a value. Use the same unit or currency across this website. Enter a nonnegative value below 10000000000000 with up to 2 decimal places.
key Optional (Optional) Zeichenkette -
curl --request POST \
--url 'https://trk.condoo.systems/api/goals' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'website_id=1' \
--form 'name=Example' \
--form 'type=click_element' \
--form 'path=blog/*' \
--form 'click_selector=.buy-button' \
{
    "data": {
        "id": 1,
        "website_id": 1,
        "user_id": 1,
        "key": "123456789",
        "type": "click_element",
        "path": "/blog/*",
        "scroll_percentage": null,
        "scroll_selector": null,
        "click_selector": ".buy-button",
        "value": null,
        "webhook_url": null,
        "name": "Example",
        "last_datetime": null,
        "datetime": "2026-11-05 13:40:07"
    }
}
POST https://trk.condoo.systems/api/goals/{goal_id}
Parameter Details Beschreibung
website_id Optional (Optional) Ganzzahl -
type Optional (Optional) Zeichenkette Erlaubte Werte: pageview, custom, scroll, scroll_element, click_element, webhook
name Optional (Optional) Zeichenkette -
path Optional (Optional) Zeichenkette Verfügbar, wenn: type = pageview, scroll, scroll_element, click_element
scroll_percentage Optional (Optional) Ganzzahl Verfügbar, wenn: type = scroll
scroll_selector Optional (Optional) Zeichenkette Verfügbar, wenn: type = scroll_element. The goal converts when the first matching element enters the viewport, including when already in view on page load. Enter a valid CSS selector with up to 1024 characters.
click_selector Optional (Optional) Zeichenkette Verfügbar, wenn: type = click_element. The goal converts when a visitor clicks any matching element, including an icon or text inside it. Enter a valid CSS selector with up to 1024 characters.
value Optional (Optional) Float Optional amount saved with each new conversion. Leave empty to track conversions without a value. Use the same unit or currency across this website. Enter a nonnegative value below 10000000000000 with up to 2 decimal places.
key Optional (Optional) Zeichenkette -
curl --request POST \
--url 'https://trk.condoo.systems/api/goals/{goal_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'type=scroll' \
--form 'path=blog/*' \
--form 'scroll_percentage=75' \
{
    "data": {
        "id": 1,
        "website_id": 1,
        "user_id": 1,
        "key": "123456789",
        "type": "scroll",
        "path": "/blog/*",
        "scroll_percentage": 75,
        "scroll_selector": null,
        "click_selector": null,
        "value": null,
        "webhook_url": null,
        "name": "Example",
        "last_datetime": "2026-11-05 13:40:07",
        "datetime": "2026-11-05 13:40:07"
    }
}

Send a POST request to the private webhook URL shown when editing your goal. JSON and form data are supported. An empty POST also records a conversion.

Webhook goals return a private webhook_url in the response. Use this URL to submit conversions without an API key.

Submit a value to record an actual amount, or omit it to use the configured conversion value. Only the conversion time and value are stored. Each accepted POST counts separately, including repeated requests. Webhook conversions are not linked to visitors, sessions, or page events.

POST https://trk.condoo.systems/pixel-webhook/{webhook_key}
curl --request POST \
--url 'https://trk.condoo.systems/pixel-webhook/{webhook_key}' \
--header 'Content-Type: application/json' \
--data '{"value":49.90}'
{"message":"","status":"success","details":[]}
DELETE https://trk.condoo.systems/api/goals/{goal_id}
curl --request DELETE \
--url 'https://trk.condoo.systems/api/goals/{goal_id}' \
--header 'Authorization: Bearer {api_key}' \