Mautic Community Forums

Title (Mr, Mrs) vs Page-Title

Page-Title and Title for Salutation bite’s

How to track correctly?

Code:
$query = array( 'url' = $_SERVER['REQUEST_URI'], 'title' = 'MyHomePage'; '????' = 'Mr'; 'firstname' => 'John', 'lastname' => 'Smith' ); $encoded = urlencode(base64_encode(serialize($query))); $trackingPixel = 'http://my.mautic.com/p/mtracking.gif?d=' . $encoded;

Page-Title and Title for Salutation bite’s
How to track correctly?

$query = array( 'url' = $_SERVER['REQUEST_URI'], 'title' = 'MyHomePage'; '????' = 'Mr'; 'firstname' => 'John', 'lastname' => 'Smith' ); $encoded = urlencode(base64_encode(serialize($query))); $trackingPixel = 'http://my.mautic.com/p/mtracking.gif?d=' . $encoded;

Hi, good question. There should be a Lead Field in Mautic for salutation. Make sure the field is publicly updatable. Mautic should save it correctly. Here is the code which process the lead field from the tracking pixel URL:

https://github.com/mautic/mautic/blob/staging/app/bundles/PageBundle/Model/PageModel.php#L432

Hello escopecz,

this is exactly my problem, the salutation field in Mautic is named “title” like tracking for the page title. How to differ it in the tracking?
Please see my example again.

Ok, I understand what you mean. Quick fix would be to create a different lead field for salutation. For the proper fix, create a GitHub issue.