thanks for your reply and sorry with the missing code!
Your tip with the publicly updatable setting in the field helped and now the tracking code sets these values.
The only thing I don’t understand is why the tracking code was setting the primary company although it was not a public updateable field. Maybe an error in mautic?
And let me ask one more question: Is it also possible to set a segmet for an contact via the js-tracking-snipped? Or event start a campaign for a contact?
You could set a tag via the tracking code and create a segment using that maybe? Manage segments | Mautic
The campaign can then start based on the segment