Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

Email Marketing Tracking Domain

Mike Peters, 07-09-2009
Whenever you send an email broadcast / autoresponder or system-message with SPI, your emails are delivered via dedicated ip-addresses.

As part of our ongoing effort to optimize delivery rates, in addition to using dedicated ip addresses, we also dynamically update all the links in your email messages to use a custom tracking domain.



For example, the following email message:

Quote:
Hi {%firstname%},

Please visit www.somedomain.com for more information about our program.

Sincerely,
John Doe, Company Name
www.mywebsite.com

will be converted to -

Quote:
Hi {%firstname%},

Please visit www.spilnk.com/CODE1 for more information about our program.

Sincerely,
John Doe, Company Name
www.spilnk.com/CODE2

All links in the message body are automatically replaced with the tracking-domain, so that your message contains outgoing links to a single domain, which we manage the email-reputation for.

You can use your main website domain-name for tracking, or you can register a new generic domain.

To setup your own tracking domain, use one of two options:

Redirecting an entire domain/subdomain

Setup a CNAME record in domain DNS settings, to redirect to spilnk.com


mydomain
.com. IN CNAME spilnk.com.

Using a sub-folder under your primary website domain

Create a new directory under your website and call it 'r' (short for redirect)

Place this index.php file under that directory:


$url
= substr($REQUEST_URI,2);
Header("Location: http://spilnk.com$url");

Now update your web server config file, to redirect all 404's under /r to index.php

If you're using NGinx, this setup will do the trick:


  server
{
   
listen  1.2.3.4:80;
   
server_name www.mydomain.com *.mydomain.com;
 
   
# set regular docroot
   
location /
    {
     
root /home/mydomain.com/htdocs/;
     
index index.php index.html index.htm;

     
error_page 404 = /index.php;
    }

   
location ~* .(php)$
    {
     
fastcgi_intercept_errors on;
     
     
error_page 404 = /r/index.php;

     
fastcgi_pass backend;
     
fastcgi_index index.php;
     
fastcgi_param SCRIPT_FILENAME /home/mydomain.com/htdocs/$fastcgi_script_name;
      include    /
etc/nginx/fastcgi_top.conf;
     
fastcgi_param DOCUMENT_ROOT  /home/mydomain.com/htdocs/;
      include    /
etc/nginx/fastcgi_bottom.conf;
    }
 
   
location /r
   
{
     
root /home/mydomain.com/htdocs/r/;
     
index index.php;
     
     
error_page 404 = /index.php;
     
     
fastcgi_pass backend;
     
fastcgi_index index.php;
     
fastcgi_param SCRIPT_FILENAME /home/mydomain.com/htdocs/r/index.php;
      include    /
etc/nginx/fastcgi_top.conf;
     
fastcgi_param DOCUMENT_ROOT  /home/mydomain.com/htdocs/;
      include    /
etc/nginx/fastcgi_bottom.conf;
    }
  }

And if you're using Apache, this will do the trick:


  RewriteEngine On
  RewriteCond
%{REQUEST_URI} ^/r/
 
RewriteRule ^(.*)$ /r/index.php [NC]
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions