To add a Data Hook, click the Data Hooks tab and follow our Data Hooks guide.
The Data Hook below shows one way to normalize country codes in your data. The JavaScript should work as-is, and you can even copy and paste it int your own list of Data Hooks in your data template.
Since all Data Hooks must be attached to a data template, feel free to use the sample data template (and sample data) below to test out the Data Hook above.
Feel free to use our country code sample data to see the Data Hook in action.