> ## Documentation Index
> Fetch the complete documentation index at: https://help.airbridge.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 데이터 패칭 - 웹

에어브릿지 이벤트 구성에 필요한 데이터를 웹에서 수집합니다.

## 데이터 패칭하기

아래 내용을 참고해 주세요.

### Cookie ID

Airbridge의 브라우저 쿠키 식별자 입니다. (예시: 2bd08152-0fce-4d5e-8449-f4783b49a2c8)

<CodeGroup>
  ```javascript JavaScript lines theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  airbridge.fetchResource(function(resource) {
      console.log(resource.browser.clientID)
  })
  ```
</CodeGroup>

### User Agent

브라우저의 User Agent 입니다. (예시: Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_15\_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36)

<CodeGroup>
  ```javascript JavaScript lines theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  airbridge.fetchResource(function(resource) {
      console.log(resource.browser.userAgent)
  })
  ```
</CodeGroup>

### Attribution

Airbridge 기여결과입니다. 식별자 형태이거나, 채널 및 캠페인 파라미터 형태입니다.

<CodeGroup>
  ```javascript JavaScript lines theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  airbridge.fetchResource(function(resource) {
      // Identifier
      console.log(resource.attributionData.shortID)
      // Channel & Campaign Parameter
      console.log(res.attributionData.trackingData.channel)
      console.log(res.attributionData.trackingData.params)
  })
  ```
</CodeGroup>

### Event Timestamp

현재시간(Milliseconds) 입니다. (예시: 1580887691831)

<CodeGroup>
  ```javascript JavaScript lines theme={"theme":{"light":"github-dark-dimmed","dark":"github-dark-dimmed"}}
  Date.now()
  ```
</CodeGroup>

<link rel="alternate" hrefLang="en" href="https://help.airbridge.io/en/developers/fetching-guide-for-web-sdk" />

<link rel="alternate" hrefLang="ko" href="https://help.airbridge.io/ko/developers/fetching-guide-for-web-sdk" />
