# Create an Download Event via API or JS

**URL:** <https://forum.mautic.org/t/create-an-download-event-via-api-or-js/9786>\
**Category:** Product Support\
**Created:** [October 26, 2017, 9:40am UTC](https://forum.mautic.org/t/create-an-download-event-via-api-or-js/9786 "2017-10-26T09:40:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wucherpfennig](https://avatars.discourse-cdn.com/v4/letter/w/db5fbb/32.png) [@wucherpfennig](https://forum.mautic.org/u/wucherpfennig)\
**Post date:** [October 26, 2017, 9:40am UTC](https://forum.mautic.org/t/create-an-download-event-via-api-or-js/9786/1 "2017-10-26T09:40:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![wucherpfennig](https://avatars.discourse-cdn.com/v4/letter/w/db5fbb/32.png) [@wucherpfennig](https://forum.mautic.org/u/wucherpfennig)\
**Post date:** [October 26, 2017, 9:40am UTC](https://forum.mautic.org/t/create-an-download-event-via-api-or-js/9786/2 "2017-10-26T09:40:14Z")

</div>

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
