Skip to content

The submitted form data is not bound to the current contact by the mtc_id cookie #13

@directpromo

Description

@directpromo

Hi @escopecz

Please help me...

There is a tracking domain domain.com and a separate domain where mautic is installed . From the tracking domain I send the my form via ajax to your script.

The matic form always creates a new contact with a contact id different from the current mtc_id cookie value in the browser.

Trying to take the current cookie under tracking domain via javascript: MauticJS.getTrackedContact()

So I get a cookie under the tracking domain: mtc_id, mtc_sid, magic_device_id

And then pass them to the mautic form via:
curl_setopt($ch, CURLOPT_COOKIE, 'mtc_id=270; mtc_sid=r4pl1u2vgsdfdcf09bdo; magic_device_id=r4pl1u2vgsdfdcf09bdo; matic_session_id=r4pl1u2vgsdfdcf09bdo;')

It doesn't work :(

Found the reason that it works if you pass additionally the current (correct) cookie value music_referer_id
curl_setopt($ch, CURLOPT_COOKIE, 'mtc_id=27709; mtc_sid=r4pl1u2vgsdfdcf09bdo; magic_device_id=r4pl1u2vgsdfdcf09bdo; matic_referer_id=656565; mautic_session_id=r4pl1u2vgsdfdcf09bdo;');

Is it a script bug, a mautic bug or am I doing something wrong?

Maybe there is a way to get the value of matic_referer_id on the tracking domain if the mautic is located on a separate domain?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions