This guide walks you through setting up Slack notifications for Code Cube's Tag Monitor and DataLayer Guard to receive real-time alerts for errors and volume warnings directly in your Slack workspace.
What will you do?
- Access the configuration portal for your monitoring tool
- Enable Slack notifications and configure workspace settings
- Authenticate the Code Cube app with your Slack workspace
- Add the app to your desired Slack channel
β° Estimated time: 5 - 10 minutes
π§ Requirements: Access to Code Cube portal, Slack workspace admin permissions, and an existing Slack channel
Implementation
- Step 1 β Access configuration page
- Step 2 β Enable and configure Slack notifications
- Step 3 β Authenticate with Slack
- Step 4 β Add app to Slack channel
Step 1 β Access configuration page
Choose the appropriate configuration page based on which monitoring tool you want to set up Slack notifications for. You can configure Slack notifications for both Tag Monitor and DataLayer Guard by following these steps separately on each product's configuration page.
For Tag Monitor
- Go to the Tag Monitor configuration page
- Navigate to the 'Slack notifications' step
For DataLayer Guard
- Go to the DataLayer Guard configuration page
- Navigate to the 'Slack notifications' step
Step 2 β Enable and configure Slack notifications
Set up your Slack workspace details and specify where notifications should be sent.
2.1 Enable notifications
Start by toggling the 'Enable notifications' switch at the top of the configuration page. This will activate Slack notifications and reveal the configuration fields needed to connect your workspace.
2.2 Configure workspace settings
You'll need to provide two key pieces of information to connect Code Cube with your Slack workspace. First, insert your workspace ID in the designated field - this should be your workspace URL (for example: codecubeio.slack.com).
Next, specify the name of the Slack channel where you want to receive notifications in the channel name field.
Important: Many users prefer to receive Slack notifications in a dedicated channel. If this is your preference, make sure to create this channel in your Slack environment before proceeding with the configuration.
Step 3 β Authenticate with Slack
Connect Code Cube to your Slack workspace by completing the authentication process.
3.1 Initiate authentication
Click the authentication bar below the configuration fields to begin the process. This will redirect you to Slack where you'll need to log into your workspace if you're not already signed in.
3.2 Authorize the app
You'll be prompted to authorize the Code Cube app within your workspace. Review the permissions requested and click to grant authorization. This allows Code Cube to send notifications to your specified channel.
3.3 Save the configuration
After authentication you see the message βAuthorization successful! Please close this page and go back save the form.β in a white screen. Now navigate back to the configuration in the portal and make sure the save the changes.
Important: Without saving the changes, notifications can not be send to Slack!
Step 4 β Add app to Slack channel
Complete the setup by adding the Code Cube app to your desired notification channel.
4.1 Access channel settings
Open your Slack workspace and navigate to the specific channel where you want to receive notifications. Click on the channel name at the top to access the channel settings and information.
Navigate to the 'Integrations' tab within the channel settings and select 'Add apps'.
4.2 Add the app
In the search bar, look for either 'Tag Error Monitoring' (for Tag Monitor) or 'DataLayer Guard' (for DataLayer Guard) depending on which product you're configuring. Once you find the appropriate app, select 'Add' to complete the integration.
What notifications will you receive?
Once configured, your email list will receive alerts for:
Tag Monitor notifications:
- Error notifications when tags fail or encounter issues
- Volume warnings when tag firing patterns change significantly or drop
- Errors encountered within server-side Cloud Run instances
DataLayer Guard notifications:
- Error notifications when data layer validation fails (send once)
- Weekly summary of all errors encountered the past week or confirmation that dataLayer works correctly.