A collection of Google Apps Script tools for working with Customer.io, starting with a bulk unsuppress tool.
This tool allows you to unsuppress multiple Customer.io people at once using data from a Google Sheet.
- Bulk unsuppress Customer.io people from a Google Sheet
- Automatic batching to respect API limits
- Deduplication of IDs
- User-friendly error handling and logging
- Easy to set up and use
-
Create a Google Sheet
- Create a new Google Sheet
- Name one sheet 'profiles' (or update the
SHEET_NAMEconstant in the script) - Add a column named 'id' containing Customer.io person IDs
-
Set up the Script
- Open the Google Sheet
- Go to Extensions → Apps Script
- Copy the contents of
unsupress.jsinto the script editor - Save the project
-
Configure API Credentials
- In the Apps Script editor, go to Project Settings → Script Properties
- Add a new property:
- Name:
CUSTOMER_IO_TRACK_API_KEY - Value: Your Customer.io credentials in the format
site_id:api_key
- Name:
-
Run the Script
- Return to your Google Sheet
- Refresh the page
- You should see a new menu item "Customer.io Tools"
- Click "Unsuppress People" to run the script
- The script will process all non-blank IDs in the 'id' column
- Duplicate IDs are automatically removed
- The script batches requests to stay within Customer.io's API limits
- Results are logged in the Apps Script execution log
- You can schedule the script to run automatically using Apps Script triggers
The script respects Customer.io's v2 Track API limits:
- Each request in a batch ≤ 32 KB
- Each /batch payload ≤ 500 KB
If you encounter errors:
- Check that your API credentials are correctly set in Script Properties
- Verify that your sheet has the correct name and column header
- Check the execution log for detailed error messages
- Ensure your IDs are valid Customer.io person IDs
MIT License - feel free to use and modify as needed.