Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Launch Rule to fire when cookie is accepted or cookie is already on browser

Avatar

Avatar
Give Back
Level 1
jsvasu
Level 1

Likes

0 likes

Total Posts

48 posts

Correct Reply

0 solutions
Top badges earned
Give Back
View profile

Avatar
Give Back
Level 1
jsvasu
Level 1

Likes

0 likes

Total Posts

48 posts

Correct Reply

0 solutions
Top badges earned
Give Back
View profile
jsvasu
Level 1

27-01-2021

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

195 likes

Total Posts

595 posts

Correct Reply

117 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile

Avatar
Publish 1
MVP
yuhuisg
MVP

Likes

195 likes

Total Posts

595 posts

Correct Reply

117 solutions
Top badges earned
Publish 1
Affirm 100
Springboard
Bedrock
Validate 1
View profile
yuhuisg
MVP

28-01-2021

You can have 2 Rules:

  1. Rule with:
    1. Click event on the cookie banner's "Accept" button
  2. Rule with:
    1. Library Loaded event
    2. Condition that checks for the presence of the cookie

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.

Answers (0)