내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards
해결됨

Custom code page variable set on click event

Avatar

Level 1

Hello,

 

I have a question on my Adobe Launch configuration.

 

I try to send my page information into a click event.

 

I have duplicated the custom code that set the page variables from my page event to my click event.

But for example, my evar13 doesn't seem to be set using the custom code (that works on page event), but checking the console log, the var is well set.

 

I don't understand why the "s.evarX=" function works on my page event but not my click.

 

You will find the screenshots here, as I am limited to four in the post: https://www.swisstransfer.com/d/d6d4f09d-8f11-4025-80ed-60daa6b498c8

 

If anyone has a clue on what I'm doing wrong here, thanks in advance.

Best,

 

 

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor and Adobe Champion

Hi @GabrielBE2 ,

Assuming you are talking about sending same data in s.t() and s.tl() calls separately, I agree with what @Amruthesh_AG is saying regarding defining the events & variables through s.linkTrackVars and s.linkTackEvents first.

 

Reference links below-

 

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/linktrackvars

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/linktrackevents

 

원본 게시물의 솔루션 보기

3 답변 개

Avatar

Community Advisor

@GabrielBE2Check in console by calling _satellite.getVar('data element name') if returning expected value.

 

and also In case if you are setting that variable in custom code just check that you have declared variable in s.linkTrackVars='evarX' attached screenshot FYR.

Amruthesh_AG_0-1729243458001.png

 

 

 

Avatar

정확한 답변 작성자:
Community Advisor and Adobe Champion

Hi @GabrielBE2 ,

Assuming you are talking about sending same data in s.t() and s.tl() calls separately, I agree with what @Amruthesh_AG is saying regarding defining the events & variables through s.linkTrackVars and s.linkTackEvents first.

 

Reference links below-

 

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/linktrackvars

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/config-vars/linktrackevents

 

Avatar

Level 1

Thanks @Amruthesh_AG  and @Isha__Gupta ,

 

You were correct, I needed to use those function : s.linkTrackVars and s.linkTackEvents

 

It works, thank you again for your time and answers.

 

Best regards