The "Shorten URL" action within the URL Shortener App by Integration Glue allows you to transform long URLs into compact, easy-to-share links. This action is useful for improving the aesthetics and functionality of URLs, especially when they need to be shared in emails, social media posts, or printed materials.
The action takes a long URL and shortens it into a smaller, more manageable link, which can help reduce clutter and make it easier for recipients to access the intended webpage. This is particularly helpful when dealing with URLs that have long query parameters or are difficult to read or share.
This action is particularly useful when:
- You need to share a link on social media and want to save space or make it look cleaner.
- You are sending emails or messages where a long URL might seem unprofessional or overwhelming.
- You want to track the performance of a link (using the shortened version) to measure click-through rates or engagement.
- The service to use for shortening the URL (Bitly) This option allows you to choose the URL shortening service
- Your API key To interact with the chosen URL shortening service (like Bitly), you'll need to provide your API key.
How to get the API key:
If you're using Bitly, you can get your API key by signing into your Bitly account and navigating to your settings or developer section to generate a new token. - Your domain is where you would specify your custom Bitly domain (if you have one), such as
yourbrand.bit.ly
. If you don’t have a custom domain, you can use the default Bitly domain - Long URL This is the URL that you want to shorten.
- Property to set shortened URl into This is where the shortened URL will be saved once the action is executed. Select a HubSpot property where the shortened URL should be saved. If you don’t have a suitable property, you can create a new custom property to store the shortened URL.
Here’s a step-by-step guide to setting up the "Shorten URL" action in the URL Shortener app by Integration Glue:
Step 1: Add the Action to Your Workflow
- Go to your HubSpot account and navigate to the workflow where you want to add the action.
- Add a new Action and select Shorten URL from the list of available actions.
Step 2: Choose the URL Shortening Service
- Service to Use for Shortening the URL: Choose the shortening service you want to use. For example, Bitly.
- If you’re using a custom shortening service, select it from the available list.
Step 3: Enter Your API Key
- API Key: To authenticate your shortening service, you’ll need an API key.
- For Bitly: Go to your Bitly account, navigate to the Developer section (usually found in settings), and create a new OAuth Access Token or find your API Key.
- Paste your API key into the field provided in the action setup.
Step 4: Specify Your Custom Domain (Optional)
- Your Domain: If you have a custom Bitly domain (e.g.,
yourbrand.bit.ly
), enter it here.- If you do not have a custom domain, you can leave this field empty and the default domain will be used.
Step 5: Enter the Long URL
- Long URL: Enter the URL you want to shorten.
- If the URL is stored in a HubSpot property (e.g., a contact's website), select the appropriate property from the dropdown list.
- Alternatively, you can manually enter a URL in this field.
Step 6: Choose the Property to Store the Shortened URL
- Property to Set Shortened URL Into: Choose the HubSpot property where you want the shortened URL to be saved.
- You can use an existing property, such as a URL field, or create a new custom property for this purpose.
Step 7: Save the Action
- After completing the setup, click Save to add the action to your workflow.
- Ensure the workflow is activated to begin shortening URLs when the trigger conditions are met.
Step 8: Test the Action
- Run a test to ensure that the URLs are being shortened and saved correctly in the specified property.
- Check the record where the shortened URL is stored to verify that the action works as expected.