Example Usage of

Remove event tracking event (name only)

Description: Remove an event from the system. This will only remove the event name. Any contacts that have a value associated for this event already may still retain that association. Make sure to enable event tracking before making this call.
Endpoint: https://{ACCOUNT}.api-us1.com/api/2/track/event
Supported output formats: json
Requires authentication: Yes
* indicates requirement. Underlined params include in URL, otherwise as part of the post body. POST data must be formatted as
Content-Type: application/x-www-form-urlencoded
. We don't accept any other input formats like JSON.
Variable Description
api_key*Your API key
event*The event you want to remove. Example: 'my_custom_event'
Example response:
Variable Description
eventThe event you removed. Example: 'my_custom_event'
successWhether or not the request was successful. Example: 1 (successful) or 0 (not successful)
messageThe response message. Example: "Event deleted"

PHP Example

This is an example of using the track_event_delete call with PHP. You can replicate the same idea in virtually any other programming language. This example requires our PHP API wrapper. Make sure to update the path to the wrapper files in the example code below (if it is not the same).


// Set up an object instance using our PHP API wrapper.
define("ACTIVECAMPAIGN_URL", "https://{ACCOUNT}.api-us1.com");

$delete_data = array("event" => "my_custom_event");
$response = $ac->api("tracking/event/remove", $delete_data);

echo "<pre>";
echo "</pre>";


Questions? Discuss this API call in our developer forum

You can install activecampaign-api-php by downloading (.zip) or cloning the source:

git clone git@github.com:ActiveCampaign/activecampaign-api-php.git