# How to: Classic lead form with download

**URL:** <https://community.modx.com/t/how-to-classic-lead-form-with-download/3513>\
**Category:** General\
**Tags:** formit\
**Created:** [January 18, 2021, 3:02pm UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513 "2021-01-18T15:02:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilja-web](https://community.modx.com/user_avatar/community.modx.com/ilja-web/32/138_2.png) [@ilja-web](https://community.modx.com/u/ilja-web)\
**Post date:** [January 18, 2021, 3:02pm UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/1 "2021-01-18T15:02:26Z")

</div>

Fellow Modxers,

I want to create a simple file download page. The user enters his/hers details and then proceed to a PDF.

The form I can build with Formit, no prob there. I could create a static resource and redirect to that resource after a successful submit.

My question is, how can I have some statistics on the download. I want to match the download count versus the an ad performance.

Any ideas?

---

<div class="post-metadata">

**Author:** ![bobray](https://community.modx.com/user_avatar/community.modx.com/bobray/32/46_2.png) [@bobray](https://community.modx.com/u/bobray)\
**Post date:** [January 18, 2021, 3:30pm UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/2 "2021-01-18T15:30:14Z")

</div>

Take a look at the first two extras [here](https://modx.com/extras/browse/?category=&search=download) if you haven’t already. They may do what you want, and if not, it might save you time to modify one or both of them.

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [January 18, 2021, 4:01pm UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/3 "2021-01-18T16:01:55Z")

</div>

If you are using FormIt anyway, you could maybe make use of the [formitsaveform](https://docs.modx.com/3.x/en/extras/formit/formit.hooks/formitsaveform) hook and use that data or count of submitted forms, etc. I don’t think it delivers that by default but maybe with some tweaking this could be a useful start. Just an idea though.

---

<div class="post-metadata">

**Author:** ![ilja-web](https://community.modx.com/user_avatar/community.modx.com/ilja-web/32/138_2.png) [@ilja-web](https://community.modx.com/u/ilja-web)\
**Post date:** [January 19, 2021, 12:46pm UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/4 "2021-01-19T12:46:58Z")

</div>

Did not know countTrackula, will check it out thanks!

---

<div class="post-metadata">

**Author:** ![ilja-web](https://community.modx.com/user_avatar/community.modx.com/ilja-web/32/138_2.png) [@ilja-web](https://community.modx.com/u/ilja-web)\
**Post date:** [January 19, 2021, 12:47pm UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/5 "2021-01-19T12:47:19Z")

</div>

This was my fallback option. Thanks!

---

<div class="post-metadata">

**Author:** ![lucy](https://community.modx.com/user_avatar/community.modx.com/lucy/32/43_2.png) [@lucy](https://community.modx.com/u/lucy)\
**Post date:** [January 19, 2021, 2:47pm UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/6 "2021-01-19T14:47:31Z")

</div>

> [@ilja-web](#):
>
> Did not know countTrackula, will check it out thanks!

I just want to take a moment to TRULY appreciate whoever came up with that extra name.  
🧛

---

<div class="post-metadata">

**Author:** ![quentin100](https://community.modx.com/user_avatar/community.modx.com/quentin100/32/1100_2.png) [@quentin100](https://community.modx.com/u/quentin100)\
**Post date:** [January 20, 2021, 10:37am UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/7 "2021-01-20T10:37:49Z")

</div>

If you are tracking downloads vs Ad Performance, should you not use tracking code from the Ad serving site, eg. If you are using AdWords, use their tracking code or use Google Tag Manager/Google Analytics to track the number of Downloads, and link that to the Ad. This way you can link multiple Ads to the same PDF and track which one converts the most, rather than creating multiple forms/static reseources to track the ad.

---

<div class="post-metadata">

**Author:** ![ilja-web](https://community.modx.com/user_avatar/community.modx.com/ilja-web/32/138_2.png) [@ilja-web](https://community.modx.com/u/ilja-web)\
**Post date:** [January 21, 2021, 9:08am UTC](https://community.modx.com/t/how-to-classic-lead-form-with-download/3513/8 "2021-01-21T09:08:22Z")

</div>

Thanks for the tip! I use gtag manager.
