# Payment Link Attribution

**URL:** <https://community.hubspot.com/t/payment-link-attribution/129166>\
**Category:** CMS Development\
**Tags:** payments-links\
**Created:** [April 3, 2025, 4:22am UTC](https://community.hubspot.com/t/payment-link-attribution/129166 "2025-04-03T04:22:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sasha-A8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sasha-a8/32/5385_2.png) [@Sasha-A8](https://community.hubspot.com/u/Sasha-A8)\
**Post date:** [April 3, 2025, 4:22am UTC](https://community.hubspot.com/t/payment-link-attribution/129166/1 "2025-04-03T04:22:31Z")

</div>

Is there a way to attribute payment links to specific sources or campaigns?

We’re selling tickets to an event and have about 8 - 10 sponsors. Each sponsor is driving traffic to our event page.

The event page is on an external site, and the “Get Tickets” button links to a HubSpot Payments link.

Once the user makes a purchase, how do we know which sponsor brought them to that link?

I tried creating JS script that grabs a user’s URL parameters and sends them to a custom event. I tested with a purchase with **utm\_source=test** in the payment link URL and that info did not make it into the contact record. Also, injecting code directly into the payment page seems not possible for obvious security reasons.

I also dug around in Commerce hub and didn’t see anything that would indicate where that lead came from.

So, how do we tell which sources/sponsors/posts are creating the most sales?

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [April 4, 2025, 7:21am UTC](https://community.hubspot.com/t/payment-link-attribution/129166/2 "2025-04-04T07:21:07Z")

</div>

Hi @Sasha-A8, I hope that you are well!  
Great question, thanks for asking the HubSpot Community!  
To start with I’d like to share these resources that might be of interest:  
- [Understand attribution reporting](https://knowledge.hubspot.com/reports/understand-attribution-reporting)  
- [Use campaign attribution reports](https://knowledge.hubspot.com/campaigns/use-campaign-attribution-reports)  
- [Understand HubSpot’s traffic sources in the web traffic analysis tool](https://knowledge.hubspot.com/reports/understand-hubspots-traffic-sources-in-the-traffic-analytics-tool)  
Also, I’d love to put you in touch with our Top Experts: Hi @stefen, @jonchim, @RCooke2, @MariZanchetta, @HJarboe, @RSchweighart, @JYoung17 and [@Syeda\_Fatima](https://community.hubspot.com/t5/user/viewprofilepage/user-id/114957) do you have suggestions to help @Sasha-A8, please?  
Have a beautiful weekend and thanks so much in advance for your valuable contributions!  
Bérangère

---

<div class="post-metadata">

**Author:** ![nickdeckerdevs1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nickdeckerdevs1/32/5198_2.png) [@nickdeckerdevs1](https://community.hubspot.com/u/nickdeckerdevs1)\
**Post date:** [April 8, 2025, 7:12pm UTC](https://community.hubspot.com/t/payment-link-attribution/129166/3 "2025-04-08T19:12:37Z")

</div>

I’m not sure if you are able to inject anything into the payment pages -- I haven’t used one in a while.  
I think the best work around would be to modify your payment links -- and use a “bumper” page to assist with this.  
The concept is set up a landing page, [domain.com/payment-redirect?attribution](http://domain.com/payment-redirect?attribution)\_name=sponsorName  
Whereattribution\_name is a new property you create, and sponsorName is the identifier you give your sponsors  
On this page you have a form, email address, and yourattribution name (as a hidden field). During your testing keep it visible so you can make sure the name injects into the form.  
On form submission, set the redirect to the payment link. This will add the attribution name to the contact’s email address.  
There are some other ways using dynamic pages, workflows using the page they viewed, and setting the property like that, but it might be a bit more complicated for a one off type system.  
A really nice +1 on this would be to use dynamic pages and give one to each of your sponsors, they then have some dynamic information in there about them, and then a “pay now” with the email address on that page, redirecting to payment link.  
I’m sure there are some other ways to do this as well, this is just off the top of my head.

---

<div class="post-metadata">

**Author:** ![Sasha-A8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sasha-a8/32/5385_2.png) [@Sasha-A8](https://community.hubspot.com/u/Sasha-A8)\
**Post date:** [May 7, 2025, 8:01pm UTC](https://community.hubspot.com/t/payment-link-attribution/129166/4 "2025-05-07T20:01:57Z")

</div>

That could work, but not very good UX to make a user enter their contact details twice. What we did was to add a custom event to the thank you page that the user sees after finishing payment. It’s not bulletproof but works okay if HubSpot can recognize the contact.

---

<div class="post-metadata">

**Author:** ![Daxchemist](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/daxchemist/32/43208_2.png) [@Daxchemist](https://community.hubspot.com/u/Daxchemist)\
**Post date:** [July 7, 2025, 4:29pm UTC](https://community.hubspot.com/t/payment-link-attribution/129166/5 "2025-07-07T16:29:35Z")

</div>

Hey @Sasha-A8 ! Hope you’ve been well!  
We solve this problem a lot with different referrers for paid registration with [event•hapily](https://event.hapily.com). Here’s one way that works:

1. Each sponsor gets their own link to the event registration page. You’d use the URL parameter like you mentioned, and have that as a hidden property on the form.

2. After they submit the form to register, they’d be redirected to the payment page per usual.

3. Once paid and the associated successful payment is on the Contact, you can finalize registration (potentially update the Registrant object’s payment status to PAID and even the Sponsor Referrer).

Now you can pull reports on the Registrant object to see how many people were referred and sponsor attributed revenue as well!

---

<div class="post-metadata">

**Author:** ![Sasha-A8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sasha-a8/32/5385_2.png) [@Sasha-A8](https://community.hubspot.com/u/Sasha-A8)\
**Post date:** [July 9, 2025, 2:00am UTC](https://community.hubspot.com/t/payment-link-attribution/129166/6 "2025-07-09T02:00:59Z")

</div>

Thanks Dax. Great to see your face again 🙂

That’s an interesting solution. I’ll keep it in mind for future event-based builds.
