Staging Mode
Last updated on June 10, 2024
The Staging Mode feature in CookieYes allows users to set up and preview their cookie banner in a test environment. This feature is helpful for organizations that employ separate development / staging / production website environments specifically, as it enables thorough banner testing without impacting the live domain. Using the staging mode, you can validate your banner’s configuration and behaviour before making it accessible to live website visitors.
The feature to add a staging site is only available for sites with an active Paid Plan (Basic, Pro, Ultimate).
Setup Overview
There are three main steps to set up a staging site.
- Add Staging Site URL
- Enable Staging Mode
- Add CookieYes Installation Code
Step 1: Add a Staging Site
You can only add one staging site per domain.
1. In the CookieYes Dashboard, navigate to the Profile icon in the top-right corner and select Organizations & Sites from the drop-down.
2. In the Organizations & Sites tab, click the three-dot menu against the required site and select Add staging site from the dropdown menu.
3. In the modal, enter your Staging site’s URL in the provided field and click Add.
4. The staging site you added will appear in your organization. Click Manage Site to navigate to your staging site’s dashboard.
Step 2: Enable Staging Mode
In the top bar of your CookieYes Dashboard, switch the toggle button to the right to enable Staging Mode. You can use this toggle button to switch between your live website and staging site’s banner configurations.
Step 3: Add CookieYes Installation Code
Click Get Installation Code to copy the CookieYes script for your staging site. Then, paste it immediately after your staging site’s opening <head> tag.
The CookieYes banner will now be active on your staging site. You can use this dashboard to customize the cookie banner for your staging site further.
Staging site settings
You can change your Staging site’s URL, update the Site name, and delete the site as needed from the Organizations & Sites tab.
Edit Staging site URL
- Click on the three-dot menu to the right of the Staging site’s URL.
- From the drop-down menu, select Edit site URL.
- In the modal, enter the updated URL in the required field.
- Click Save Changes.
If you’re updating the staging site URL, add the banner installation code to the new site. Refer to our installation guide for detailed instructions.
Edit site name
- Click on the three-dot menu to the right of the Staging site’s URL.
- Select Edit site name from the drop-down menu.
- Enter staging site name in the field and click Save Changes.
Delete staging site
- Click on the three-dot menu to the right of the Staging site’s URL.
- From the drop-down menu, select Delete site.
- Click Delete staging site.
Deleting the staging site is permanent and cannot be undone. Ensure you no longer need the staging site before proceeding.