# Using API to store page hit?

**URL:** <https://forum.mautic.org/t/using-api-to-store-page-hit/8296>\
**Category:** Product Support\
**Created:** [April 24, 2017, 7:01am UTC](https://forum.mautic.org/t/using-api-to-store-page-hit/8296 "2017-04-24T07:01:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [April 24, 2017, 7:01am UTC](https://forum.mautic.org/t/using-api-to-store-page-hit/8296/1 "2017-04-24T07:01:48Z")

</div>

Hi,  
  
  
  
I have a web app where I would like to track user action and perform drips based on those.  
  
  
  
I had this idea to drive users through stages (I can store them using Mautic API) but, then, found out that stages cannot be used as decisions in campaigns.  
  
  
  
Alternatively, I could base drips on page visits. The question here is, how can I generate a page hit using Mautic API ?  
  
  
  
Thanks,  
  
D.

---

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [April 24, 2017, 7:01am UTC](https://forum.mautic.org/t/using-api-to-store-page-hit/8296/2 "2017-04-24T07:01:48Z")

</div>

Hi,

I have a web app where I would like to track user action and perform drips based on those.

I had this idea to drive users through stages (I can store them using Mautic API) but, then, found out that stages cannot be used as decisions in campaigns.

Alternatively, I could base drips on page visits. The question here is, how can I generate a page hit using Mautic API ?

Thanks,  
D.

---

<div class="post-metadata">

**Author:** ![denispavliha](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@denispavliha](https://forum.mautic.org/u/denispavliha)\
**Post date:** [April 25, 2017, 9:34am UTC](https://forum.mautic.org/t/using-api-to-store-page-hit/8296/3 "2017-04-25T09:34:25Z")

</div>

Answering if anyone else will have same questions - I can mark contacts’ segments using API which means I can:

- add contacts to an action-specific segment using API
- process contacts from a campaign that is segment-based (and e.g. send an email)

Best,  
D.
