https://github.com/qurle/param.js
Short your parameters with this simple script
https://github.com/qurle/param.js
shortener url utm
Last synced: 5 months ago
JSON representation
Short your parameters with this simple script
- Host: GitHub
- URL: https://github.com/qurle/param.js
- Owner: qurle
- License: bsd-3-clause
- Created: 2021-10-20T21:49:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-06T13:15:12.000Z (over 4 years ago)
- Last Synced: 2025-10-11T12:23:21.918Z (8 months ago)
- Topics: shortener, url, utm
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# param.js
Simple script that allows you to share short link like `example.com?i` and redirect user to anything you want (ex. `example.com?utm_source=instagram&utm_medium=bio&utm_campaign=inst`)
## Why
We often have to share our link. Put them in bio, send with messages, attach them to posts. And sometimes we have to put some URL parameters. Like UTM codes. They're clumsy, looooong and they overshadow what we really want to show: our perfect beautiful website address.
[qurle.net?utm_source=github&utm_medium=param-js-readme&utm_campaign=paramjs](https://qurle.net?utm_source=github&utm_medium=param-js-readme&utm_campaign=paramjs) is yuck.
[qurle.net?g](https://qurle.net?g) is much better.
## How to use
Just put in your server directory and connect by `` tag. You definitely can put it in your `` as soon as it should redirect user instantly.
Change redirect object with URL-parameters you need (the example is given) and you're on!
## Parameters
Here's and example of your redirect object:
```
redirect = {
"s": "utm_source=test&utm_medium=test&utm_campaign=test",
"e": "utm_source=email&utm_medium=sign&utm_campaign=email",
"f": "utm_source=figma&utm_medium=bio&utm_campaign=figma",
...
}
```
This means that `example.com/whatever?e` will redirect to `example.com/whatever?utm_source=email&utm_medium=sign&utm_campaign=email`
## Problem? Idea? Kind words?
I accept feature suggestions and ideas to improve this script.
Or you can contact me via e-mail at [nick@qurle.net](mailto:nick@qurle.net?subject=param.js) or at [qurle.net/contact](https://qurle.net/contact).
## <3