Documentation and Tutorials for your BestWebSoft products

User Guide

Shortlink Plugin

Shortlink

User Guide            

 

WordPress version:

5.7 *

Shortlink version:

1.5.9 *

* When using other versions some differences are possible to occur

** Screenshots were taken from a PC

Table of Contents

1. Introduction

2. Shortlink Settings

2.1. Google API Console

2.1.1. Google API Console Keys

2.1.2. API Key For Your Firebase Dynamic Links Account

2.1.3. Create Google Client ID and Client Secret

2.1.4. Redirect URI

2.2. Firebase Console

2.2.1. Domain Link for your google project

2.4. General

2.4.1. Scan Website

2.4.2. External Links

2.5. Miscellaneous Settings

2.5.1. Track Usage

2.5.2. Default Settings

2.6. Custom Code

3. Links

3.1. Add New

3.2. Bulk actions


You can download “Shortlink” plugin here:

https://bestwebsoft.com/products/wordpress/plugins/google-shortlink/.

1. Introduction

Note: Сlick the “Save Changes” button in order to apply any changes.  

1.1. Open your WordPress Admin Dashboard and find the menu on the left.

1.2. Select “Shortlink” > “Settings” in your dashboard menu to open the “Shortlink Settings” page.

2. Shortlink Settings

Use the options of the “Shortlink Settings” tab to make the general settings of the plugin.

2.1. Google API Console

Use the options of the “API Console” section to activate the API keys obtained from Google.

2.1.1. Google API Console Keys

Paste the obtained from Google keys into the “API Key For Your Firebase Dynamic Links Account”, “Client ID” and “Client Secret” fields.

2.1.2. API Key For Your Firebase Dynamic Links Account

To start your work with the “Google Firebase” service gets the API key for the Firebase API first. 

2.1.2.1. Go to https://code.google.com/apis/console page and click the “Create Project ” button.

2.1.2.2. Go to the “API Library” and click the “Firebase Dynamic Links API” section.

 

2.1.2.3. Click the “Enable” button to activate the API library.

2.1.2.4. Open the “Credentials” tab and click the “Credentials in APIs&Services” link.

2.1.2.5. Select the “API key” item from the “Create credentials” drop-down list.

2.1.2.6. The API key for browser application will be created.

2.1.2.7. Click the “Restrict key” button to prevent unauthorized use of the key in production.

2.1.3. Create Google Client ID and Client Secret

To start your work with the “Google Firebase” service create “Google Client ID” and “Client Secret”.

2.1.3.1. Open the “OAuth consent screen” tab and choose the “External” user type. Click the “Create” button.

2.1.3.2. The “OAuth Consent Screen” settings page will open. Select the email address from the dropdown list, enter your product name (i.e. name of your website) and save changes.

2.1.3.3. Switch back to the “Credentials” tab. Click the “Create credentials” and select the “OAuth client ID” from the dropdown menu.

2.1.3.4. Select the “Web application” value for the application type option and click the “Create” button.

2.1.3.5. You will see your Client ID and Client Secret values in the “OAuth client” window.

2.1.3.6. Copy the obtained keys, paste them into the “Client ID” and “Client Secret” fields found on the plugin’s “Shortlink Settings” page and save changes.

2.1.4. Redirect URI

To start your work with the “Google Firebase” service copy “Redirect URI” link to your project.

2.1.4.1. Copy the “Redirect URI” link.

2.1.4.2. Click the “Edit” icon to change the OAuth 2.0 client IDs.

 

2.1.4.3. Click the “Add URI” button and paste the copied “Redirect URI” into its field.

2.2. Firebase Console

Use the options of “Firebase Console” section to get Domain Link for your website, register your project by the Firebase service first.

2.2.1. Domain Link for your google project

Use the field of the “Domain Link for your google project” to paste the domain link of your project that obtained from Google Firebase and to hook up the service to your site.

2.2.1.1. Follow the https://console.firebase.google.com link and click the “Create a Project” button.

2.2.1.2. Fulfill the four steps of project registration and click the “Add Firebase” button.  

2.2.1.3. If the project is successfully created you will see the “Your new project is ready” notification.  

2.2.1.4. Open the “Grow” > “Dynamic Links” page and click the “Get started” button.


2.2.1.5. Enter the domain for your short links (i.e. name of your website) and click the “Continue” button.

2.2.1.6. You will see the notification, informing that your domain name “has been verified and approved for use”. Click the “Finish” button.


2.2.1.7. Copy the registered domain link, open the “Shortlink Settings” page of the plugin and paste the link into the field of the “Domain Link for your google project” option. Save changes.

2.4. General

Use the options of the “General” section to scan website for links, replace and restore external links.

2.4.1. Scan Website

Use the “Scan Website” option to scan your website for new external links.

2.4.1.1. After the scanning, all the long/short links of your website will be displayed on the “Links” page.

2.4.2. External Links

Use the “External Links” option to replace, restore and clean the shortlink database.

2.4.2.1. Click the “Replace Now” button to replace all the external long links of your website by the short ones.

2.4.2.2. After saving changes the replaced links will look as follows.

2.4.2.3. Click the “Restore Now” button to restore all the external links of the website with the consideration of the updates.

2.4.2.4. After saving changes the restored links will look as follows.

2.4.2.5. Click the“Restore & Clean DB Now” option to restore all links of your website and clear the database.

2.5. Miscellaneous Settings

Use the options of the “Miscellaneous Settings” tab to make the settings regarding the track usage and default settings.

2.5.1. Track Usage

Enable the “Track Usage” option to allow tracking plugin usage anonymously.

2.5.2. Default Settings

Click the “Restore Settings button to reset all the settings made previously and revert them to the default ones.


2.4.2.1. Click the “Yes, restore all settings” button to confirm the procedure.

2.6. Custom Code

Use the “Custom code” tab to insert a CSS, PHP or JavaScript code. To activate a custom code, enable the “Activate custom … code” option and save changes.

3. Links

Use the “Links” page tab to see and to edit the long links selectively found on your website.

3.1. Add New

Click the “Add New” button to create new shortlinks and place them on the table.

3.1.1. Paste a long link into the “Type long links here” field, click the “Get short links” button and you’ll get the short link in the “Short links will appear below” field.

3.2. Bulk actions

Use the bulk actions (replace/restore/delete) from the dropdown of the “Table of links for Firebase Dynamic Links” to apply the settings for selected links. 

3.2.1.1. Choose the “Restore” bulk action to update the chosen long link.

3.2.1.2. Choose the “Replace” bulk action to replace any long link on a post/page by a short one.

3.2.1.3. After the application of the bulk actions, the long link will be replaced by the short one. 

Thank you!

Help & Support

Visit our Help Center if you have any questions — https://support.bestwebsoft.com/

Services

We provide additional services such as WordPress themes & plugins development,

graphic design, custom programming.

Contact us now to get a free quote — https://bestwebsoft.com/contacts/


Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/bws/public_html/dev/wp-includes/functions.php on line 5420