ActiveCampaign Site Tracking API

The Site Tracking API from ActiveCampaign — 2 operation(s) for site tracking.

Documentation

Specifications

Schemas & Data

Other Resources

OpenAPI Specification

activecampaign-site-tracking-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: ActiveCampaign SMS Broadcast Accounts Site Tracking API
  description: API for managing SMS broadcasts, lists, metrics, and AI-powered content generation in ActiveCampaign
  version: 3.0.0
  contact:
    name: ActiveCampaign Support
    url: https://www.activecampaign.com
  x-generated-from: documentation
servers:
- url: https://{yourAccountName}.api-us1.com/api/3
  description: US-based Users
  variables:
    yourAccountName:
      default: yourAccountName
security:
- ApiToken: []
tags:
- name: Site Tracking
paths:
  /siteTracking/code:
    get:
      summary: ActiveCampaign Retrieve Site Tracking Code
      description: Get site tracking code
      operationId: retrieve-site-tracking-code
      responses:
        '200':
          description: '200'
          content:
            text/plain:
              examples:
                Result:
                  value: "<script type=\"text/javascript\">\n    (function(e,t,o,n,p,r,i){e.prismGlobalObjectAlias=n;e.pgo=e.pgo||function(){(e.pgo.q=e.pgo.q||[]).push(arguments)};e.pgo.l=(new Date).getTime();r=t.createElement(\"script\");r.src=o;r.async=true;i=t.getElementsByTagName(\"script\")[0];i.parentNode.insertBefore(r,i)})(window,document,\"https://prism.app-us1.com/prism.js\",\"pgo\");\n\n    pgo('setAccount', YOUR_ACCOUNT_ID);\n    pgo('setTrackByDefault', true);\n\n    pgo('process');\n</script>"
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: '{}'
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
      - Site Tracking
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /siteTracking:
    get:
      summary: ActiveCampaign Retrieve Status
      description: Get site tracking status (enabled or disabled)
      operationId: retrieve-site-tracking-status
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value: "{\n  \"siteTracking\": {\n    \"enabled\": true\n  }\n}"
              schema:
                type: object
                properties:
                  siteTracking:
                    type: object
                    properties:
                      enabled:
                        type: boolean
                        example: true
                        default: true
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: '{}'
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
      - Site Tracking
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      summary: ActiveCampaign Enable/disable
      description: Enable or disable site tracking
      operationId: enable-disable-site-tracking
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                siteTracking:
                  properties:
                    enabled:
                      type: boolean
                      description: Whether site tracking should be enabled
                  required:
                  - enabled
                  type: object
            examples:
              Enable:
                value:
                  siteTracking:
                    enabled: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value: "{\n  \"siteTracking\": {\n    \"enabled\": true\n  }\n}"
              schema:
                type: object
                properties:
                  siteTracking:
                    type: object
                    properties:
                      enabled:
                        type: boolean
                        example: true
                        default: true
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: '{}'
              schema:
                type: object
                properties: {}
      deprecated: false
      x-readme:
        code-samples:
        - language: text
          code: "{\n  \"siteTracking\": {\n    \"enabled\": false\n  }\n}"
          name: Disable
        samples-languages:
        - text
      tags:
      - Site Tracking
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  securitySchemes:
    ApiToken:
      type: apiKey
      name: Api-Token
      in: header
      description: Your ActiveCampaign API token