UTM UP
Tutorials

How to capture UTM parameters with Javascript?

#utm#parameters#javascript

When promoting your website, one of the key challenges is tracking UTM parameters and passing them to forms or your CRM. While the internet is full of code snippets to handle this, not all of them are reliable or easy to use.

UTMUP.com offers a simple and effective solution to capture and work with UTM parameters on your site.

🔧 Step 1: Create an Account

Go to utmup.com, sign up for a free account, and add your website domain in the dashboard.

🧩 Step 2: Integrate the Tracker

Follow the integration guide to install the UTMUP tracking script on your website.

✅ Step 3: Done!

Once the tracker is integrated, UTM parameters will be automatically captured and made available through the utmup JavaScript object.


📦 How to Access UTM Parameters

After integration, you can retrieve the captured UTM parameters with a simple JavaScript call:

window.utmup.values(); 
// Example output:
// { 
//   "ga_client_id": "123456.78910", 
//   "first_source": "google", 
//   "first_medium": "cpc",
//   "first_term": "ad1",
//   ....
// }

A full list of available parameters is provided in our documentation.

← Back to Blog