Skip to content
Get started
Print & Mail
Integrations
Salesforce Marketing Cloud

Installation and Configuration

How to install and configure the PostGrid package in Salesforce Marketing Cloud, including permissions and pre-installation steps.

Before installing and configuring the PostGrid package in SFMC, ensure that you have the necessary permissions and access.

  • Admin access to SFMC.
  • PostGrid API credentials (Test and Live API Keys).
  • A configured SFMC Business Unit.
  • Access to Journey Builder, Email Studio, and Data Extensions.

Log in to Salesforce Marketing Cloud, click on your name in the top-right corner, and then click Setup.

Salesforce Marketing Cloud header with the user account menu open showing the Setup option

Search for the Installed Packages in the quick find box.

Salesforce Marketing Cloud Setup quick find box with Installed Packages search result

Click on New in the top-right corner.

Salesforce Marketing Cloud Installed Packages list with the New button in the top-right corner

Enter the package name and description, and click on Add Component.

Salesforce Marketing Cloud new package creation form with name and description fields and Add Component button

Select Journey Builder Activity.

Salesforce Marketing Cloud Add Component dialog with Journey Builder Activity selected

Enter the Name, Description, and Endpoint URL, and select Category as Messages.

Salesforce Marketing Cloud component configuration form with Name, Description, Endpoint URL, and Messages category fields

Select API Integration

Salesforce Marketing Cloud package component type selection with API Integration option

Select Server-to-Server.

Salesforce Marketing Cloud API integration type selection with Server-to-Server option highlighted

Select the checkbox for Data Extensions Read and Write permission, Click on the Save button to save the Package.

Salesforce Marketing Cloud API integration permissions with Data Extensions Read and Write checkboxes selected

Copy the Client Secret for future reference. This will be needed later.

Salesforce Marketing Cloud installed package details showing the Client Secret value to copy

Once the package is installed, configure and deploy the necessary Data Extensions and Cloud Pages.

Deploying Data Extensions and Cloud Pages using JSON files.

Section titled “Deploying Data Extensions and Cloud Pages using JSON files.”

Navigate to the Platform and Select Package Manager.

Salesforce Marketing Cloud Platform menu showing the Package Manager option

Navigate to the Deployment Tab in Package Manager.

Salesforce Marketing Cloud Package Manager with the Deployment tab selected

Click on Deploy and Upload a JSON File.

Salesforce Marketing Cloud Package Manager Deploy screen with a JSON file upload option

Click Next to validate the package.

Salesforce Marketing Cloud package deployment validation step with a Next button

Click Deploy to finalize the installation.

Salesforce Marketing Cloud package deployment finalization screen with a Deploy button

Navigate to Email Studio.

Salesforce Marketing Cloud navigation showing Email Studio in the platform menu

Click Subscribers and go to Data Extensions.

Salesforce Marketing Cloud Email Studio Subscribers menu with Data Extensions option

Check for the deployed Data Extensions:

  • PostGrid_Logging_Data
  • QRcode_Tracker_Visit_Details
  • PostGrid_Credentials_Data
  • Postcard_Tracking_Data
  • QRcode_Tracker_Visit
  • Tracker_Status_Logs
  • Selfmailer_Tracking_Data
  • PostGrid_Contact_Data
  • Letter_Tracking_Data

📘 Any additional fields added to the PostGrid_Contact_Data DE, apart from the key fields (First Name, Last Name, Company, Email Address, Address Line 1, Address Line 2, City, State, Country Code, PostalCode, SubscriberKey (Primary Key) ), will be treated as merge variable fields.

You need to store your PostGrid live and test the API key to the PostGrid_Credentials_Data data extension. This ensures that your credentials are automatically retrieved each time you access the custom activity within Journey Builder.

You can still change the API key from the custom activity interface in the journey for testing purposes or a one-time session for that specific Journey.

Navigate to Contact Builder.

Salesforce Marketing Cloud navigation showing Contact Builder in the platform menu

Go to Data Extensions click on PostGrid_Webhook_Tracking and go to PostGrid_Credentials_Data.

Salesforce Marketing Cloud Contact Builder Data Extensions showing the PostGrid_Credentials_Data extension

Go to Records and click Add Record.

Salesforce Marketing Cloud PostGrid_Credentials_Data Records tab with the Add Record button

Set the Name as Postgrid-Cred

Set the TrackerURL as https://api.postgrid.com/print-mail/v1/trackers/

The values for LiveAPIKey and TestAPIKey can be found here.

To get the Client_Id go to Setup > Search for “Installed Packages” > Click on Installed Packages > Navigate to the PostGrid package you installed earlier and copy the Client ID

Salesforce Marketing Cloud Installed Packages page showing the PostGrid package with Client ID to copy

Set the Client_Secret to the value that was copied when installing the package.

Then click Save.


In order to receive tracking data webhooks must be setup. A few preliminary steps are needed in SFMC.

Click on Web Studio and go to Cloud Pages.

Salesforce Marketing Cloud Web Studio navigation showing the Cloud Pages option

Go to Postgrid Tracking Collection and go to Properties for the PostGrid-Tracking file.

Salesforce Marketing Cloud Cloud Pages showing the PostGrid Tracking Collection with the PostGrid-Tracking file Properties

Save and Publish the file and then copy the URL.

Salesforce Marketing Cloud Cloud Pages Save and Publish confirmation with the tracking page URL to copy

In your PostGrid account, navigate to the webhook page from the menu. Click on the Create Webhook button in the Top-right Corner.

PostGrid dashboard Webhooks page with the Create Webhook button in the top-right corner

Add description in the Description field and paste the cloud Page URL in the URL field. Ensure the Payload Format has been changed to JSON.

Add the Event Types that you would like to receive order data for and click Create.

PostGrid Create Webhook form with Description, URL, Payload Format, and Event Types fields filled in

You will now receive tracking data in your PostGrid_Webhook_Tracking data extensions.

Salesforce Marketing Cloud PostGrid_Webhook_Tracking data extension showing received tracking records