Skip to main content

RB2B Install Guide for Google Tag Manager

Updated over 2 weeks ago

Instructions for adding our tracking script via Google Tag Manager. Installing the RB2B script ensures your website integrates seamlessly with our platform’s features, allowing for enhanced functionality across all pages. Google Tag Manager is one of several methods for achieving this.

Note: Ensure to review potential compatibility issues, such as CSP requirements or limitations in certain frameworks (e.g., Next.js), before proceeding with the Google Tag Manager method.


1. Copy the RB2B Script

Start by ensuring that you have the RB2B script ready. You can find it in the Script section of the dashboard. Copy the entire code snippet to your clipboard, preparing it for adding to Google Tag Manager.

The RB2B script is an integration feature that needs to be set up correctly to ensure proper functionality. Once installed, it enables seamless integration of our platform's features throughout your entire website.

This guide exclusively covers the installation method via Google Tag Manager (GTM). Alternatively, you can consider other options like placing the script in your website's global header file for universal implementation.

It is important to note that Google Tag Manager may not work in every environment. For example, in a Next.js setup, the RB2B script must be integrated using a specialized method rather than GTM.

2. Log into Google Tag Manager

  • Navigate to the Google Tag Manager website (tagmanager.google.com).

  • Enter your login credentials.

  • Select the appropriate account and container for your website.

3. Create and Configure a New Tag

  • In the Google Tag Manager dashboard, click on Tags in the left sidebar.

  • Click the New button to create a new tag.

  • Name the tag descriptively, like RB2B Script, for easy identification later.

  • Click on Tag Configuration to choose the type of tag you want to set up.

  • Select Custom HTML from the list of tag types.

Google Tag Manager is a powerful tool for centralized script management, particularly effective for sites that require scalable and efficient script deployment. It eliminates the need for individual page-level script installations.

4. Paste the Script

In the HTML field that appears, paste the tracking script provided.

5. Set the Trigger

  • Click on Triggering below the HTML field.

  • Choose the All Pages trigger, which will apply this tag to every page on your website. This is typically used for scripts like analytics or site-wide widgets.

6. Save the Tag and Publish the Changes

  • Click the Save button at the top right of the page to save your tag configuration.

  • After saving the tag, you will be redirected back to the main workspace.

  • To make the tag active on your site, you need to publish the changes.

  • Click the Submit button in the top right corner of the Google Tag Manager dashboard.

  • In the submission dialog, you can name the version (for example, Added RB2B Script Tag) and add a description if needed.

  • Click Publish to finalize the process.

Please ensure that you remember to click Publish after saving your tag. It is a two-step process to create and publish a tag.

Important Considerations and Limitations

When planning to deploy the RB2B script using Google Tag Manager (GTM), it's important to address several considerations:

  • CSP Configuration: Update your site's Content Security Policy (CSP) rules to whitelist RB2B-related domains, as the deployment via GTM does not influence these settings.

  • Environment-Specific Constraints: In Next.js environments, GTM implementation is not supported, and direct script integration should be used instead.

Ensure that these factors are addressed beforehand to guarantee seamless script functionality.

Additional Resources

For platform-specific installation guidance or advanced use cases, check the detailed official instructions provided by RB2B on their support page. These resources include installation guides tailored to various popular platforms.

Additionally, for detailed guidance on updating CSP rules or integrating RB2B in environments like Next.js, refer to the step-by-step instructions in the official RB2B documentation.

Did this answer your question?