The first step in setting up FairShare for Business is to implement the registration flow on your website. This registration flow is called AE Connect, and is how your users will be added to the FairShare marketplace so you can start collecting valuable insights on their social media, streaming and on-site behavior and interactions. AE Connect is added to your site using AEJS, a Javascript framework.
Note: Before you install AE Connect on your website, make sure you have allowlisted any domains where AE Connect will be used.
Navigate to your AE Connect settings by clicking the quick link on your dashboard homepage, or by clicking the gear icon in the upper right menu:
Add AEJS to your website
To add AEJS to your website, you will copy snippets of code and add them to your site. The process will be different depending on your website platform. We’ve created a few guides for popular platforms to help out:
For developers or custom web applications, here’s how to embed directly:
- On your AE Connect settings page, scroll down and choose the Install AE Connect tab.
- Under 2. Add AE Connect to your website, you will find the AEJS framework code. Copy this code and add it to the head tag or body tag of your site.
- Scroll down to 3. Add the JavaScript function. This is the AEJSReady function and is where you will manage AE Connect settings and events. Copy this code and add it to the footer or just above the closing body tag of your site.
Alternatively, you can add this code just to the footer of the page where you want the AE Connect registration flow to appear. There are a few cases where this may be the best approach. For example, if you want to redirect logged in users to a “success” page using the onUser and onLogin events (see AE Connect: Advanced Setup and Customization and the AEJS Framework Reference for more details). - AEJS has now been added to your site and you can begin building your registration flow with either our built-in registration flow (data-ae-register-window) or a more customized approach.
Next Article: Build your AE Connect Registration Flow
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article