You can seamlessly integrate the entire promoter dashboard into your website and facilitate automatic login for your promoters, eliminating the need for them to enter an email or password. This feature requires a custom domain to be set up and a Business plan subscription.
Follow these steps to embed the promoter dashboard:
Obtain the "auth_token" for the promoter and save it in your system. There are two ways to acquire the "auth_token":
a) Promoter Creation via API: When creating the promoter through the API, the JSON response will include the "auth_token." Save this value to the corresponding user object in your system.
b) Promoter Accepted Webhook: If you don't handle promoter creation via the API, retrieve the "auth_token" from the webhook notification sent when a promoter signs up using the FirstPromoter form. Save the "auth_token" in your system.
Ensure your custom domain is configured to serve the affiliate dashboard. Additional information can be found here.
Embed the affiliate dashboard as an iframe in your website, appending the "auth_token" for the current signed-in user.
Important: Ensure that the iframe is placed within a protected area of your website, inaccessible to search engines or the general public. For enhanced security, consider token refresh via API.
Here's the iframe code to insert into a logged-in area on your website (replace {{auth_token}} with the actual "auth_token" saved in your system):
<iframe height="850px" width="100%" frameborder="0" src="https://<yourcustom.domain.com>/iframe?at={{auth_token}}"></iframe>
This integration enhances user experience by seamlessly integrating the affiliate dashboard into your website while maintaining security measures.
