Example Usage of

Site tracking status

Description: Enable or disable site tracking.
Endpoint: https://{ACCOUNT}
HTTP method: POST
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
status*The status that you want set. Example: 'enable' or 'disable'
Example response:
Variable Description
statusThe status that you set. Example: 'enable' or 'disable'
successWhether or not the request was successful. Example: 1 (successful) or 0 (not successful)
messageThe response message. Example: "Status changed"

PHP Example

This is an example of using the track_site_status_edit 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}");

// pass "enable" or "disable"
$post_data = array("status" => "enable");
$response = $ac->api("tracking/site/status", $post_data);

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


Questions? Discuss this API call in our developer forum