add tracking image
This commit is contained in:
parent
aad08c4f12
commit
5a52eeaf3a
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ module.exports.updateLinks = (campaign, list, subscription, serviceUrl, message,
|
|||
// insert tracking image
|
||||
let inserted = false;
|
||||
let imgUrl = urllib.resolve(serviceUrl, util.format('/links/%s/%s/%s', campaign.cid, list.cid, encodeURIComponent(subscription.cid)));
|
||||
let img = '<img src="' + imgUrl + '" width="1" height="1">';
|
||||
let img = '<img src="' + imgUrl + '" width="1" height="1" alt="Tracking Image">';
|
||||
message = message.replace(/<\/body\b/i, match => {
|
||||
inserted = true;
|
||||
return img + match;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue