A simple web app for easily creating Bitly shortened URLs that include parameters tracked in Google Analytics Custom Campaigns. Live demo at: https://jdmdig.it/cliqued
Cliqued is a simple (looking) web app for easily creating Bitly URLs that include parameters tracked in Google Analytics Custom Campaigns. We're looking to add other shortening services too, like goo.gl.
There is a demo avaliable for you to check out. See: https://jdmdig.it/cliqued.
NOTE: The demo is in "demo mode" so the short URL it generates is always the same and redirects right back to the demo itself. See the section below for how to disable demo mode.
Once you've downloaded the ZIP of this repo, navigate to the file in app/settings.php
to get started.
You'll want to descide on which URL shortening service you want to use. As of version 0.2, you can only choose "demo" or "bitly." Others will be coming, but you'll want to use Bitly. In "demo mode" the app always returns the same shortened URL which directs you back to the web app demo.
First off, you'll need to get your Bitly API Login and Key to use Bitly as your URL shortening service.
- Create a Bitly account (if you haven't already)
- Login to Bitly
- Click the Hamburger Menu
- Click Settings, then Advanced Settings, then API Support
- There, you can create or get your API Login and API Key
Next up, we'll want to make changes and updates to the web app settings file. You guessed it, these are made in the file, app/settings.php
.
- Open
settings.php
in your favorite editor. - Change
define("DEMO", **true**);
todefine("DEMO", **false**);
- Change
define("BITLY", **false**);
todefine("BITLY", **true**);
- Paste your Bitly API login into
define("API_USER", "**your bitly user name**");
(the bold part) - Paste your Bitly API key into
define("API_KEY", "**your bitly api key**");
(the bold part) - Leave the thing about
API_URL
alone.
Navigate to the web app and give it a go.
You can also change the name of the app, the version, and the GitHub repo/branch in settings.php
, if you're into that sort of thing.