Insightful tripled their affiliate revenue after switching. Free white-glove migration; your affiliates keep their links.

Migrate for Free

Adding the sign up snippet in Bubble

Joran HofmanWritten by Joran Hofman, Founder of Reditus
Tracking basics & Installation guidestracking referralbubblebubble affiliate programsign up snippet

This is how to add the Reditus tracking script and signup snippet to a B2B SaaS app built in Bubble. For the other installation steps, see the full installation guide.

Step 1: Add the tracking script to your Bubble app

  1. Open your Bubble application's settings.
  2. Go to the page settings and find the header section.
  3. Paste the Reditus tracking script into the header of your application. You find the script in the installation tab of your Reditus settings.

Step 2: Enable JavaScript

Bubble needs a plugin before it can run JavaScript.

  1. Open the Plugins tab in Bubble.
  2. Search for a JavaScript plugin, such as Toolbox or JavaScript to Bubble, and install it.

Step 3: Fire the signup snippet after a successful signup

Use the plugin to run the signup snippet right after a new user has signed up, for example as a JavaScript action in the workflow that signs the user up. Put the new user's email in place of the example email:

window.gr("track", "conversion", { email: "email@example.com" });

Fire it once per new signup, never on login. More about the snippet: installing the signup snippet.

Step 4: Test it

  • Open your browser's developer console and check for errors related to the snippet.
  • Make a test signup to confirm that referrals are tracked: testing the signup snippet.

Need help?

Ask us in the chat on our website or in the app.

Ready to grow your SaaS?

  • 14-day free trial
  • Easy to use
  • No credit card required