Skip to main content
Create links with Pabbly
Jeff avatar
Written by Jeff
Updated over 2 years ago

Thanks to Switchy integration with Pabbly. You can automatically create a link on Switchy when a trigger is activated.

You can for example set up an automatic creation of Switchy link when you post on Wordpress or when you add a new row to a Google Sheet.
​

Let's see how to add Switchy in your Pabbly workflows, and how to activate the different options on your links.

🚧 Before you start, you'll need to set up an action or event that will trigger the creation of a Switchy link.

A. Choose App

Type "Switchy" in the search bar and select the Switchy App.


B. Action Event

Select the option "Create Link" in the drop-down list.


C. Connect

1. Click on the "Connect" button.

2. Select either the option " Add New Connection" or "Select Existing Connection"

3. If you selected " Add New Connection", input your Switchy API Key in the dedicated field and click on "Save"


D. Add Link Options

You'll then have to fill the different fields to set up the options of the link that will be automatically created.

Let's review those different fields.

Destination Link

Input here the link you want to shorten.

🚧 This field is mandatory.


Custom Domain

Input here the custom domain or subdomain that you want to use.

Example: hi.switchy.io

🚧 Make sure the domain/subdomain has been added to your Switchy account as a custom domain.


Slug

Input here the slug of your link.

Example: homepage

πŸ’‘ If you leave this field blank, we will automatically generate a random slug.


Pixel ID

Select in the drop-down list the pixel(s) you want to add to your link.

Example: Facebook, LinkedIn, Twitter

πŸ’‘ The pixels displayed in the drop-down list are the one that you saved on your Switchy account.


Folder

Select in the drop-down list the folder of your Switchy dashboard where you want to store your link. The list of folders will be retrieved from your account.

Example: πŸ“š Content


Title (Metadata)

Input here the metadata title of your link, it will be displayed in your link preview.

Example: Discover Switchy, the most advanced URL shortener.

πŸ’‘ If you leave this field blank, it will be automatically fetched.


Description (Metadata)

Input here a description of your link, it will be displayed in your link preview.

Example: With Switchy you can easily shorten your links, collect detailed information about the ones who click, retarget them, and much more!

πŸ’‘ If you leave this field blank, it will be automatically fetched.


Picture (Metadata)

Input here an URL of an image that will be the metadata picture of your link, it will be displayed in your link preview.

πŸ’‘ If you leave this field blank, it will be automatically fetched.


Note

Input here an informational note for your link.

Example: This link is a test for Pabbly.


Deep Linking

Select in the drop-down list either to enable or disable the deep-linking.

Example: Disable

🚧 Make sure that the destination website/app is included in Switchy’s deep-linking catalog.


Link Cloaking

Select in the drop-down list either to enable or disable link cloaking.

Example: Enable

🚧 If this option is enabled and your destination link doesn't allow iFrame, you won't be able to create the link.


Tags

Input here tag(s) for your link.

Example:ads,social,email

πŸ’‘ You need to pass comma separated values.


Favicon

Input the URL of the favicon of your link.


GDPR popup

Select in the drop-down list either to enable or disable the display of GDPR popup.

Example: Enable

🚧 You need to have a privacy pop-up set up on your Switchy account to be able to enable this option.


Password: Status

Select in the drop-down list either to enable or disable the password protection.

Example: Enable


Password: Value

Input here the password you want to set for the link.

Example: 123456789

🚧 This field is required if password protection is enabled.


Embed Widget: Status

Select in the drop-down list either to enable or disable embed widget.

Example: Enable

🚧 If this option is enabled and your destination link doesn't allow iFrame, you won't be able to create the link.


Embed Widget: Value

Select in the drop-down list the embed widget you want to add to your link. The list of embed widgets will be retrieved from your account.

Example: Typeform

🚧 This field is required if embed widget is enabled.


Rotator - A/B Testing: Destination Link

Input here the destination link(s) of your rotator.

πŸ’‘ You need to pass comma separated values for multiple line items.

πŸ’‘ You can't add rotator redirection if geolocation redirection is already used.


Rotator - A/B Testing: Percentage

Input here the percentage values for the rotator.

Example: 20,30

In our example, this means that the user will be redirected to https://google.com with a 20% probability, to https://facebook.com with a 30% probability and to https://switchy.io with a 50% probability.

🚧 The total value of the percentages added shouldn’t exceed 100.

πŸ’‘ You need to pass comma separated values for multiple line items.


Geolocation: Destination Link

Input here the destination link(s) for geolocation.

πŸ’‘ You need to pass comma separated values for multiple line items.

πŸ’‘ You can't add geolocation redirection if rotator redirection is already used.


Geolocation: Country

Input here 2-digits country code(s) for geolocation.

Example: FR,US

In our example, this means that the user located in France will be redirected to https://switchy.io/fr, and user from the United States will be redirected to https://switchy.io/en.

🌎 Find the list of country codes on this page.

πŸ’‘ You need to pass comma separated values for multiple line items.

🚧 This field is required if geolocation is enabled.


Link Expiration: Status

Select in the drop-down list either to enable or disable link expiration.

Example: Enable


Link Expiration: Date - Time

Input here the date and time of the link expiration.

Example: 2022-05-20 17:01:30

πŸ’‘ Make sure to use the format above for your date and time.

🚧 This field is required if link expiration is enabled.


Link Expiration: Timezone

Select the timezone of the link expiration in the drop-down list.

Example: (GMT +1:00) Brussels, Copenhagen, Madrid, Paris

🚧 This field is required if link expiration is enabled.


Link Expiration: Destination Link

Input here the destination link after the expiration date.

🚧 This field is required if link expiration is enabled.


E. Test the integration

When you're done editing your link's options, you can save the settings and test the integration.

To so so, click on the "Save & Send Test Request" button, at the bottom of the page.

Make sure that the Test Request worked properly and that your link has been created inside your Switchy account.

Well done Switcher! πŸ§™β€β™‚οΈ You have successfully automated the creation of a Switchy link through Pabbly.

Did this answer your question?