By default, the Marketing Consent field you see in the user’s profile screen is not part of registration. What if you’d like to collect this consent when the user creates their account?
You can add the Marketing Consent field to registration by following a two-step process:
You can make this change in the Identity Cloud Console:
marketingConsent. By default, fields are listed in alphabetical order by Field Name. You can use the pagination controls in the bottom-right corner of the table, or sort by column if needed.
The next time you view the Hosted Login screens, you’ll see the Marketing Consent field is now included when the user creates an account.
Need to reorder the fields as shown in the form? You can do this in the FORMS tab of Registration Builder. Make sure to do this for both the
socialRegistrationForm if needed.
Note that you can add fields to forms from the FORMS tab as an alternative to doing the same from the FIELDS tab (detailed in the steps above).
Note that if you want to add more consent or preference opts to the registration forms, you must create them as fields first. See Add more opts.
You now have a field in the registration form(s) to collect the user’s marketing consent when they create an account.
However, nothing will be written to the record for this registration field by default. This is because the hidden logic Hosted Login uses to write data to the user’s
consents.marketing object isn’t configured to run upon registration.
For this, please reach out to your Akamai Identity Cloud representative. The logic that tells Hosted Login what to write into the user record, and when to write it, can be modified by the Akamai Identity Cloud Professional Services team to support your specific needs.