Skip to main content
All CollectionsGetting StartedScript InstallationScript Installation Guides
How to Add RB2B's Script to WordPress via a Plugin
How to Add RB2B's Script to WordPress via a Plugin
Updated over 9 months ago

Instructions for adding our script to WordPress via a plugin.

We suggest using the Head, Footer and Post injections plugin for optimal performance. However, any plugin capable of injecting code into your website's header should suffice for your needs. This article assumes that the previously mentioned plugin is installed and active on your website.


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 embedding into your WordPress site.

Log in to WordPress and Navigate to Settings then Header and Footer

First, access your WordPress site's admin area by logging in with your credentials. Once in the dashboard, look for the “Settings” option in the left-hand sidebar. Click on it. In the expanded menu under “Settings,” find and click on “Header and Footer” or a similar option. The exact name can vary based on the plugins or theme you are using.

Add the Script to <HEAD>

In the Header and Footer settings page, locate the section titled something like <HEAD> PAGE SECTION INJECTION or “Scripts in header.” This section is specifically for adding code to the <head> section of your website. In the text box under “ON EVERY PAGE” or a similarly labeled area, paste your tracking script. This script is typically provided in HTML format and might look like <script>/* tracking code */</script>. Ensure that the script is correctly pasted and no additional characters or errors are introduced.

Click Save near the top of the page to publish your changes.

Did this answer your question?