If you're on Linux you'll need to use a .htaccess =file to set the Content-Type within the directory that your image.tmpl temp=late is served from:
--00032555a8aab39c9b04a90d99e8--
Associated Messages, from the most recent to the oldest:
--00032555a8aab39c9b04a90d99e8Content-Type: text/plain; charset=UTF-8Hi all,I use the following to track email open rates and other stats. Obviouslyyou'll need to embed the code for your setup.- Tom1. Embed the following image tag in your HTML email template:
you need to ensure the user_id and email campaign_id are passed to thetemplate.2. Code for image.tmpl
[!][/!]
[text]exportFilePath=../images/emails/[/text]
[text]exportFile=blank.gif[/text][hideif
[url][rID][/url]=
[url][raw][rID][/raw][/url]][replacedb=../../data/db_massmailer/massmailerLogOpen.db&append=T&autonumber=rID]rCREATEDATE=
[math]{
[date]}[/math]&rCREATETIME=
[time]&sCONSTITUENTID=
[url][rID][/url]&sMAILCAMPAIGNID=
[url][cID][/url]&sUSERAGENT=
[url][getmimeheadername=User-Agent][/url]&sREFERER=
[url][getmimeheadername=Referer][/url]&sIPADDRESS=
[url][ipaddress][/url][/replace][/hideif]
[text]line_ending=%0D%0A[/text][returnRaw binarybody=[exportFilePath][exportFile]]HTTP/1.0 200OK
[unurl][line_ending][/unurl]
[!][/!]Status: 200
[unurl][line_ending][/unurl]
[!][/!]Content-Type: image/gif
[unurl][line_ending][/unurl]
[!][/!][/returnraw]If you're on Linux you'll need to use a .htaccess file to set theContent-Type within the directory that your image.tmpl template is servedfrom:AddType image/gif tmpl--00032555a8aab39c9b04a90d99e8Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableHi all,
I use the following to track email open rates an=d other stats. =C2=A0Obviously you'll need to embed the code for your s=etup.
- Tom
1. Embed the following image tag in your HTML email template:
you need to ensure the user_id and email campaign_id ar=e passed to the template.
2. Code for image.tmpl
[!]<!-- HAS_W=EBDNA_TAGS -->
[/!]
[text]exportFilePath=3D../images/emails/=[/text]
[text]exportFile=3Dblank.gif[/text]
<=div>[hideif
[url][rID][/url]=3D
[url][raw][rID][/raw][/url]][replace db=3D..=/../data/db_massmailer/massmailerLogOpen.db&append=3DT&autonumber==3DrID]rCREATEDATE=3D
[math]{
[date]}[/math]&rCREATETIME=3D
[time]&sCO=NSTITUENTID=3D
[url][rID][/url]&sMAILCAMPAIGNID=3D
[url][cID][/url]&s=USERAGENT=3D
[url][getmimeheader name=3DUser-Agent][/url]&sREFERER=3D[ur=l][getmimeheader name=3DReferer][/url]&sIPADDRESS=3D
[url][ipaddress][/u=rl][/replace][/hideif]
[text]line_ending=3D%0D%0A[/text]
<=div>[returnRaw binarybody=3D[exportFilePath][exportFile]]HTTP/1.0 200 OK[un=url][line_ending][/unurl]
[!]