[Blog](/blog-category/blog/) October 11, 2023

# Unlocking the Power of Custom URL Parameters with Scarf: A Comprehensive Guide

If you have not seen, a recent release of Scarf added the ability to track and report on custom URL parameters.

By Matt Yonkovit

![Unlocking the Power of Custom URL Parameters with Scarf: A Comprehensive Guide](/imported/social-og/9616dc848275cc69-dc9f0d31.png)

If you have not seen, a recent release of Scarf added the ability to track and report on custom URL parameters. 

Previously we covered how to track URLs, Links, and parameters for different use cases in a video on tracking DevREL activities using Scarf \[[watch here](https://www.youtube.com/watch?v=wlo7286ETMA)\]. In this video we showed you how to setup Scarf as a link shortener that can be tracked. In a very condensed explanation, Scarf acts as a URL gateway and redirects traffic to your final endpoint (video, download, website, blog, etc).   

Part of this setup required us to set up any parameters as part of the configuration, specifically as part of the route. For instance, if we wanted to pass a specific UTM tracking code to figure out where this download came from, we would have to configure a route to pass this. For instance:

![Supporting image 1 for Custom URL Parameters with Scarf](/imported/posts/1527e1cae4206ee9.png)

`<table style="height: 145px; border-color: #0572f1; margin-left: auto; margin-right: auto;" width="462">``<tbody>``<tr>``<td style="width: 453.333px;">``<p style="padding-left: 30px;">``<strong>`What is a UTM?`</strong>``</p>``<p style="padding-left: 30px;">``<em>`Learn More \[`<a href="https://en.wikipedia.org/wiki/UTM_parameters">`[https://en.wikipedia.org/wiki/UTM\_parameters](https://en.wikipedia.org/wiki/UTM_parameters)`</a>`\]`</em>``</p>``<p style="padding-left: 30px;">`UTM is basically a tracking parameter added onto a URL to help track and identify the source, attribute, or marketing campaign it originated from.`</p>``</td>``</tr>``</tbody>``</table>`

Here we created a UTM variable in the routes, allowing someone who accesses [https://l.hosbp.com/Spotify/thisisautm](https://l.hosbp.com/Spotify/thisisautm) for instance, to have their downloads not only tracked in general, but also tracked based on whatever UTM you passed. This could change to:  [https://l.hosbp.com/Spotify/thisisautm2](https://l.hosbp.com/Spotify/thisisautm2)

![Supporting image 2 for Custom URL Parameters with Scarf](/imported/posts/c8643cd9d1a3cb59.png)

This is great as it allows you to add specific details to links that allow you to get better insights into how your audience is downloading or interacting with your content.  You could pass back any number of unique data points. However prior to our recent change, tracking additional variables required you to create a route for every specific variable/combo you wanted to track. Additionally if you are using tools which build your parameter list (i.e.  website.com/?utm=x&source=social) it was not easy to incorporate these parameters into Scarf. The latest release fixes this. Now scarf will pull out and report on the variables passed to the URL and allow you to analyze that dimension of data.  

Take, for instance, our Spotify example.  Now if we pass in variables :

[https://l.hosbp.com/Spotify/?utm2=xxx&source=email&campaign=fall](https://l.hosbp.com/Spotify/?utm2=xxx&source=email&campaign=fall)

We will see each of the parameters available as reporting options within Scarf.  Additionally no route is needed to add additional parameters:

[https://l.hosbp.com/Spotify/?utm2=yyyy&source=social&campaign=summer&utm3=see\_no\_new\_route](https://l.hosbp.com/Spotify/?utm2=yyyy&source=social&campaign=summer&utm3=see_no_new_route)

![Supporting image 3 for Custom URL Parameters with Scarf](/imported/posts/ee77b82a89a10c13.png)

![Supporting image 4 for Custom URL Parameters with Scarf](/imported/posts/b17d3ff3e60c5dad.png)

So why is this important? Tracking additional parameters and data for your links, downloads, and other content enables you to more effectively analyze which channels are working and which channels are not. It also allows you to gain insight into how your users behave and where you can reach them.  

What are some interesting ways to use this?

1.  Tracking downloads from different channels:  
    a. Pass in the source of a download i.e.  blog, linkedin, docs, etc.
    
2.  Tracking links coming from social media to your external content:  
    a. Pass in the source of the link click to download:  i.e. Facebook, Linkedin, Twitter, etc.
    
3.  Tie back clicks and interactions to ad campaigns or spend:  
    a. I.e.  campaign fall\_2023, winter\_2023  
    b. This enables you to optimize spends.
    
4.  Tie back Scarf data to external systems, like CRMs or logins:  
    a. I.e.  username=john.doe or jane doe  
    b. Track partner links/downloads 
    

If you are looking to gain more intelligence around how you open source users interact with your project and download your software using link parameters in key situations can reveal interesting and helpful trends that can help you grow your user base and unlock open source qualified leads. Give Scarf a try and let us know how you use this feature.

Related Resources

[![](/imported/posts/open-source-ai-index-og.png)

Blog Aug 11, 2026

### Ollama Ahead of Azure? A New Leaderboard for Open Source AI Adoption

What Scarf's package data tells us about a fast-moving market.



](/post/a-new-index-for-tracking-open-source-ai/)[![](/imported/posts/company-unlocks-value-og.png)

Blog Jun 8, 2026

### Getting the Most Out of Your Company Unlock Credits

Company unlocks are most useful when you filter, size, sort, and schedule them around the organizations you actually care about.



](/post/how-to-maximize-the-value-of-your-company-unlocks/)[![](/imported/posts/maven-central-publishers-scarf-thumbnail.png)

Blog Jun 4, 2026

### What 3,600+ Maven Central publishers do after claiming their namespace on Scarf

Scarf has now onboarded 3,693 open source organizations from Maven Central as part of our partnership with Sonatype. We now have a meaningful signal on how these teams are leveraging Scarf most effectively.



](/post/what-3600-maven-central-publishers-do-after-claiming-their-namespace-on-scarf/)

Article Notes [**Browse all resources**

Search, categories, and latest Scarf writing.

](/resources)[**See pricing**

Understand how Scarf packages its offering.

](/pricing)
