Affiliate Opt In
Last updated
Last updated
The Affiliate Opt In Feature consists of an Opt In Check-box displayed atop the Signup button in the Lede Banner of a campaign.
This allows a user to opt in to receiving affiliate messaging from the sponsor when signing up.
The Affiliate Opt In Content (affiliateOptInContent
) Rich Text field on the Campaign Content Type in Contentful controls whether this check-box shows up, and the text that appears as the label for the check-box.
If any content is input into this field, the check-box will automatically appear above the sign-up button with the content from this field as the label.
When the user clicks the "Sign up" button, we use that signups.affiliateMessagingOptIn
value to determine whether we append the affiliateOptIn: true
key/value pair to the details
object, which is then JSON stringified and sent along to Rogue when creating the signup for the user.
Example Signup in Rogue: (note the affiliateOptIn
in the details
field)
This marks this user as having opted in to receiving affiliate messaging, and can be used to help compile a list of such users for the affiliate partner.
Our state is initialized with a signups
object containing an affiliateMessagingOptIn
Boolean field (defaults to false
). Clicking the Affiliate Opt In check box input invokes an action which toggles this value.