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

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

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

해결됨

How to get the environment name in analytics.

Avatar

Level 4

I have one rule in analytics that rule need to be  enablle only in prod and it should be disable in stage how can I achive this.?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 8

@vijitha - If you want a "set it and forget it" approach, consider creating a data element with the value of _satellite.buildInfo.environment and using it to conditionally execute/not execute your rule. You shouldn't have to worry about enabling/disabling the rule as you promote through the different environments.

 

evolytics_brian_0-1612895929502.png

 

원본 게시물의 솔루션 보기

6 답변 개

Avatar

Employee Advisor

You can disable the rule, add the disabled rule in the development environment and push it through the staging environment. The rule won't work in the staging environment.

In other words, you will need to add a disabled rule to an environment to remove it from the upstream resources.

Avatar

Level 4
Hi @Ishan_Sinha_ As of now I am following the same procedure but when we push that environment to production again will create new environment for stage so every time i am repeating the same procedure.If we have any condition to check the environment name we can avoid that procedure.

Avatar

정확한 답변 작성자:
Level 8

@vijitha - If you want a "set it and forget it" approach, consider creating a data element with the value of _satellite.buildInfo.environment and using it to conditionally execute/not execute your rule. You shouldn't have to worry about enabling/disabling the rule as you promote through the different environments.

 

evolytics_brian_0-1612895929502.png

 

Avatar

Community Advisor
@vijitha if you don't want to add custom code, install the "SDI Toolkit" extension from Search Discovery. You can then create a data element that returns the Launch build info.

Avatar

Level 4
Thank you @Brian_Johnson_ it worked for me

Avatar

Employee
Do any of the answers below answer your initial question? If so, can you select one of them as the correct answer? If none of the answers already provided answer your question, can you provide additional information to better help the community solve your question?