How to Add Download Timer Wait Counter
As you know already we have posted content about how to create apk downloading website. Sometime that apk website’s AdSense account may have chances to disable for invalid traffic.
Invalid traffic occurs because the user minimum stands only 5 to 10 seconds and they may click a minimum 5% of your ads. It created an invalid activity on your AdSense account. This 5 sec is not enough for ranking.
Hence, for protecting the AdSense account, we shall host the user for a few seconds. We can do the same by adding below JavaScript code in your header.
Download Wait Counter Is an important script for protecting your AdSense account from the invalid activity and which boosts your search engine ranking.
Let us consider that you are having a YouTube channel where you are reviewing and promoting the application. You know that you share all the formation about the application in the video itself.
Now you are providing the download link in your site and sharing it in YouTube video description.
Hence the entire user comes to download apk files to my website. Obviously, the user does not spend much time on your website. Due to this Google shrinks your site rank.
In this, article we are going to see how to install a link wait counter on your website.
Also, you can use this JavaScript and adjust your time counter to display the download links follow the steps to install the download link rate counter.
WordPress Installation:
Step1: Just copy the below JavaScript codes.
<script> var downloadButton = document.getElementById("download");
var counter = 30;
var newElement = document.createElement("p");
newElement.innerHTML = "You can download the file in 30 seconds.";
var id; downloadButton.parentNode.replaceChild(newElement, downloadButton);
id = setInterval(function()
{
counter--;
if(counter < 0)
{
newElement.parentNode.replaceChild(downloadButton, newElement);
clearInterval(id); } else
{
newElement.innerHTML = "You can download the file in " + counter.toString() + " seconds.";
}}, 1000); </script>
Step2: Now login to your WordPress dashboard.
Step3: Just hover the mouse on the appearance settings; Now go to the code editor section, now you will get a popup like “editing theme source is not recommend” but you can just skip out.
Step4: After that, you can see a lot of PHP files and JavaScript files; Now you just find the footer.php file. And find the section get footer (). Also, you can add the codes in the header section also. If you cannot find it, then you can simply install header and footer plugin.
Step5: Copy the code and paste it on footer.PHP. Then save it. Also, you can change the counter by changing the number inside the script. But by default, you can see that is 30 seconds. Also, you can replace the word “downloading file” with “downloading apps” like that anything.
Step6: Come back to your WordPress content editor or add the anchor tag as below mentioned.
Note: Do not forget to replace the existing link with your targeted link on the href =”yourlink”.
<a id="download" href="http://bloggerbeginner.com/"> Download </a>
After that, you can publish the post.
Blogger Installation:
Step1: Now copy below-mentioned javascript code and login to your blogger.com, then you see the blogger dashboard.
<script>
//<![CDATA[
var downloadButton = document.getElementById("download");
var counter = 30;
var newElement = document.createElement("p");
newElement.innerHTML = "You can download the file in 30 seconds.";
var id;
downloadButton.parentNode.replaceChild(newElement, downloadButton);
id = setInterval(function() {
counter--;
if(counter < 0) {
newElement.parentNode.replaceChild(downloadButton, newElement);
clearInterval(id);
} else {
newElement.innerHTML = "Download " + counter.toString() + " seconds.";
}}, 1000);
//]]>
</script>
Step2: Go to your theme section and click on edit HTML
Step3: Copy the above JavaScript code and paste it on above the body end tag. and save it and never forget to copy the code as given as in our website
Step4: Now you go to blogger dashboard, click on Add new post and go to text edit HTML section and continue above the WordPress process from step 6
Buy that you can add a wake counter on your blogger and WordPress.