Tracking People Clicking In

Hi,

I have built a small wordpress widget that floats in the bottom right hand corner of my client's website(s), so that their users can click it to make a payment to them... which simply redirects the user to my payment platform / website where my customer has an account.

FLOW - widget sits on clientwebsite.com and when they click it, the customer is brought to mysplink.com/abc (their payment profile on splink)

QUESTION
I need to be able to track how many users land on mysplink.com from a widget that sits on another site.

I was thinking of using something like mysplink.com/abc/ref=widget-abc and then i can view that in Google Analytics?

01 - would this approach be the best way to do this?

02 - any other advice on approaches would be greatly appreciated

Thank you in advance for your help.
oo7mlAsked:
Who is Participating?
 
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Or you can just look at the referent (where click originated) which will give same info, without rewriting all your URLs.

In GA + GTM there's also a way to... collapse multiple urls together, based on query parameters.

For example, let's say you use mysplink.com?widget=id&arg1=foo&arg2=foo as your link format.

In GA + GTM you can collapse all mysplink.com?widget=id links together, so your metrics give numbers on a widget ID basis, rather than split up by unique query parameters.
0
All Courses

From novice to tech pro — start learning today.