Mautic Community Forums

Create an Download Event via API or JS

Hi



I am currently working on a third party integration with mautic. Contacts synchronization & tracking works but currently I am struggling with creating an evens if a user downloads an file on the third party system…



The download itself triggers a hook on the third party system and I can react on that but I do not know how to create an event in mautic after that.



In my opinion there would be two ways to solve this issue:


  1. JS: track the click in advance and manually trigger an event (how is this event in mtc.js called? it is not an pageview…)
  2. Serverside: some api stuff, lot of work. it seems like overkill to me…



    Any feedback is highly appreciated



    best regards



    wucherpfennig

Hi

I am currently working on a third party integration with mautic. Contacts synchronization & tracking works but currently I am struggling with creating an evens if a user downloads an file on the third party system…

The download itself triggers a hook on the third party system and I can react on that but I do not know how to create an event in mautic after that.

In my opinion there would be two ways to solve this issue:

  1. JS: track the click in advance and manually trigger an event (how is this event in mtc.js called? it is not an pageview…)
  2. Serverside: some api stuff, lot of work. it seems like overkill to me…

Any feedback is highly appreciated

best regards

wucherpfennig