Tracking & Image Domains Setup

Table of Contents:

Tracking & Image Domains Setup

Intro 

(info) Note: You will need access to your DNS (Domain Name Server) in order to setup the below CNAME records. Your DNS is typically used for managing your website domain and email sender domain.

  • Ongage requires that you setup at least 1 custom tracking domain (aka branded tracking domain) for your entire account. Ongage does not offer a generic shared tracking domain, you will need to setup a custom/branded one.
  • The tracking domain is used to track open and click stats.
  • The image domain is optional, but recommended if you'd like to make use of the convenient built-in Ongage image library. Alternatively you can host the images you'll use in your HTML emails on an external internet server.
  • (warning) It is recommended to only use the Ongage open and click tracking, and turn it off in any of your outbound SMTP vendor accounts (e.g., SendGrid, SparkPost, Mailgun, etc.). Double tracking, for a variety of reasons is not considered good practice by ISP mailbox providers (e.g., Gmail, Outlook, etc.) and may impact on deliverability.
    • (info) There is an exception to the above, if you're using SparkPost deliverability services, then you'll want to keep tracking on both in SparkPost and Ongage. The latter is set via the SparkPost vendor connection.

What is a custom/branded tracking/image domain

  • That means that you need to configure a tracking domain (and optionally an image domain) based on a domain that you own.

Best practice is to base your tracking/image domain on your sending domain

It's recommended best practice that the tracking and image sub-domains share the same primary domain as your sending domain
For example if your sending domain is mybrand.com, then your tracking domain would be along the lines of trk.mybrand.com. Thus the term branded tracking domain.
For deliverability and consistent branding this is best practice.
There could be some edge cases where one might not want to follow this rule, and instead setup a custom tracking domain, that is different from your sending domain.

Note about DNS propagation 

(warning) Note: any time that DNS changes are made (like in the below) , you need to wait for DNS propagation to complete. DNS propagation usually takes a few hours, but in rare cases can take longer if it's a brand new domain, anywhere from 24 hrs - 72 hrs (i.e., 1 - 3 days).

Sample CNAME DNS  Configuration 

Configure the image and tracking domains in your DNS with the following values:

The Ongage Tracking and Image Domain Setup Page 

(info) The Tracking & Image Domains page is where you configure this in Ongage.
There it will display the exact account ID number you need to use instead of your_account_id indicated above.
Here's how this page looks for Account ID 8882. Each account will have a different account id number indicated, for your account, it will be your account id number.


Many DNS management systems might require that you also have a "." at the end of each definition.

(warning) The word "ongage" cannot be part of the image or tracking domain definition.

Advanced Settings

Assign Tracking Domain Per List

You can add and allocate different tracking domains to different lists in Ongage. In order to do so, please follow steps given below.

  1. Go to Image and Tracking Domains >> Click on "Advanced" and go to "Domains per List"
  2. From the list of Tracking Domains added, Click on the edit button for which you want to assign the domain per list. You can also search for the list using the search option.




  3. On the pop up opened, select the Tracking and Image Domain.

(info) Note: Definitions made on the list level will overrule definitions made on the ESP level.

Assign Tracking Domain Per ESP Connection

You can add and allocate different tracking domains to different ESP connections used in Ongage. In order to do so, please follow steps given below.

  1. Go to Image and Tracking Domains >> Click on "Advanced" and go to "Domains per ESP"
  2. From the list of Tracking Domains added, Click on the edit button for which you want to assign the ESP Connection. You can also search ESP Connection using the search option.


  3. On the pop up opened, select the Tracking and Image Domain.


(info) Note: You can configure domains per ESP for ESPs that are defined in your account. These settings will overwrite, for the chosen ESP, any previous domain settings that were done in the account level. For that you must first need to setup the ESP to enable the domain setup per ESP.

Configuration to Match Sending Domain and Tracking Domain for each list

In order to make sure the same Tracking Domain and Sending Domain is used for each campaign from each list, you can follow the steps given below.

  1. Setup ESP Connection with the From Address/Reply Address with the Sending Domain you want to use. For example: info@domain.com where domain.com is your sending domain.
  2. Configure a Tracking domain with a sub-domain of the sending domain. For example, configure track.domain.com as Tracking Domain as per the instructions shared above in this page. 
  3. Allocate the configured tracking domain with the relevant ESP connection where you have used the same Sending Domain as per the steps shared above.
  4. Go to List Management >> Edit List in which you want to Match the Sending Domain and Tracking domain >>> Allocate the ESP connection configured above and Save.


  5. Follow the same process from Step 1 to Step 4 above for each list in your account where there will be a List Specific ESP connection and a relevant tracking domain configured for each of your list.

(info) Note: While setting up new ESP connections with separate sending domains, you can use the same API credentials. 

Self Service SSL Tracking & Image Domains Setup

Intro 

In recent years (since 2019-2020 and even before) it's become best and widespread practice to use SSL/HTTPS links in your email messages. SSL/HTTPS in general has become a universal standard for the Internet, email included. You can now setup your custom/branded Ongage tracking domains with SSL, without any need to go through Ongage Support and Ongage's back-end DevOp services. Following you'll find instructions on how to go about that.

In order to proceed with the setup, please ensure that you have the following:

  1. Ask Ongage Support to enable your account for SSL certificate upload (depending on your Ongage package and number of domains you need to setup with SSL, this might come with an additional cost).
  2. SSL certificate
  3. Private key
  4. Public key

(info) Note: To validate the above files received from your domain service provider and check the domains associated with certificate files, you can use online SSL decoders like https://www.sslshopper.com/certificate-decoder.html and make sure the files and respective domains are aligned.

(info) Note: If you want more than 1 domain to use SSL/HTTPS, you'll have to acquire a Multi-Domain SSL certificate.

How to Add SSL Certificates for you Domains 

Once you have these, please follow these steps to add the SSL certificate to your domains:

  1. Log in to your Ongage account. 
  2. Navigate to 'Tracking & Image Domains'.
  3. Create a new domain or click on Upload SSL Certificate to an existing one.


  4. Add the files of the SSL: Private key, Public key and Certificate then Click on Save.


  5. Once you will Click on “Save”; a pop up will be there which will show CNAME records that you need to add at your DNS side. Pop up like below where it will have yourdomain.com >> CNAME >> <value>


  6. Copy that CNAME record and add in DNS as mentioned in the instructions.
  7. Once the DNS values are verified, your domains will be with SSL and ready to use.

SSL Expiration Date Notifications

The Ongage platform is designed to send alerts about expiring certificates:

  1. One month
  2. Seven days
  3. And one day before the expiration date

To the notification email, the customer set in their Ongage account (see: the Account Settings How-To Guide, for more information about the account notification email).

Appendix

Check DNS Verification & Propagation of your Image & Tracking Domains

This is a great tool to check your tracking domain DNS CNAME statushttps://www.whatsmydns.net/
In additional to verifying the status it also checks DNS propagation around the globe. 
Enter your tracking domain and choose the CNAME option to check verification and DNS propagation for that domain. On the results page it should point to: account_number.trkpnt.ongage.net.
 

(warning) Note: any time that DNS changes are made, you need to wait for DNS propagation to complete. DNS propagation usually takes a few hours, but in rare cases can take longer if it's a brand new domain, anywhere from 24 hrs - 72 hrs (i.e., 1 - 3 days).

 

DNS Query Command

nslookup

  • nslookup -type=cname track.yourdomain.com 8.8.8.8 will show you the status of your tracking (and or image domain).
  • nslookup -type=ns yourdomain.com 8.8.8.8 will show you where your domain is hosted and which DNS management system you need to use to set your tracking and image domains.

Google Help about creating a CNAME record 

  • Each hosting service has a slightly different way to create CNAME records. When in doubt, check with the particular company you're using for additional instructions.
  • Google here provides info for: GoDaddy, ix web hosting, 1and1, EveryDNS.net, Yahoo!SmallBusiness, No-IP, DNS Park, Other hosting services.

For more info about DNS CNAME definitions 

You can also read more about CNAME setup in Google Support

(info) Please also see our Knowledge Base chapter named: Email Authentication Protocols

CNAME in Cloudflare not getting Verified after Configuration

In order to avoid this from happening, follow the steps below:

  1. Go to the Cloudflare DNS setup screen.
  2. Select the CNAME
  3. And before adding the Record click on the orange cloud icon to make it grey.

About SSL and Tracking 

  • The default Ongage tracking domain is implemented using regular http.
  • You can setup your Ongage tracking with SSL – see earlier section above on this matter. 
  • Note: there could be additional costs related to SSL tracking setup.

Regarding HSTS Policy and Tracking Domains

There's another scenario, where you're using Ongage's regular http tracking, but your destination landing page is https (i.e., SSL) and not http. If you choose setup your tracking domain to be under that https landing page domain (e.g., trk.landingpage.com) then you'll need to make sure that the top level domain does not have an HSTS policy, or choose a different top level domain for your tracking that does not have an HSTS policy.

In order to check and delete HSTS settings in Chrome:

1. Enter URL chrome://net-internals/#hsts
2. Lookup subdomain under "Query Domain"
3. To specifically delete the HSTS policy from your domain Go to chrome://net-internals/#hsts > Enter your sub-domain/domain name under Delete domain security policies > press the Delete button.
4. Go to chrome://settings/clearBrowserData > tick the box Cached images and files > click the button Clear data.