Skip to main content
How to Add RB2B's Script to Your Website via Code
Updated over a week ago

Instructions for adding our tracking script directly to your website’s HTML files.

Ensure you have the necessary permissions and understanding to modify your website’s HTML files before proceeding.

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 website.

Connect to Your Website's Server Using FTP

  • Open your FTP client (such as FileZilla, WinSCP, or Cyberduck).

  • Enter your website’s FTP credentials (FTP address, username, and password). These are usually provided by your web hosting service.

  • Connect to the server by clicking the 'Connect' or 'Login' button.

  • Once connected, navigate to the directory where your website files are stored. This is often named public_html, www, or something similar.

  • Inside this directory, look for the file that contains the HTML header. This is often named header.php, index.html, index.php, or something similar, depending on how your website is structured.

Insert the Tracking Script

  • Paste your tracking script just before the closing </head> tag. It’s important to place it here for it to load correctly.

  • Ensure that you don't accidentally delete or alter any existing code in the file.

  • Save your changes.

Did this answer your question?