> 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서버에 함께 전달하게 됩니다.
