# Event summary of a landing page

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /{version}/api/visitor/number:
    post:
      summary: Event summary of a landing page
      deprecated: false
      description: ''
      tags:
        - Public API/Store
      parameters:
        - name: version
          in: path
          description: ''
          required: true
          example: v2-4-2
          schema:
            type: string
        - name: ApiKey
          in: header
          description: api secret key
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                datetime:
                  type: object
                  properties:
                    start:
                      type: string
                    end:
                      type: string
                  required:
                    - start
                    - end
                  x-apifox-orders:
                    - start
                    - end
                  description: >-
                    The date range of the event in ISO format, e.g. 1970-01-01
                    00:00:00, the time zone should be consistent with your store
                    settings.
                landing_page:
                  type: array
                  items:
                    type: string
                  description: >-
                    The landing page in URI format, e.g. /path. Maximum of 20
                    per call.
                event_type:
                  type: array
                  items:
                    type: string
                  description: >-
                    Conversion event after user visits landing page. Maximum of
                    5 per call. Available event types: product viewed, cart
                    viewed, product added to cart, checkout started, payment
                    info submitted, checkout completed.
              required:
                - datetime
                - landing_page
                - event_type
              x-apifox-orders:
                - datetime
                - landing_page
                - event_type
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 1:success; other:failed
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        product viewed:
                          type: integer
                          description: >-
                            The number of visitors who visited the landing page
                            and then completed the "product viewed" event, if
                            the request of "event_type" contains "product
                            viewed".
                        cart viewed:
                          type: integer
                          description: >-
                            The number of visitors who visited the landing page
                            and then completed the "cart viewed" event, if the
                            request of "event_type" contains "cart viewed".
                        product added to cart:
                          type: integer
                          description: >-
                            The number of visitors who visited the landing page
                            and then completed the "product added to cart"
                            event, if the request of "event_type" contains
                            "product added to cart".
                        checkout started:
                          type: integer
                          description: >-
                            The number of visitors who visited the landing page
                            and then completed the "checkout started" event, if
                            the request of "event_type" contains "checkout
                            started".
                        payment info submitted:
                          type: integer
                          description: >-
                            The number of visitors who visited the landing page
                            and then completed the "payment info submitted"
                            event, if the request of "event_type" contains
                            "payment info submitted".
                        checkout completed:
                          type: integer
                          description: >-
                            The number of visitors who visited the landing page
                            and then completed the "checkout completed" event,
                            if the request of "event_type" contains "checkout
                            completed".
                        landing page:
                          type: string
                          description: The landing page.
                      required:
                        - landing page
                      x-apifox-orders:
                        - landing page
                        - product viewed
                        - cart viewed
                        - product added to cart
                        - checkout started
                        - payment info submitted
                        - checkout completed
                      description: >-
                        The number of visitors who visited the landing page and
                        then completed the event.
                    nullable: true
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 1
                message: Service succeed
                data:
                  - checkout started: 1
                    landing page: /xxxx
          headers: {}
          x-apifox-name: Success
      security: []
      x-apifox-folder: Public API/Store
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7934002/apis/api-427738728-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://data-api.test.attribuly.com
    description: test
  - url: https://data.api.attribuly.com
    description: prod
security: []

```
