How to Track read emails?
At the bottom of this article you'll be able to find:
- import file containing this ready to use, use-case (only few post-import configurations needed).
- video tutorial, on how to import this use-case & what needs to be done after importing it.
- Email marketing campaigns - Tracking email opens and clicks can help marketers measure the success of their campaigns and make adjustments to improve their effectiveness.
- Sales outreach - Knowing when a prospect opens an email can help sales teams time their follow-up communications and improve their chances of converting the lead.
- Job applications - Tracking when a potential employer opens your email can give you an idea of how interested they are in your application.
- Legal notices - Tracking when a legal notice is opened can help ensure compliance and provide an audit trail for legal proceedings.
- Newsletters - Tracking email opens and clicks can help newsletter publishers understand which topics are most engaging to their readers.
- Support requests - Tracking when a support request email is opened can help support teams prioritize their responses and improve customer satisfaction.
- Internal communications - Tracking email opens can help managers ensure that important messages are being read by their teams.
- And many other scenarios!
A tracking pixel is a 1x1 pixel image that gets placed in the header or the footer of the sent email so that when the recipient reads/opens the email the image gets downloaded and you can track the downloads of the image.
Obviously, it is important to keep a correlation between the image and the emails sent, so you can uniquely identify each email.
You need to create 2 processes in PROCESIO and 1 Webhook:
- The first process sends the email with the tracking pixel in it and logs into a database the sent email. The tracking pixel is actually a PROCESIO webhook URL that, when downloaded, it triggers the 2nd process;
- The second process logs the event in the database.
We need to create first the Webhook, by selecting the option βI want to manually define webhook payloadβ. You can give it any name you want.
In the βPayload definitionβ section paste the following JSON structure and click βGenerate data modelβ:
Now, copy the βWebhook URLβ and save the webhook!
The first process looks like in the following image:
ο»Ώ
Define the variables that you are going to use in this process as in the following image:
ο»Ώ
Now configure the actions as follows:
EmailGuid (Utilitary/Generate GUID action) - it generates a unique ID (GUID) for the email that is about to be sent.
Register Email (Database/SQL Server/Execute command action) - it logs in a database the email that is about to be sent so you can reference it later.
ο»Ώ
You will need to define your SQL server credentials to connect to a database where to store data in a table.
This action executes a stored procedure in the database which in turn saves the information to a table.
To create the required objects in the database, run the following script:
Encode tracking URL (Strings/String Url Encode action) - it encodes the payload to be sent via the webhook to the 2nd process
ο»Ώ
String Concat (Strings/String Concat action) - it concatenates the Webhook URL you copied when creating the webhook and the encoded payload, as shown in the image bellow.
ο»Ώ
Send Email (Send Email action) - it sends the actual email.
ο»Ώ
You will need to define your SMTPserver credentials to send emails with PROCESIO.
Keep in mind that you need to mark βBody is HTMLβ and in the Body, you need to have this:
Where
Is the actual Tracking Pixel, basically adding the Webhook URL + Payload as an image to the email so that the email client will try to download the image triggering the webhook which in turn will trigger the 2nd process to run.
The 2nd process looks like in the following screenshot:
ο»Ώ
We need to assign the created webhook to this process so that the webhook will trigger this process when an email is read.
Go to the right-hand sidebar, to the βWebhooksβ menu and click βAssign webhookβ, as seen in the screenshot:
ο»Ώ
Now, select the webhook you created and give a name to the βLocal variable nameβ:
Now, define the variable βQueryOUTβ that you are going to use in this process as in the following image:
ο»Ώ
You will notice that the βTrackEmailβ variable coming from the webhook is already visible and you will be able to use it in the process.
Now configure the actions as follows:
Track email in DB (Database/SQL Server/Execute command action) - it logs in a database the email ID that was read.
ο»Ώ
You will use the same SQL server credentials you used in the 1st process to connect to a database where to store data in a table.
The command is:
This action executes a stored procedure in the database which in turn saves the information to a table.
To create the required objects in the database, run the following script:
Use below .procesio file, for importing this use-case dirctly to one of your workspaces (feel free to create a new workspace dedicted for this example).
By using the import file you will obtain this almost ready to use, use-case directly to the workspace. You won't have to follow all the above mentioned steps but only perform the import & some configuration adjustments depicted in the video below.
Video tutorial on how to import
Watch below youtube tutorial, in order to do the ncessarly adjustment post-import.
ο»Ώ
ο»Ώ
ο»Ώ
ο»Ώ
ο»Ώ