ShortLink pada template blogger merupakan fitur yang cukup sering digunakan, untuk itu APMODY juga menyediakan kemudahan dalam instalasi ShortLink dan SafeLink diblog.
Bloggers and blog users are certainly familiar with the names ShortLink and Safelink. SafeLink is generally used to hide or secure the original link by bypassing one or more pages that are created in such a way that visitors can later access the destination URL or original link.
And the main goal for bloggers to install SafeLink on blogs is to increase income from advertising. Especially for those who create downloadable content, it is very helpful in increasing advertising income on their blog.
To create a SafeLink on a blog, it has actually been widely spread on the internet, but most of the tutorials provided are very complicated for beginners, especially those who don't understand coding. For this reason, APMODY provides convenience in installing SafeLink on blogs. We also combine the ShortLink feature in it, so you can easily manage or share the results of this safelink generated URL.
Create ShortLinks on blogs
To enable the ShortLink feature, you need a Firebase project from Google utilizing the Dynamic Links service. here are the steps:
If you already have a Firebase project, you can immediately jump to step 6.
- visit the Firebase console page.
- create a new project, by clicking the Add project menu.
- in the Project name input form, fill in the name of your project and follow the existing naming rules, then click Continue.
- in the Enable Google Analytics for this project section you can deactivate it, because at this time we don't need it. so just click Create project.
- wait a few moments, and the project has been successfully created.
- open your project, then pay attention to the start page or overview where there is a statement Get started by adding Firebase to your app. click the
</>
icon for Web. - in the App nickname input form in the Add Firebase to your web app > Register app popup, enter the app nickname according to your wishes. then click Register app and wait a moment.
- at the Add Firebase SDK stage, select the Use a <script> option.
- pay attention to the script settings below, copy and save the value of the key object
apiKey
. you will need it for the settings in the blog widget. - click Continue to console. You will be redirected to the overview page again.
- look for and click the Engage dropdown menu, select Dynamic Links.
- click the Continue anyway button. The Add URL prefix popup will appear.
- at the Create checklist stage / check Continue Anyway, then click the Continue button.
- in the Configure stage, enter the Domain input column, fill in the domain name you want. You can use the free subdomain
page.link
from Firebase, for example:domainname.page.link
. then click Continue. - if successful, save the domain name that was created earlier for widget configuration needs on the blog. then click Finish.
- creating already ShortLink is complete. continue to settings on Blogger.
How to enable the SafeLink widget
following are the steps to activate the shortlink and safelink features in the template:
- go to Blogger Dashboard, select the Theme.
- click the Customize button, you will be directed to the blogger customization page.
- In the sidebar, scroll down until you find the Advanced dropdown menu, then click.
- Make sure it is in the
Features
menu group, then look for theSafeLink (Enable/Disable)
feature option.Information:1
to enable, and2
to disable the feature. - Save settings by clicking the icon .
Create a SafeLink page
This page is used to set some configurations when the safelink URL is first visited. Existing settings such as: random posts, safelink content, advertisements and others can simply be configured on this page. here are the steps:
- go to Blogger Dashboard, select the Page menu.
- click the button New Page which is right under the blog name.
- fill in the title as you wish, this will influence the naming of the page URL.
- Enter the content or body of the page with the contents of the
Go Safelink.txt
file in thepage
folder of the template you have obtained. - before publishing, you can adjust the following rules:
const _dSf = { rdm: true, mrs: 20, oby: "updated", tmo: 3, cps: ["link_post_1", "link_post_2", "link_post_3"], dad: "url_direct_ad", };
Information:- random automatic posting from the blogger feed,
true
to enable, andfalse
to disable (using the custom random posting array in number 5). - the number of posts to be randomized.
- random posts are sorted by
published
orupdated
date. - button wait time appears.
- custom random post, fill in the post link you want to randomize. You can also use blog post links from post link references on search engines like Google. To activate this custom random, you must disable automatic random by setting the value
rdm
number 1 tofalse
. - fill in the direct ad link, you can replace it with any link you want, or deactivate it by leaving the
dad
value blank.
const cfSF = { el: "#postBody", po: "afterbegin", tm: 20, po2: "beforeend", tm2: 15, vsc: 70, adT: { e: "#adTop", p: "afterend" }, adB: { e: "#adBot", p: "beforebegin" }, dad: "url_direct_ad", css: `css_code`, cnt: [`...`, `...`, `...`], };
Information:- selector element where safelink content will be displayed.
- place the contents of step-1 SafeLink in the post body selector.
afterbegin
(first-child of element number 1) - waiting time (seconds) step-1 (progress bar).
- place the contents of step-2 SafeLink in the post body selector.
beforeend
(last-child of element number 1) - waiting time (seconds) step-2 (button).
- minimum page scrolling height to fulfill step-2 requirements.
- ad selector for step-1.
- ad placement in step-1,
afterend
(after step-1 content). - ad selector for step-2.
- ad placement in step-2,
beforebegin
(before the step-2 button). - fill in the direct ad link, you can replace it with any link you want, or deactivate it by leaving the
dad
value blank. - CSS code in the SafeLink post, you can customize the style.
- content in SafeLink posts, you can change as you wish. see the details on the code page.
- random automatic posting from the blogger feed,
- if the settings have been adjusted, click Publish.
- Don't forget to save the page link you just created, because you will need it for the SafeLink widget configuration.
How to configure the SafeLink widget
After activating SafeLink in the template, you need to make some settings in the settings widget. Follow these steps:
- go to Blogger Dashboard, select the Layout.
- scroll down until you find the APMODY Settings section.
- click edit on the
SafeLink
widget, a widget configuration pop up will appear. - adjust the settings below:
"domain": "https://domain.page.link", "key": "app_web_api_key", "page": "/p/gosf.html", "prm": "sf"
Information:- adjust it to the Dynamic Links domain name that you have created.
- replace it with the apiKey from your Firebase Web app project.
- fill in the SafeLink page link that was previously created.
- name SafeLink URL parameters, set as you wish.
- Make sure the Show this widget toggle switch is active, then click Save.
Create a SafeLink generate page
To create a SafeLink or ShortLink url, you need a generate form. Following are the steps to create the page.
- go to Blogger Dashboard, select the Page menu.
- click the button New Page which is right under the blog name.
- fill in the title according to your wishes.
- enter the content or body of the page with the contents of the
Safelink.txt
file in thepage
folder of the template you have obtained. - then click Publish, and SafeLink creation is complete.
you can try the SafeLink generator form here, or visit the example safelink url this.