Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
Email Marketing Tracking DomainMike 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:
will be converted to -
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
Setup your domain to redirect to spilnk.com, or point it to this IP address: 174.36.170.90
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;
}
}
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
Setup your domain to redirect to spilnk.com, or point it to this IP address: 174.36.170.90
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;
}
}
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments
