Consent Forms allow URL parameters to be passed. Values specified in these parameters are pre-populated in the Consent Form while rendering the form. These values are however in clear text and can be changed by consumers. Consent Form URL can also be accessed by scripts that submit consents repeatedly and overwhelm the system. Tokenizing the URL parameters helps avoid these types of attacks and fraudulent consents.
Customers can send the URL parameters to a CPM API which returns the token for these parameters. Customers can then send this token as a URL parameter while rendering the form. Four different options are supported for the Consent Forms:
Note that URL Parameters will not be ignored if a token has LatestPreference=True. Whatever is added outside the token with the latest preference parameter set to true has the higher priority. If both fields are found in the token and parameter, CPM takes the token as priority. This works for the "No token required" and "Any non-identifier field can be used without a token" options. In addition, if the latest preference parameter is set to true in the token and a parameter with flag is added outside the token, which is in the parameter but not in the token, the output considers the flag and adds the latest preference.
You can set the following parameters under the URL Condition section on the Publish page.
You can set tokenized URL and non-tokenized URL parameters together in the conditions detailed below:
Click the Secure Form button to see an example usage on setting up a tokenized URL parameter.
To obtain tokens for URL parameters, customers can use POST request to https://cpm.trustarc.com/server/api/v1/external/consent-forms/tokenize-params. Parameters to tokenize are sent as payload (request body) in JSON format. This information is provided in the Consent Form as well.