@daeryun/dr_components 1.2.91 → 1.2.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -203,6 +203,7 @@ const LoginContainer = ({ layoutClassName = ' relative h-[100vh] max-h-[1200px]
|
|
|
203
203
|
}
|
|
204
204
|
];
|
|
205
205
|
const snsLoginClickGAEvent = (snsLoginProvider) => {
|
|
206
|
+
console.log('snsLoginClickGAEvent 호출됨:', snsLoginProvider); // 이 로그가 몇 번 찍히는지 확인
|
|
206
207
|
gtag.event({
|
|
207
208
|
event_name: 'sns_login_click',
|
|
208
209
|
login_category: `${snsLoginProvider}_sns_login`,
|
|
@@ -235,9 +236,9 @@ const LoginContainer = ({ layoutClassName = ' relative h-[100vh] max-h-[1200px]
|
|
|
235
236
|
' max-lg:mt-[168px] ' +
|
|
236
237
|
' max-sm:mt-[80px] '}>
|
|
237
238
|
{loginProvider.map((item, index) => {
|
|
238
|
-
return (<button aria-label={`${item.identityProvider} 로그인 버튼`} key={index} type="button"
|
|
239
|
-
// onClick={() => {
|
|
240
|
-
|
|
239
|
+
return (<button aria-label={`${item.identityProvider} 로그인 버튼`} key={index} type="button" onClick={() => { handleLoginClick(item.identityProvider); snsLoginClickGAEvent(item.identityProvider); }}
|
|
240
|
+
// onClick={() => {snsLoginClickGAEvent(item.identityProvider); }}
|
|
241
|
+
className={' relative flex h-[72px] w-[540px] items-center ' +
|
|
241
242
|
' body_large2 justify-center rounded-[36px] ' +
|
|
242
243
|
' max-lg:body_large2_tb max-lg:h-[64px] max-lg:w-[500px] ' +
|
|
243
244
|
' max-sm:body_large2_mo max-sm:h-[48px] max-sm:w-[320px] ' +
|
|
@@ -237,6 +237,8 @@ const LoginContainer = ({
|
|
|
237
237
|
];
|
|
238
238
|
|
|
239
239
|
const snsLoginClickGAEvent = (snsLoginProvider: 'kakao' | 'google' | 'naver' | 'apple') => {
|
|
240
|
+
console.log('snsLoginClickGAEvent 호출됨:', snsLoginProvider); // 이 로그가 몇 번 찍히는지 확인
|
|
241
|
+
|
|
240
242
|
gtag.event({
|
|
241
243
|
event_name: 'sns_login_click',
|
|
242
244
|
login_category: `${snsLoginProvider}_sns_login`,
|
|
@@ -288,8 +290,8 @@ const LoginContainer = ({
|
|
|
288
290
|
aria-label={`${item.identityProvider} 로그인 버튼`}
|
|
289
291
|
key={index}
|
|
290
292
|
type="button"
|
|
291
|
-
|
|
292
|
-
onClick={() => {snsLoginClickGAEvent(item.identityProvider); }}
|
|
293
|
+
onClick={() => {handleLoginClick(item.identityProvider); snsLoginClickGAEvent(item.identityProvider); }}
|
|
294
|
+
// onClick={() => {snsLoginClickGAEvent(item.identityProvider); }}
|
|
293
295
|
className={
|
|
294
296
|
' relative flex h-[72px] w-[540px] items-center ' +
|
|
295
297
|
' body_large2 justify-center rounded-[36px] ' +
|