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

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Inline Java Script vs Custom Code in Launch

Avatar

Level 1

All am doing research on analytics and looked at few projects now. I have a question on difference between inline java script and using Launch custom code.
I have seen projects which are using only data elements with JavaScript Variable and direct call rules only. This is making Launch mostly configuration tool and HTML page is doing lot of work to populate data elements. There are other kind of projects which use all launch features CSS selectors for data elements and rules and perform whole process. This has lot of advantages and decouples the implementation from website. But as per all of your experiences what is the best and most used approach.

주제

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

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

The best approach is somewhere in the middle. When the implementation fully relies on data layer (global JS variables) then any new change requires an update on the website that takes long and sometimes it's now worth it resources wise. When the data elements are mapped only to CSS selectors, there is a high risk of data loss due to html/markup changes.

Consider mapping the Launch data elements to data layer whenever possible, for the rest use the other available options.

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Level 10

The best approach is somewhere in the middle. When the implementation fully relies on data layer (global JS variables) then any new change requires an update on the website that takes long and sometimes it's now worth it resources wise. When the data elements are mapped only to CSS selectors, there is a high risk of data loss due to html/markup changes.

Consider mapping the Launch data elements to data layer whenever possible, for the rest use the other available options.

Avatar

Level 1
ok so you suggest to utilize data layer to populate data elements and use other options as required. But as you mentioned this will required changes to the website and may require redeploy whenever there are changes to data layer.