Search
🇰🇷

DPA 전환 스크립트 설치 가이드

이 가이드는 기본 전환 스크립트(dablena) 설치가 완료된 상태를 전제합니다. 기본 설치 가이드를 참고하여 init까지 완료한 후 진행해주세요.

상품 이벤트 설치

상품 정보를 수집할 수 있는 이벤트는 3가지입니다.

ViewContent — 상품 상세 페이지 조회

dablena('track', 'ViewContent', { items: [{ product_id: '상품ID' }] });
JavaScript
복사

AddToCart — 장바구니 추가

dablena('track', 'AddToCart', { items: [{ product_id: '상품ID_1' }] });
JavaScript
복사

Purchase — 구매 완료

value(금액)와 currency(통화)가 필수입니다.
dablena('track', 'Purchase', { value: 50000, currency: 'KRW', items: [ { product_id: '상품ID_1' }, { product_id: '상품ID_2' } ] });
JavaScript
복사

주의사항

items 배열에는 product_id 외에 다른 필드는 필요 없습니다.
product_id가 없는 항목을 넣으면 해당 항목만 무시되며, 에러는 발생하지 않습니다.
Purchase 이벤트에서 value / currency는 필수입니다. 누락 시 이벤트가 전송되지 않습니다.
product_id는 EP에 등록된 상품 ID와 반드시 동일한 값이어야 합니다.

Eng

This guide assumes that the basic conversion script (dablena) has already been installed. Please complete the setup up to init by referring to the Basic Installation Guide before proceeding.

Product Event Installation

There are three types of events available for collecting product information:

ViewContent — Product Detail Page View

dablena('track', 'ViewContent', { items: [{ product_id: 'PRODUCT_ID' }] });
JavaScript
복사

AddToCart — Add to Cart

dablena('track', 'AddToCart', { items: [{ product_id: 'Product_1' }] });
JavaScript
복사

Purchase — Purchase Completion

The value (amount) and currency fields are required.
dablena('track', 'Purchase', { value: 500, currency: 'USD', items: [ { product_id: 'Product_1' }, { product_id: 'Product_2' } ] });
JavaScript
복사

Important Notes

No fields other than product_id are required within the items array.
If an item without a product_id is included, that specific item will be ignored, and no error will occur.
For the Purchase event, value and currency are mandatory. The event will not be sent if these are missing.
The product_id must strictly match the Product ID registered in your Engine Page (EP).