Adding the sign up snippet in Bubble
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
- Open your Bubble application's settings.
- Go to the page settings and find the header section.
- 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.
- Open the Plugins tab in Bubble.
- 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.