> For the complete documentation index, see [llms.txt](https://store-help.nhn-commerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://store-help.nhn-commerce.com/app/counsel/kakao_friend_talk/06.md).

# 오로라 통합형 스킨 패치 가이드

{% hint style="info" %}
기본 스킨 또는 <mark style="background-color:yellow;">기본 스킨 버전 1.6.2</mark> 이후 복제된 코드인 경우에는 아래 가이드 코드가 반영되어 있습니다.&#x20;
{% endhint %}

## 릴리즈 노트&#x20;

* [v1.6.2 로그인/SNS로그인 시 trackingKey 전달](https://skins.shopby.co.kr/shopby/aurora-skin/-/releases/v1.6.2)

***

## 적용 방법

* 페이지 진입 시 URL 쿼리파라미터에 <mark style="background-color:yellow;">trackingKey</mark> 가 있을 경우 브라우저의 세션 스토리지에 trackingKey를 저장합니다.&#x20;

```
// src/index.js

const renderApp = async () => {
  // ...

  const excludePaths = ['/callback/auth-callback'];

  if (!excludePaths.includes(location.pathname)) {
    const searchParams = new URLSearchParams(location.search);
    const trackingKey = searchParams.get('trackingKey');
    const channelType = searchParams.get('channelType');

    setTrackingKey(trackingKey);
    setChannelType(channelType);
    
    //... 
    
  }
}
```

* 이 후 로그인 / SNS로그인 시 세션스토리지에 저장된 trackingKey를 API서버에 함께 전달하게 됩니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://store-help.nhn-commerce.com/app/counsel/kakao_friend_talk/06.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.
