Create Rotating Campaigns
In this guide, you'll learn how to create rotating campaigns that show a different campaign on each visit.
In this example, we'll assume we have three campaigns.
For example, showing Campaign A on the first visit, Campaign B on the second, and Campaign C on the third, then repeating the cycle.
Step 1: Customize Campaign A
Go to PHP Scripts > On Open and set it to:
setcookie('firebox_next_bar', 'B', time()+3600, '/', '', true, false);

This essentially tells FireBox that the next campaign that should appear after A is campaign B.
Next, go to Display Conditions and add the following conditions:

Cookie
- Cookie Name: firebox_next_bar
- Match: Does not exists
OR
Cookie
- Cookie Name: firebox_next_bar
- Match: Equals
- Cookie Content: A
Step 2: Customize Campaign B
Go to PHP Scripts > On Open and set it to:
setcookie('firebox_next_bar', 'C', time()+3600, '/', '', true, false);

This tells FireBox that the next campaign to appear after B is C.
Next, go to Display Conditions and add the following conditions:

Cookie
- Cookie Name: firebox_next_bar
- Match: Equals
- Cookie Content: B
Step 3: Customize Campaign C
Go to PHP Scripts > On Open and set it to:
setcookie('firebox_next_bar', 'A', time()+3600, '/', '', true, false);

This tells FireBox that the next campaign to appear after C is A, to reset the rotation.
Next, go to Display Conditions and add the following conditions:

Cookie
- Cookie Name: firebox_next_bar
- Match: Equals
- Cookie Content: C