Track Payment Links
Learn how to track Payment Links and related campaigns with URL parameters and UTM codes.
Track campaigns with UTM codes
You can use Urchin Tracking Module (UTM) codes to track how customers found your site when they pay using your payment link. You can add UTM codes as parameters in the query string of your URL. Payment Links support the following UTM codes: utm_source
, utm_content
, utm_medium
, utm_term
, and utm_campaign
.
Here’s what an example link looks like: https://buy.payske.com/test_eVa5nPg1j1wmfXq5kr?utm_medium=earned_email&utm_source=marketo&utm_campaign=campaign_a
To add UTM codes, specify redirect
as your confirmation behavior. When customers complete a payment, your redirect URL contains the UTM code parameters specified in your payment link URL.
Parameter | Description |
---|---|
utm_source | Identifies where the traffic originated (for example, a website name, social media, or a search engine). |
utm_content | Identifies what content your customer chooses. Use this parameter to distinguish between links that point to the same payment page. |
utm_medium | Identifies the marketing medium that accesses your payment link (for example, email, cost per click (cpc), or other methods). |
utm_term | Identifies specific search terms and keywords in your paid search ads. |
utm_campaign | Identifies your marketing campaigns using the payment link URL. |
UTM codes can be composed of alphanumeric characters, dashes, or underscores, and be any value up to 150 characters. Invalid values are silently dropped and your payment link continues to work as expected.
Streamline reconciliation with a URL parameter
You can simplify reconciliation with the client_reference_id
URL parameter. Use URL parameters in the query string of your payment link URL. Configure URL parameters directly from the Payske Dashboard. From the payment links page, click a specific link, then click Configure under URL parameters.
Parameter | Description | Syntax |
---|---|---|
client_reference_id | Use client_reference_id to attach a unique string of your choice to the Checkout Session. This can be a customer ID or a cart ID (or similar), and you can use it to reconcile the Session with your internal systems. If you add this parameter to your payment link, it’s sent in the checkout.session.completed webhook after payment completion. | client_reference_id can be composed of alphanumeric characters, dashes, or underscores, and be any value up to 200 characters. Invalid values are silently dropped, but your payment page continues to work as expected.Depending on how you share your Payment Links, they might show up in unexpected places. If you add a client reference ID to a payment link, make sure that it doesn’t include sensitive information or secrets such as passwords or API keys. Only share Payment Links that have URL parameters with intended recipients. |