활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi. I am looking to implement a Launch rule to trigger when either a user clicks on accept cookie banner or a cookie is already existing on the user browser? what could be the custom code in Launch? Any Step by Step information? Or any other direct way to implement the rule?
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
You can have 2 Rules:
When new users click on the Accept banner, they would cause the 1st Rule to trigger. I assume the cookie banner then sets the cookie.
Subsequently, these users who had already granted consent would have the cookie in their browser, so every page they visit would cause the 2nd Rule to trigger.
You can have 2 Rules:
When new users click on the Accept banner, they would cause the 1st Rule to trigger. I assume the cookie banner then sets the cookie.
Subsequently, these users who had already granted consent would have the cookie in their browser, so every page they visit would cause the 2nd Rule to trigger.
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
@JyotiSharmaV No, you don't need Custom Code.
1. Create a Data Element of "Cookie" type. Provide the name of your cookie.
2. In your Rule's Condition, use "Value Comparison". Pick the data element in the first field. Then in the dropdown list, choose "Is truthy". Save your Condition.
"Is truthy" is a convenient way to check if a data element is set with a value. ("Is falsy" is the reverse, i.e. check if a data element does not have a value.)
조회 수
답글
좋아요 수
조회 수
답글
좋아요 수
조회 수
Likes
답글