All Collections
Integrations
Zapier
Create links with Zapier
Create links with Zapier
Jeff avatar
Written by Jeff
Updated over a week ago

Thanks to Switchy integration with Zapier. 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 Zapier 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 and click on "Continue".


C. Choose account

1. Either click on "Sign-in to Switchy.io" (if it's the first connection) or select the workspace you want to connect to.

2. A pop-up will open, input your Switchy API Key in the dedicated field and click on "Yes, continue"

3. Click on "Continue".


D. Set up action

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

Select in the drop-down list the custom domain or subdomain that you want to use.

Example: hi.switchy.io


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.

UTM Tags

Input here the UTML tags that you want to add to your link.

Example: Campaign: spring_sale ; Medium: cpc ; Source: facebook ; Term: running+shoes ; Content: logolink


Note

Input here an informational note for your link.

Example: This link is a test for Zapier.


Deep Linking

Select in the drop-down list either to enable (=True) or disable (= False) the deep-linking.

Example: False

🚧 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 (=True) or disable (= False) link cloaking.

Example: True

🚧 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

πŸ’‘ Only one tag per line.


Favicon

Input the URL of the favicon of your link.


GDPR popup

Select in the drop-down list either to enable (= True) or disable (= False) the display of GDPR popup.

Example: True

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


Password protect - Status

Select in the drop-down list either to enable (= True) or disable (= False) the password protection.

Example: True


Password protect - Password

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 (= True) or disable (= False) embed widget.

Example: True

🚧 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

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

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.

πŸ’‘ Only one link and percentage per line.

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

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


Geolocation

Input here the destination link(s) and the corresponding countries (2-digit ISO country codes).

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.

πŸ’‘ Only one link and country per line.

🌎 Find the list of country codes on this page.

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


Link Expiration: Status

Select in the drop-down list either to enable (= True) or disable (= False) link expiration.

Example: True


Link Expiration: Date - Time

Input here the date and time of the link expiration.

Example: 2022-10-26T16:56

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

🚧 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.


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.


E. Test the integration

When you're done editing your link's options, you can click on the "Continue" button and test your Zap.

To so so, click on the "Test & Review" button, at the bottom of the page.

Make sure that the test is executed 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 Zapier.

Did this answer your question?