-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 상품 정렬 버튼 클릭 GA 이벤트 추가 * feat: 꿀조합 작성, 정렬 버튼 클릭 GA 이벤트 추가 * feat: 상품 목록 페이지 카테고리 버튼 클릭 GA 이벤트 추가 * feat: 상품 리뷰 정렬, 작성 버튼 클릭 GA 이벤트 추가 * feat: 꿀조합 등록하기 버튼 GA 이벤트 추가 * feat: 상품 리뷰 등록하기 버튼 클릭 GA 이벤트 추가 * feat: 검색 페이지에서 검색 GA 이벤트 추가 * style: 등록하기 버튼 클릭 -> 등록 * refactor: 리뷰, 꿀조합 등록 이벤트 삭제 * feat: 랭킹 링크 GA 이벤트 추가 * feat: 홈 배너 및 카테고리 링크 GA 이벤트 추가
- Loading branch information
1 parent
2a3e96b
commit 86e9430
Showing
16 changed files
with
151 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { useCallback } from 'react'; | ||
import ReactGA from 'react-ga4'; | ||
|
||
interface GAEventProps { | ||
category: string; | ||
action: string; | ||
label?: string; | ||
} | ||
|
||
const useGA = () => { | ||
// TODO: navigate event tracking | ||
|
||
const gaEvent = useCallback((eventProps: GAEventProps) => { | ||
ReactGA.event(eventProps); | ||
}, []); | ||
|
||
return { gaEvent }; | ||
}; | ||
|
||
export default useGA; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.