> For the complete documentation index, see [llms.txt](https://referral-rocket.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://referral-rocket.gitbook.io/docs/integrations/outseta.md).

# Outseta

This guide explains how to integrate [Referral Rocket Affiliate Software](https://referralrocket.io) with Outseta to track member signups and referrals.

### Installation

To integrate Referral Rocket with Outseta, you'll need to add two scripts to your website:

1. First, add the main Referral Rocket script to the `<head>` section of your website:

```html
htmlCopy<script 
  type="text/javascript" 
  campaign-id="YOUR-CAMPAIGN-ID" 
  defer 
  src="https://app.referralrocket.io/widget/widgetIndex.js">
</script>
```

2. Then, add the following script to the page where members sign up:

```html
<script>
Outseta.on(
  'signup',
  (account) => {
    // Get campaign instance
    const campaign = window.Rocket.getCampaign();
    
    // Add the new member as a participant
    campaign.addParticipant({
      email: account.PersonAccount[0].Person.Email
    })
    .catch(error => {
      console.error('Error processing referral:', error);
    });
  }
);
</script>
```

### How It Works

1. When a new member signs up through Outseta, it triggers the `signup` event
2. The event handler captures the new member's email address from the Outseta account object
3. The member is automatically added as a participant in your Referral Rocket campaign
4. The system checks for any stored referral information in cookies
5. If a referral is detected, it's automatically associated with the new member

### Testing

* Verify the integration by completing a test signup through Outseta
* You can confirm proper installation by checking `window.Rocket` in your browser console
* Note that referral tracking will only work when your campaign is in live mode

### Important Notes

* Remember to replace `YOUR-CAMPAIGN-ID` with your actual Referral Rocket campaign ID
* Publish your site after adding these scripts
* The integration automatically handles referral detection through stored cookies
* Make sure the Referral Rocket script is loaded before the Outseta integration script

### Troubleshooting

If you're not seeing referrals being tracked:

1. Verify both scripts are properly installed
2. Check the browser console for any error messages
3. Ensure your campaign is in live mode
4. Confirm the Outseta `signup` event is firing correctly

For additional support, contact our team at <support@referralrocket.io>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://referral-rocket.gitbook.io/docs/integrations/outseta.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
