# Track Button Click by Signed In User

**URL:** <https://community.glideapps.com/t/track-button-click-by-signed-in-user/22163>\
**Category:** Ask for Help\
**Created:** [February 3, 2021, 7:56am UTC](https://community.glideapps.com/t/track-button-click-by-signed-in-user/22163 "2021-02-03T07:56:44Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 4, 2021, 10:57am UTC](https://community.glideapps.com/t/track-button-click-by-signed-in-user/22163/29 "2021-02-04T10:57:57Z")

</div>

> [@Darren\_Murphy](#):
>
> Question: Is there more than one offer that a user could redeem? If yes, then it gets a little more complicated 🙂

Just in case the answer to this is yes, here is what I would do:

- Drop the idea of a boolean in your User Profiles sheet, as you won’t need it
- Create a new table/sheet, call it something like “Redemptions”
- This table will contain one row per user, per offer redeemed, and should contain least 3 columns:
  - User ID (a value that uniquely identifies each user, and will allow you to create a relation back to your User Profiles sheet. I’d recommend using the RowID)
  - Offer ID (same as above, but to your Offers sheet)
  - Redeemed At (a date/time column, representing when the user redeemed that offer)

Getting back to the screen where you present the offers…

- When a user taps the button to redeem an offer, change your action so that it adds a new row to your Redemptions table:
  - UserID (whatever you use to uniquely identify the user)
  - OfferID (ditto for Offers)
  - Redeemed At (current date/time stamp)

- The counter to track how many times each offer has been redeemed is no longer necessary, as you can do the following:
  - Create a multi-relation between your Offers & Redemptions sheets (Offers.ID → Redemptions.OfferID)
  - Then create a Rollup column in your Offers sheet through that relation (relation → OfferID → count). This will give you a count for each offer.

- I’d still keep the User Specific column in your Offers table to track when each user redeems each offer, as that’s probably the simplest method.

---

_[View the full topic](https://community.glideapps.com/t/track-button-click-by-signed-in-user/22163)._
