PINNED POST

[PIN][slideshow]

HOW TO USE YOUR BLOG WEB COOKIE TO TELL A VISITOR HOW MANY TIMES THEY HAVE VISITED YOUR BLOG

We love beautiful things each and everyday as our blog grow we try as much as possible to make it standout and beautiful  - There are several things that makes up a blog not only Rich Content or Quality post but blog design also makes a blog outstanding and notorious
HOW TO USE YOUR BLOG WEB COOKIE TO TELL A VISITOR HOW MANY TIMES THEY HAVE VISITED YOUR BLOG

We love beautiful things each and everyday as our blog grow we try as much as possible to make it standout and beautiful  - There are several things that makes up a blog not only Rich Content or Quality post but blog design also makes a blog outstanding and notorious.cause sometimes visitor may not find the comfort of reading if your blog is not well formed and arranged. So yesterday i was playing around code school i discovered an open cookie script that can help you keep keep in touch with your visitors whenever a visitor visit your blog this cookie pop a dialog box telling the user how many times he or she as visited your blog i have to go deep to understand it  ------ For example if a visitor your blog he or she will get a pop up saying "Hi you are visiting this blog for the first time you are highly welcome my name is Richard Odds and i am the owner of this blog feel free to scout around and i hope you find what you are looking for on our blog" isn't that awesome, When a visitor visit the second time you can display another message for him or her like this " Wow you visited the second time you are highly welcome we love you for coming back" you can keep setting the return message for every visit your visitors visit, That we have done here isn't that cool? Your visitors get to understand that your blog has improved. This script is designed to keep you and your visitors engages letting them you know and value every of there visits 

HOW DOES THIS SCRIPT WORKS? |

Just as i have stated above the script is design to keep you and your blog visitors engaging it makes your readers know you understand there worth, times and visits

HOW TO GET STARTED [ IMPLEMENTATION ] | BUT BEFORE GETTING STARTED CHECK DEMO HERE

HOW DOES THIS DEMO WORK

When you visit the demo page you will see a dialog box pop up telling you how many times you have visited the blog and an introduction about the owner, That what this post is all about


STEP 1 : Login to your blogger dashboard
====================================
STEP 2: Click on Layout
====================================
Step 3: Click on add widget
======================================
STEP 4: click on add html/JavaScript
===============================================
STEP 5: copy the code below and paste it inside the box
===================================================
<SCRIPT LANGUAGE="JavaScript">
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (2 < argc) ? argv[2] : null;
var path = (3 < argc) ? argv[3] : null;
var domain = (4 < argc) ? argv[4] : null;
var secure = (5 < argc) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DisplayInfo() {
var expdate = new Date();
var visit;
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
if(!(visit = GetCookie("visit")))
visit = 0;
visit++;
SetCookie("visit", visit, expdate, "/", null, false);
var message;
if(visit == 1)
message=" Hi thanks for visiting this blog it shows you are visiting us for the first time you are highly welcome my name is Richard Odds and i am the owner of this blog feel free to scout around and i hope you find what you are looking for on our blog you can click Okay below";
if(visit== 2)
message=" I see you came back again thanks for always coming back!";
if(visit == 3)
message=" Oh, it's you again third time you are wonderful thanks for coming back!";
if(visit == 4)
message=" Wow we are glad you love us we will never disappoint you !";
if(visit == 5)
message=" You're practically a regular on our blog we have a gift for you coming soon!!!";
if(visit == 6)
message=" we are still preparing your gift keep coming we love you";
if(visit == 7)
message=" Muah seventh time OMG you are a wonderfully made person you deserve a kiss from our teams as the best potential and respected visitors";
if(visit == 8)
message=" Do you mind subscribing to our blog";
if(visit == 9)
message=" WOW something amazing for you guest what and tells us from one of our blog post comment ";
if(visit >= 10)
message=" We saw your comment well that not it but this is it you have a received an e-Book from us for free";
alert("\n"+"you are visiting this blog \n"
+" "+visit+"\n"
+" time(s)."+"\n"+"\n"
+message);
}
function ResetCounts() {
var expdate = new Date();
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
visit = 0;
SetCookie("visit", visit, expdate , "/", null, false);
history.go(0);
}
window.onload=DisplayInfo
</Script>
===================
TRY CHECK THIS POST AS WELL 51,000 PEOPLE CHECKED IT AND LIKED IT YOU ALSO CAN TRY IT

THE BEST AND TRUSTED SURVEY SITES THAT YOU CAN EARN UP TO $2,000 FROM
==============================
HOW TO PROMOTE YOUR BLOG POST FOR FREE AND GET UP TO 2.3K VIEW A DAY
====================================
HOW TO GET PAID BLOGGING JOBS AND EARN EXTRA CASH AS A BLOGGER
=================================================
CHECK OUT THIS TOP 4 SITES THAT PAYS YOU TO SPONSOR A REVIEW ON YOUR BLOG
===========================================================
TOP QUALITY SITES AND BLOGS THAT ACCEPTS GUEST POST WITH  HIGH RANKING AND AUTHORITY
======================================================================================
WHAT IS LINKEDIN PULSE? AND HOW TO USE IT IN DRIVING MORE THAN 100K+ TRAFFIC TO YOUR BLOG
====================================================================================
HOW TO SELL YOUR AD SPACE | SPONSOR A POST AND MAKE MONEY FROM YOUR BLOG WITHOUT ADSENSE | COMPLETE TUT

PLEASE NOTE: You will have to edit all the highlighted text from the code above to what you feel you want to tell your visitors if they visit your blog, The dialog box will expire after 10 times the visitors have seen it

Just have you have seen above i have made the script in a very Interacting way for you to interact with your blog visitors not just telling them how many times they have visited your blog you can also use the medium to communicate with them as you have also seen above at end of the cookie display you will have to give a free e-BOOK but if you don't like it the way i have set it then you can edit it at your free will to anything you which to interact with them
=======================================================================
THANKS FOR VIEWING THIS POST | PLEASE THE LEAST YOU CAN DO FOR US IS TO SHARE THIS POST PLEASE 👋👋😍
=======================================================================
DID I MISS ANYTHING Now your turn you can contribute yours via the comment box and we will add it to these post which simply means that this post will be updated as new contributors comes in...  Be the first to contribute any other site you know can help other bloggers earn from sponsor review or post

And don't forget to always check back we update our blog with new post every day on topics that can help you or your business grow and also help you earn big from what you love doing we never disappoint we make sure our visitors get every benefit for their Visit we love comments 💗 |
===================================
This code was empowered by CODE SCHOOL
===================================
Do you like this post then you can subscribe for it here SUBSCRIBE HERE so when next we post relatedly to HOW TO USE YOUR BLOG WEB COOKIE TO TELL A VISITOR HOW MANY TIMES THEY HAVE VISITED YOUR BLOG you will get it directly to your PC so you don't miss out - No email required


Author image
MORE ABOUT RICHARD ODDS
==================================================
I am Richard Odds by name a blogger, Social media Expert, Business planner, SEO specialist and a Web developer with the power of creativity i decided to create this blog where i can teach people how to explore this Digital erra and making the goal of archieving three things online which is KNOWLEDGE | POWER | and WEALTH

Join me on Social Media



No comments:

PAGE LOAD TIME

[PAGE LOAD TIME][grids]

ADSENSE LESSON

[adsense][slideshow]