---
title: "동의 페이지를 맞춤 코드로 만드는 방법"
description: "Klaviyo의 호스팅 페이지 기능을 활성화하고 사용하는 방법을 알아보세요. 이 기능을 사용하면 환경설정 페이지, 구독 페이지, 구독 취소 페이지를 직접 커스텀 코드로 만들 수 있어요."
canonical_url: "https://help.klaviyo.com/hc/ko-kr/articles/115005077067"
markdown_url: "https://help.klaviyo.com/hc/ko-kr/articles/115005077067.md"
locale: "ko-kr"
category: "가입 양식"
section: "동의 페이지로 시작하기"
updated: "2025-08-05"
---

# 동의 페이지를 맞춤 코드로 만드는 방법

## 학습 내용

자신만의 환경설정 페이지, 구독 페이지, 구독 취소 페이지를 커스텀 코드로 만들 수 있도록 해주는 Klaviyo의 호스팅 페이지 기능을 활성화하고 사용하는 방법을 알아보세요.

**📝 Note:** 이 문서는 개발자용이며, Klaviyo는 현재 사용자 지정 코드를 구축하는 데 도움이 되는 서비스를 제공하지 않고 사용자 지정 코드 문제 해결에 대한 지원도 제공하지 않아요. 기본 제공되는 앱 동의 페이지에 대해 알아보려면 [동의 페이지 시작하기 문서](https://help.klaviyo.com/hc/en-us/articles/115005251848.md)를 확인해 주세요.

## 시작하기 전에 알아야 할 것

**📝 Note:** 유료 이메일 기능이 있고[ 계정 인증](https://help.klaviyo.com/hc/en-us/articles/115000628331.md)을 통과한 계정만 맞춤 호스팅 페이지를 활성화할 수 있어요.

호스팅 페이지를 구성하기 전에 다음 기능을 사용 설정해 주세요:

1. **설정 > 기타**로 이동합니다.

2. **동의 페이지**를 선택해 주세요.

3. **맞춤 호스팅 페이지**에서 **맞춤 페이지 사용 설정**을 클릭하세요.



![The Custom Hosted Pages section on the Consent Pages tab in Klaviyo showing the switch to enable hosted pages.](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/ca46854c6eb24b2db423aa0a1af7fc417bd9a281-1354x1170.jpg?auto=format)

맞춤형 전용 도메인은 선택 사항이며, 호스팅 페이지를 활성화하려면 도메인을 구성할 필요가 없어요.

## 사용자 정의 동의 페이지 만들기

1. **설정 > 기타**로 이동해 주세요.

2. **호스팅 페이지**를 클릭해 주세요. 

3. *페이지* 옆에서 **+** 기호를 클릭해 새 페이지를 추가해 주세요.

4. 이 페이지에 이름을 지정합니다(예: 구독 취소.tmpl), 그런 다음 **페이지 추가**를 클릭합니다. 환경설정, 구독하다 또는 이메일 구독 취소 페이지에 사용할 수 있으며, 필요한 경우 1개가 넘는 페이지를 만들 수도 있어요.



**📝 Note:** 호스팅된 페이지 이름에는 공백을 포함할 수 없으며, 공백이 있으면 오류가 발생해요. 공백은 피하거나 밑줄(_)을 사용해 제목을 구분해 주세요.

1. 원하는 필드와 기능을 포함하는 HTML 페이지를 디자인해 주세요. 맞춤 동의 페이지에 삽입할 수 있는 필드 예시는 다음과 같아요:


   - 이메일 빈도 선택 사항:


     - 구독 취소 옵션

     - 모든 이메일을 수신하는 옵션

     - 일간, 주간, 월간 등의 뉴스레터 빈도 옵션

   - 타겟팅 및 세그먼트에 사용할 수 있는 정보:

     - 사용자가 세일 공지 수신을 원하는지 여부를 위한 체크박스

     - 사용자가 제품 공지를 원하는지 여부를 선택하는 체크박스

     - 사용자가 블로그 업데이트 수신을 원하는지 여부를 위한 체크박스

     - 사용자가 가입하고 싶어 할 수 있는 다른 리스트



**▸ 동의 페이지용 HTML 코드 예시**

구독 취소.tmpl에서 이메일 유형과 빈도 기본 설정을 수집하려면 이 예시를 사용하세요. 사용하기 전에 샘플 로고, 회사 이름, 개인정보 보호정책 링크를 본인 것으로 바꿔 주세요.

```text
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <!-- Latest compiled and minified CSS -->
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
      <style type="text/css">
        /* Space out content a bit */
        body {
            padding-top: 20px;
            padding-bottom: 20px;
        }

        form {
            margin-bottom: 18px;
        }

        /* Custom page header */
        .header {
            border-bottom: 1px solid #e5e5e5;
            margin-bottom: 10px;
        }

        .header h1 {
            margin: 10px 0;
        }

        .required-fields {
            text-align: right;
        }

        .required-fields span {
            color: #a94442;
            font-weight: bold;
        }

        .list-group-item label {
            font-weight: normal;
            margin-top: 17px;
        }

        .list-group-item label input[type="checkbox"] {
            margin-right: 4px;
        }

        .form-group span.required {
            position: absolute;
            top: 0;
            right: 0;
            font-size: 20px;
            color: #a94442;
            font-weight: bold;
            user-select: none;
        }

        label.error {
            color: #a94442;
            font-weight: bold;
            margin-top: 4px;
        }

        .form-actions {
            margin: 25px 0;
        }

        .form-control+.form-control {
            margin-top: 6px;
        }

        .panel-group .panel-title .closed-icon,
        .panel-group .panel-title .open-icon {
            margin-right: 0.5em;
            top: 2px;
        }

        .panel-group .panel-title a:hover,
        .panel-group .panel-title a:active {
            text-decoration: none;
        }

        .panel-group .panel-title a:hover .text,
        .panel-group .panel-title a:active .text {
            text-decoration: underline;
        }

        .panel-group .panel-title .closed-icon {
            display: none;
        }

        .panel-group.closed .panel-title .open-icon {
            display: none;
        }

        .panel-group.closed .panel-title .closed-icon {
            display: inline;
        }

        /* Custom page footer */
        .footer {
            padding-top: 18px;
            border-top: 1px solid #e5e5e5;
        }

        /* Customize container */
        @media (min-width: 768px) {
            .container {
                max-width: 730px;
            }
        }
    </style>
      <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
      <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
      <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
      <![endif]-->
   </head>
   <body>
      <div class="container">
         <div class="header">
            <img src="http://via.placeholder.com/300x75" />
            <h1>Email Preferences</h1>
         </div>
         <form action="" id="preferences_form" method="POST" role="form" class="form-horizontal">
            {% if form.non_field_errors %}
            <div class="alert alert-danger">
               {% for error in form.non_field_errors %}
               {{ error }}{% if not forloop.last %}<br />{% endif %}
               {% endfor %}
            </div>
            {% endif %}
            <input type="hidden" name="$fields" value="EmailInterests,EmailFrequency" />
            <input type="hidden" name="$list_fields" value="EmailInterests" />
            <!-- <input type="hidden" name="$unsubscribed_url" value="/p/preferences_updated" /> -->
            <!-- <input type="hidden" name="$updated_profile_url" value="/p/preferences_updated" /> -->
            <!--<p class="required-fields">
               <span>*</span> Required Information
               </p>-->
            <div class="form-group{% if form.errors|lookup:'$email' %} has-error{% endif %}">
               <label for="email" class="col-sm-3 control-label">Email Address<span class="required">*</span></label>
               <div class="col-sm-9">
                  <input type="email" class="form-control" id="email" name="$email" value="{% if request.POST|lookup:'$email' %}{{ request.POST|lookup:'$email' }}{% else %}{{ person.email|default:'' }}{% endif %}" />
                  {% if form.errors|lookup:'$email' %}
                  <p class="help-block">{% for error in form.errors|lookup:'$email' %}{{ error }}{% endfor %}</p>
                  {% endif %}
               </div>
            </div>
            <div class="form-group">
               <label for="first_name" class="col-sm-3 control-label">First Name</label>
               <div class="col-sm-9">
                  <input type="text" class="form-control" id="first_name" name="$first_name" value="{% if request.POST|lookup:'$email' %}{{ request.POST|lookup:'$first_name' }}{% else %}{{ person.first_name|default:'' }}{% endif %}" />
               </div>
            </div>
            <div class="form-group">
               <label for="last_name" class="col-sm-3 control-label">Last Name</label>
               <div class="col-sm-9">
                  <input type="text" class="form-control" id="last_name" name="$last_name" value="{% if request.POST|lookup:'$email' %}{{ request.POST|lookup:'$last_name' }}{% else %}{{ person.last_name|default:'' }}{% endif %}" />
               </div>
            </div>
            <div class="form-group">
               <label for="interests" class="col-sm-3 control-label">Interests</label>
               <div class="col-sm-9">
                  <div class="checkbox">
                     <label>
                     <input type="checkbox" name="EmailInterests" value="New Releases" {% if 'New Releases' in person.EmailInterests or 'New Releases' in request.POST.EmailInterests %}checked="checked"{% elif not person.EmailInterests and not request.POST.EmailInterests %}{% endif %} />
                     New Product Releases
                     </label>
                  </div>
                  <div class="checkbox">
                     <label>
                     <input type="checkbox" name="EmailInterests" value="Promotions" {% if 'Promotions' in person.EmailInterests or 'Promotions' in request.POST.EmailInterests %}checked="checked"{% elif not person.EmailInterests and not request.POST.EmailInterests %}{% endif %} />
                     Promotions & Sales
                     </label>
                  </div>
                  <div class="checkbox">
                     <label>
                     <input type="checkbox" name="EmailInterests" value="Blog" {% if 'Blog' in person.EmailInterests or 'Blog' in request.POST.EmailInterests %}checked="checked"{% elif not person.EmailInterests and not request.POST.EmailInterests %}{% endif %} />
                     Latest from the Blog
                     </label>
                  </div>
                  <div class="checkbox">
                     <label>
                     <input type="checkbox" name="EmailInterests" value="Events" {% if 'Events' in person.EmailInterests or 'Events' in request.POST.EmailInterests %}checked="checked"{% elif not person.EmailInterests and not request.POST.EmailInterests %}{% endif %} />
                     Events
                     </label>
                  </div>
               </div>
            </div>
            <div class="form-group">
               <label for="interests" class="col-sm-3 control-label">How often would you like to hear from us?</label>
               <div class="col-sm-9">
                  <div class="radio">
                     <label>
                        <!-- Default value. -->
                        <input type="radio" name="EmailFrequency" id="email_frequency_0" value="All" {% if person.EmailFrequency == 'All' or request.POST.EmailFrequency == 'All' %}checked="checked"{% elif not person.EmailFrequency and not request.POST.EmailFrequency %}checked="checked"{% endif %} />
                        Twice per Week
                     </label>
                  </div>
                  <div class="radio">
                     <label>
                     <input type="radio" name="EmailFrequency" id="email_frequency_1" value="Weekly" {% if person.EmailFrequency == 'Weekly' or request.POST.EmailFrequency == 'Weekly' %}checked="checked"{% endif %} />
                     Once per Week
                     </label>
                  </div>
                  <div class="radio">
                     <label>
                     <input type="radio" name="EmailFrequency" id="email_frequency_2" value="Monthly" {% if person.EmailFrequency == 'Monthly' or request.POST.EmailFrequency == 'Monthly' %}checked="checked"{% endif %} />
                     Once per Month
                     </label>
                  </div>
               </div>
            </div>
            <div class="checkbox">
               <label>
               <input type="checkbox" name="$unsubscribe" value="true" />
               <span class="text">Unsubscribe me.</span>
               </label>
            </div>
            <div class="clearfix form-actions">
               <div class="pull-right">
                  <button type="submit" class="btn btn-default btn-primary">Update Preferences</button>
               </div>
            </div>
         </form>
         <footer class="footer">
            <p>
               © 2017 Company Name — <a href="https://www.klaviyo.com" target="_blank">Privacy Policy</a>
            </p>
         </footer>
      </div>
      <!-- /container -->
      <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
      <!-- Latest compiled and minified JavaScript -->
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
      <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.13.1/jquery.validate.min.js"></script>
      <script>
        $(function() {
            $('#preferences_form').validate({
                rules: {
                    $email: {
                        required: true
                    }
                },
                messages: {
                    $email: 'Please enter your email address.',
                    $first_name: 'Please enter your first name.',
                    $last_name: 'Please enter your last name.'
                }
            });
            // Toggle validation based on selection.
            $('input[name="$unsubscribe"]').on('change', function() {
                $('form .form-actions button[type="submit"]').toggleClass('cancel', $(this).is(':checked'));
            });
        });
        $('input[name="$unsubscribe"]').on('change', function(){
          $('input[type=checkbox]').not(this).prop('checked', false);
        });
        $('input[type=checkbox]').not('input[name="$unsubscribe"]').on('change', function(){
          $('input[name="$unsubscribe"]').prop('checked', false);
        });
    </script>
   </body>
</html>
```

이 예시에서는 이메일 관심사와 빈도를 프로필 속성으로 저장해요. 이 속성을 사용해 캠페인과 플로우의 타겟을 지정할 수 있지만, 빈도를 선택해도 이메일이 자동으로 예약되지는 않아요. 구독 취소 옵션은 계정 및 목록 구독 취소 설정을 따릅니다.

**저장**을 클릭한 다음 **미리보기**를 클릭해, 페이지를 동의 페이지로 지정하기 전에 확인해 주세요.

### 호스팅 페이지 제출 후 리디렉션을 설정하세요(선택 사항).

기본적으로 호스팅 페이지(예: 호스팅된 기본 설정 페이지)가 성공적으로 제출되면 사용자는 다음 2곳 중 1곳으로 리디렉션돼요:

- 구독 취소를 요청한 경우, 구독 취소 확인 페이지로 이동돼요.

- 프로필을 업데이트했거나(또는 구독 취소 요청이 아닌 다른 작업을 한 경우) 사용자가 환경설정 확인(성공) 페이지로 이동돼요.



링크가 맞춤형 동의 페이지가 있는 리스트와 연결되어 있으면, Klaviyo는 해당 리스트의 성공 페이지를 사용해요. 그렇지 않으면 계정 기본값을 사용해요.

샘플 HTML에는 다음과 같은 선택적 리디렉션 입력이 포함되어 있으며, 기본 동작을 재정의하지 않도록 주석 처리되어 있어요:

```text
<!-- <input type="hidden" name="$unsubscribed_url" value="/p/preferences_updated" /> --><!-- <input type="hidden" name="$updated_profile_url" value="/p/preferences_updated" /> -->
```

리디렉션을 맞춤 설정하려면 해당 입력 필드 주변의 `<!--` 및 `-->`을(를) 제거하고, `value="..."`을(를) 사용하려는 URL로 바꾼 다음 **저장**을 클릭하세요. 구독 취소 요청에는 `$unsubscribed_url`을(를) 사용하고, 기타 성공적인 제출에는 `$updated_profile_url`을(를) 사용하세요. `/p/preferences_updated`을(를) 사용하는 경우 먼저 `preferences_updated.tmpl` 이라는 이름의 호스팅 페이지를 만들고 저장하세요.

### 호스팅된 페이지에 맞춤 애셋 추가하기(선택 사항)

호스팅된 페이지에서 자체 CSS 파일, JS 파일 또는 이미지를 사용하려면 *Assets* **옆의 +** 기호를 클릭해 업로드하고 페이지의 소스 코드에서 해당 항목을 참조하세요.

Klaviyo 계정에 업로드한 에셋을 참조하려면 다음 태그를 사용하세요: `{% asset_url 'style.css' %}`

![source code of your consent page showing uploaded custom asset tag](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/b299c6656d998586712598ad601660bd92b8cf69-2046x1080.jpg?auto=format)

## 맞춤 동의 페이지 사용하기

맞춤 코딩된 페이지로 계정의 기본 설정, 구독하다, 이메일 구독 취소 페이지를 대체할 수 있어요. 각 리스트가 자체 맞춤 코딩된 페이지를 사용하도록 구성할 수도 있어요.

- 특정 리스트에 대해 동의 페이지를 맞춤 설정한 경우, 해당 리스트에만 전송되는 캠페인과 해당 리스트에 의해 트리거되는 플로우의 이메일은 그 페이지를 사용해요.

- 맞춤 동의 페이지가 없는 목록은 계정의 기본 동의 페이지를 사용해요. 지표 트리거 플로우 이메일, 여러 목록 또는 세그먼트로 전송된 캠페인, 또는 [개인 이메일](https://help.klaviyo.com/hc/ko-kr/articles/115005246328.md) 등 단일 목록에 연결되지 않은 이메일도 기본 동의 페이지를 사용해요.



### 기본 동의 페이지를 호스팅된 페이지로 변경

계정의 기본 동의 페이지(예: 기본 설정 페이지, 구독 페이지 또는 이메일 구독 취소 페이지) 1개 이상을 사용자 지정 코드로 만든 페이지로 대체하려면 다음 단계를 따르세요: 

1. Klaviyo 왼쪽 하단에 있는 회사 이름을 클릭해 주세요. 

2. **설정**을 선택합니다.



![Account tab in the bottom left corner with settings selected from the navigation menu](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/37e02a44ad5cc3b2032d30848752a733e9381e0d-452x552.png?auto=format)

3. **기타 > 동의 페이지**를 선택해 주세요.

4. 교체하려는 동의 페이지에서 점 3개 드롭다운 메뉴를 클릭한 다음 **호스팅 페이지 사용**을 선택해 주세요.




![The Consent Pages tab in Klaviyo showing an the additional options menu open on an example preference page.](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/dc8dc62330f92cca6fc3d284b07d3144e0e11310-1568x498.jpg?auto=format)

5. 표시되는 대화 상자 창에서 맞춤 페이지 파일을 선택하고 **저장**을 클릭해 주세요. 



**📝 Note:** 목록으로 트리거되지 않는 플로우 이메일이나 여러 목록 또는 세그먼트에 전송되는 캠페인의 경우, 위 단계에 따라 계정의 기본 동의 페이지를 맞춤 코드로 제작한 페이지로 교체해 주세요. 목록 트리거 플로우는 해당 목록의 맞춤 동의 페이지를 사용할 수 있어요.

### 목록에 사용자 정의 동의 페이지를 사용하세요.

기본 동의 페이지 대신 맞춤 페이지를 사용하려는 각 리스트를 개별적으로 설정해야 해요.

1. 사용자 지정 페이지에 연결하려는 리스트로 이동해 주세요. 

2. **동의 페이지** 탭을 클릭해 주세요.

3. 리스트에서 기본 동의 페이지를 사용 중이라면 **이 리스트에 맞게 사용자 지정**을 클릭해 주세요. 리스트에 이미 사용자 지정 동의 페이지가 있으면 이 단계는 건너뛰세요.

4. 맞춤 페이지로 바꾸려는 동의 페이지 아래에서 점 3개 드롭다운 메뉴를 클릭하고 **호스팅된 페이지 사용**을 선택하세요. 





![The Subscribe & preferences pages tab for an example list in Klaviyo showing the additional actions menu open on the preferences page.](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/1e1cba988502dc2c82558a30710cd980fc180ebe-1538x1270.jpg?auto=format)

**📝 Note:** 호스팅 페이지를 환경설정 페이지, 구독 페이지, 이메일 구독 취소 페이지에 할당할 수 있어요. 확인 이메일은 호스팅 페이지를 지원하지 않아요.

1. 표시되는 대화 상자 창에서 맞춤 페이지 파일을 선택하고 **저장**을 클릭해 주세요.



**📝 Note:** 이메일에서는 표준 Klaviyo 구독 취소 및 환경설정 관리 태그(즉, {% unsubscribe %} 및 {% manage_preferences %})를 계속 사용해야 해요. 이 태그는 실제 전송되는 이메일에서 링크로 채워지며, 수신자를 자동으로 맞춤 페이지로 이동시켜요.

## 호스팅 페이지 FAQ

**이 양식이 정상적으로 제출되려면 페이지에 JavaScript를 추가해야 하나요?**
커스텀 양식이 호스팅된 페이지 안에 있으므로, 제출을 위해 추가 JavaScript나 action URL이 필요하지 않아요. 예시처럼 <form> method를 POST로 설정해 주세요. 이메일에서 Klaviyo 표준 구독 취소 또는 기본 설정 관리 태그를 사용하면, 결과 링크가 올바른 프로필을 식별할 수 있어요.

**이 페이지는 HTML로 만들어야 하나요?**
이 페이지는 HTML이어야 해요. 링크로 연결하거나 에셋 아래에 개별 파일을 업로드한 다음 페이지에서 이를 참조하면 추가 이미지, 스타일시트 등을 포함할 수 있어요.

**Klaviyo에서 맞춤 페이지를 만드는 데 도움을 받을 수 있나요?**
Klaviyo는 현재 맞춤 코드 구축을 지원하는 서비스를 제공하지 않으며, 맞춤 코드 문제 해결에 대한 지원도 제공하지 않아요. **Hosted Pages** 기능은 [개발자 또는 코드에 능숙한 마케터](https://connect.klaviyo.com/)를 위한 빈 캔버스를 제공하도록 설계되었어요.

**📝 Note:** [동의 페이지 시작하기](https://help.klaviyo.com/hc/en-us/articles/115005251848.md)에서 Klaviyo의 기본 제공 동의 페이지로 할 수 있는 사용자 지정 기능을 자세히 알아보세요.

## 추가 자료

- [리스트의 구독 취소 페이지를 맞춤 설정하는 방법](https://help.klaviyo.com/hc/ko-kr/articles/115005079627.md)
  특정 Klaviyo 목록에 대한 구독 취소 페이지를 사용자 지정하는 방법을 알아보세요. 구독 취소 페이지는 구독자가 마케팅 수신을 구독 취소할 수 있는 페이지입니다. 
- [가입 양식 및 구독 페이지 참조](https://help.klaviyo.com/hc/ko-kr/articles/115005080327.md)
  다양한 유형의 가입 양식과 구독 페이지를 비롯한 Klaviyo의 리스트 성장 도구를 사용하거나, 타사 연동을 통해 신규 구독자를 수집하고 참여를 유도하는 방법을 알아보세요. 
- [Klaviyo의 맞춤 호스팅 페이지 이해하기](https://help.klaviyo.com/hc/ko-kr/articles/360057676272.md)
  Klaviyo의 커스텀 호스팅 페이지(무엇인지, 무엇을 할 수 있는지 포함)에 대해 알아보세요.
