# 스크립트를 설치하여 시작하기

## 분석 스크립트란 <a href="#undefined" id="undefined"></a>

***

분석을 위해 사이트 소스에 적용해야 하는 자바스크립트로 만들어진 태그입니다.

스크립트 설치 전까지는 리포트 페이지에서 분석 데이터가 표시되지 않기 때문에

회원가입을 완료하셨다면 바로 스크립트 설치를 진행해 주세요!

## 무료 설치 지원 <a href="#undefined-1" id="undefined-1"></a>

***

* 스크립트 설치가 어렵다면 에이스카운터의 전문 개발자를 통해 설치 대행 서비스를 맡겨 보세요.
* 설치는 최초 1회 무료 설치 지원 드립니다.
* 소스를 수정할 수 있는 [FTP](https://acecounter.gitbook.io/guide/setting/term/ftp) 정보 (FTP 주소, PORT, ID, PW)를 전달 주셔야 합니다.
* [**설치 대행 서비스 신청하기**](https://www.acecounter.com/stat/my/my_codeset_info.amz)(서비스 로그인 후 신청 가능)

## 스크립트 다운로드 방법 <a href="#undefined-2" id="undefined-2"></a>

***

스크립트 파일은 에이스카운터에 로그인하여 아래 절차대로 다운로드해 주세요.

**1.** [**\[서비스 관리 > 분석 스크립트\] 메뉴**](https://www.acecounter.com/stat/my/my_script.amz)**를 통해 분석 스크립트 다운로드 메뉴를 실행해 주세요**

<figure><img src="/files/hwWiyZpaWMzRQV9afAB4" alt=""><figcaption></figcaption></figure>

**2. 등록한 서비스에 대해 \[다운로드] 버튼을 클릭하여 스크립트를 다운로드해 주세요**

<figure><img src="/files/AT8Pxj2uLZOYxuM113Ny" alt=""><figcaption></figcaption></figure>

**3. 다운로드한 분석 스크립트 압축파일을 압축 해제해 주세요**

<figure><img src="/files/99doWdDOSdBHoOVb4moS" alt=""><figcaption></figcaption></figure>

압축 파일명은 일반적으로 script(사이트 도메인주소) .zip 입니다.

**4. 웹 서버(FTP)의 공통 영역 소스에 공통 스크립트/환경 변수를 설치해 주세요**

<figure><img src="/files/seD6IHqVJ9atboqNEFRp" alt=""><figcaption></figcaption></figure>

스크립트 파일 내 파일 목록

## 스크립트 삽입 위치

***

HTML 파일 내 위치한 <mark style="color:red;">**\<body>와 \</body>사이 또는 \<head>와 \</head> 사이**</mark>입니다.

<figure><img src="/files/iR5ZDAkoF7w8kl5hDbX7" alt=""><figcaption></figcaption></figure>

## <mark style="color:purple;">UTM 사용을 위해 스크립트 재설치를 진행하셨나요? (기존 고객님)</mark>

재설치를 완료 한 후 **아래 링크를 클릭하여 UTM 사용 문의를 남겨주세요.**

{% embed url="<https://acecounter.channel.io/home>" %}

## 추가 스크립트 - 환경 변수

***

직접 설치하시는 경우는 아래의 가이드를 참고해주세요.

※ 환경 변수를 세팅하는 경우, 공통 스크립트는 환경 변수보다 하단에 위치해야 하므로 Footer(하단 공통부분)에 설치하는 것을 권장합니다.

{% embed url="<https://acecounter.gitbook.io/guide/analytics/install#id-2>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://acecounter.gitbook.io/guide/utm/start/script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
