Commerce Tools

MariZanchetta
Contributor

Payment link click tracking on GA4

SOLVE

Hi, I'm using Stripe + Hubspot to sell tickets to an event. 

 

I would like to track on GA4 the clicks on the payment link, when the user starts the checkout process, and also the final click to make the purchase.

 

Does anyone know how to do this? The payment link shows as an "app.hubspot" URL, so Google Tag Manager won't recognise as my own domain and therefore I'm not able to track it as a regular link click.

 

many thanks!

 

1 Accepted solution
DianaGomez
Solution
Community Manager
Community Manager

Payment link click tracking on GA4

SOLVE

Hi @MariZanchetta

 

Thanks for reaching out to the Community!

 

There are a few specific locations in Google Analytics where you can view the data, depending on your individual setup. I have attached some example screenshots for reference:

 

  • The page title on the checkout page is structured as "Checkout with <Company Name>." You should be able to find relevant data when sorting by page title (see attached screenshot for an example).

  • Each checkout session has a unique URL that begins with "/payments/purchase." While you cannot group by a unique URL, you can still access the data related to these sessions.
  • It's important to note that every time a contact completes a checkout using a payment link, a new URL is generated. Due to this, it is not recommended to filter based on URLs. Using the page title for filtering would be a more effective approach.

I hope this helps 😊

 

Best,

Diana


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


¿Sabías que la Comunidad está disponible en Español?
¡Participa hoy en conversaciones en el idioma de tu preferencia,cambiando el idioma en tus configuarciones!

View solution in original post

0 Upvotes
5 Replies 5
semens
Participant | Gold Partner
Participant | Gold Partner

Payment link click tracking on GA4

SOLVE

The simple solution would be for Hubspot to just allow us to add GTM to the iframe like they do with GA. I don't understand why this isn't an option. Hubspot, please add this feature so that we can accurately set up tracking for purchases.

0 Upvotes
NGohil
Member

Payment link click tracking on GA4

SOLVE

Hello @MariZanchetta ,

I have the same issue, Can you please explain how you set up the tracking for the GA4?

Does this solution work for you when the site is built with another CMS and using the Hubspot payment link?
https://knowledge.hubspot.com/website-pages/integrate-google-analytics-with-hubspot-content

I want to track the purchase and implement the same method but not sure it will work.


0 Upvotes
MariZanchetta
Contributor

Payment link click tracking on GA4

SOLVE

Hi @NGohil ,

 

My website is hosted within Hubspot, it's our CMS,so not sure how it'd be for a website built with other CMS.

 

What I've done (and hopefully you can as well even if using another CMS) is that I used the option to redirect the user to another page after completing the purchase process. So I send them to a "payment confirmation thank you page", and for that page I created a pageview event on GA4 which I will consider as a conversion. Not super accurate since theuser may refresh the page and that would count as a second conversion, but that's the solution I found.

 

hope that helps 🙂

0 Upvotes
MariZanchetta
Contributor

Payment link click tracking on GA4

SOLVE

Hi @DianaGomez , thanks for your response. Will have a look into it.

I meant more like being able to create Events and Key Events to track the number of ticket purchases.
However, I did find a way to track this as I have now created a customised Payment Confirmation page, so I can track the number of page views of that page.

 

thank you, 

DianaGomez
Solution
Community Manager
Community Manager

Payment link click tracking on GA4

SOLVE

Hi @MariZanchetta

 

Thanks for reaching out to the Community!

 

There are a few specific locations in Google Analytics where you can view the data, depending on your individual setup. I have attached some example screenshots for reference:

 

  • The page title on the checkout page is structured as "Checkout with <Company Name>." You should be able to find relevant data when sorting by page title (see attached screenshot for an example).

  • Each checkout session has a unique URL that begins with "/payments/purchase." While you cannot group by a unique URL, you can still access the data related to these sessions.
  • It's important to note that every time a contact completes a checkout using a payment link, a new URL is generated. Due to this, it is not recommended to filter based on URLs. Using the page title for filtering would be a more effective approach.

I hope this helps 😊

 

Best,

Diana


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


¿Sabías que la Comunidad está disponible en Español?
¡Participa hoy en conversaciones en el idioma de tu preferencia,cambiando el idioma en tus configuarciones!
0 Upvotes