Available Parameters to the Script

IRM GPC Script Parameters

Below is a list of available parameters you can include in your GPC code.

Note: These parameters must be set inside the gpcConfig object for the script to function properly. You can view a sample usage by clicking the Global Privacy Control button on the Publish page of an Intake Form in the IRM Portal.
geoLocationCodes
Array of strings — Optional

TrustArc's customers may want to recognize the GPC only in certain geolocations such as California. If this parameter is not set or not passed, GPC recognition applies to all visiting end users regardless of their geolocation.

The format of geolocation is: ContinentCode_CountryCode_StateCode. StateCode is optional for most cases.

Example for United States, California: NA_US_CA (North America, United States, California). See Appendix B for a full list of geolocation codes.

geoLocationCodes parameter example
showRecognizedGPCImage
Boolean — Optional — Default: false

Decides whether to show a "GPC detected" image when GPC is detected for a consumer on their subsequent visits (second visit onwards). This image is shown at the bottom right of the webpage by default, but its location can be controlled using CSS.

showRecognizedGPCImage parameter example
showFormForUnsubmittedDSR
Boolean — Optional — Default: false

Decides whether to show the intake or consent form on a consumer's subsequent visits if the form was previously shown but consent was not submitted. Consumers may choose to ignore the "Opt-Out" DSR submission during their first visit when GPC is detected. If this flag is set to true, the GPC banner continues to display on subsequent visits as long as GPC is still active on the browser and the Opt-Out was not submitted previously.

showFormForUnsubmittedDSR parameter example
isFinancialParticipant
Boolean — Optional — Default: false

Set to true if the consumer visiting your website is participating in a financial incentive program. When true, the GPC banner shows specific content for Financial Participants.

isFinancialParticipant parameter example
showFormOnDisabledSecondVisit
Boolean — Optional — Default: false

Decides if an Opt-in form is to be shown when GPC was ON during the previous visit but is OFF in a subsequent visit. The form shown is the same as the Opt-Out form. If this flag is turned ON, the intake form must therefore support both Opt-Out and Opt-in DSRs.

showFormOnDisabledSecondVisit parameter example
TrustArc  ·  Individual Rights Manager — GPC Script Parameters  ·  www.trustarc.com