get:
  tags:
    - Tracking
  summary: Render JS tracking code
  description: Creates a JavaScript code that reads the current affiliate, campaign key and tracking key on a landing page and stores them e.g. in hidden inputs.
  operationId: renderJsTrackingCode
  parameters:
    - name: affiliate_input
      in: query
      description: The name of the HTML form input field to be updated with the affiliate name
      schema:
        type: string
    - name: campaignkey_input
      in: query
      description: The name of the HTML form input field to be updated with the campaign key
      schema:
        type: string
    - name: trackingkey_input
      in: query
      description: The name of the HTML form input field to be updated with the tracking key
      schema:
        type: string
    - name: callback
      in: query
      description: The name of a JavaScript function that is called up with the transferred data
      schema:
        type: string
  responses:
    '200':
      description: Successful response
      content:
        application/json:
          schema:
            type: object
            properties:
              api_version:
                type: string
              current_time:
                type: string
                format: date-time
              runtime_seconds:
                type: number
              result:
                type: string
              data:
                type: object
                properties:
                  script_code:
                    type: string
                    description: The complete JavaScript tag to be embedded
                  script_url:
                    type: string
                    description: The script URL
  security:
    - api_key: []
