---
type: bookmarks
tags: ['optimize']
status: release
ctime: 2022-04-09
mtime: 2024-03-22
---

[google-optimize](https://github.com/jaredLunde/react-hook/tree/master/packages/google-optimize)

- [#L19-L24](https://github.com/jaredLunde/react-hook/blob/master/packages/google-optimize/src/index.tsx#L19-L24)[^38-1]
- [#L46](https://github.com/jaredLunde/react-hook/blob/master/packages/google-optimize/src/index.tsx#L46)[^38-2]
- [#L8](https://github.com/jaredLunde/react-hook/blob/master/packages/google-optimize/src/index.tsx#L8)[^38-3]

---

[^38-1]: `setTimeout`, `clearTimeout` 으로 최적화
[^38-2]: `gtag` 에서도 `remove: true`값 전달로 해제
[^38-3]: `variants`를 컴포넌트로 전달 받아서 리턴