How does the tracking feature work? I have sent a mail out in HTML with tracking enabled, how ever, opens are not being tracked.

Comments

joncup’s picture

Priority: Normal » Minor
Status: Active » Closed (fixed)

was my fault, apache redirect problem, sorry

dwightery’s picture

I'm also trying to use tracking, however the embedded image link is getting the wrong path. Instead of the website url, it's returning the filesystem path on the link,

<img src="http:///web/fmc/www.fmc-inc.net/index.php?q=mailout/track/44/1232460905/1e73108f4708b3c4..." width="0" height="0" />

looking in the code, this is where it seems to build this path:

www:/web/fmc/www.fmc-inc.net/modules/mailout# grep image.gif *
mailout.module: $image = drupal_get_path('module', 'mailout') .'/image.gif';
mailout.module: drupal_set_header('Content-Type: image/gif');
mailout_send.inc: 'gif' => 'image/gif',
mailout_send.inc: $final_email_body .= "\nOnly local images are allowed.';
www:/web/fmc/www.fmc-inc.net/modules/mailout#

I was going to edit the .inc file to fix it, but is it possible i have a setting wrong somewhere? I'm using mailout version "mailout-5.x-1.0-rc2"

dwight.

dwightery’s picture

fixed this myself. I had my files folder outside of my webroot directory, and had to set the files to be "private" (served by drupal) instead of public (served by apache). Path reference to files is now properly encoded in the html.

dw.

dwightery’s picture

another quick update. I had switched themes, and this seemed to break the filepath reference in this setup. I had to set it to public, save, back to private, save, and it was ok after that.

dwight.