How can i write a code for html which will show how many people visited my web site | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How can i write a code for html which will show how many people visited my web site

28th Jul 2018, 12:22 AM
karangreat
karangreat - avatar
5 Answers
0
Google analaytic is better option.
28th Jul 2018, 5:43 AM
ᴋᵘⁿᵃˡ
ᴋᵘⁿᵃˡ - avatar
+ 2
first of all html is not a programjng language thus you cant describe any functionality in it. for your purpose you can use any back end language like js ,php ,python many more . and when web site server gets a open request just increment a counter.
28th Jul 2018, 2:59 AM
Rohan Vijayvergiya
Rohan Vijayvergiya - avatar
+ 1
Create an goo.gl link points to a simple page. Make an iframe to load this shortener goo.gl. Place iframe away from view port. Check out the goo.gl analytical report for number of visits. For this iframe, https://code.sololearn.com/WP0slXVmHr5C/?ref=app The visitor report is on https://goo.gl/#analytics/goo.gl/2RTvhG/all_time
28th Jul 2018, 1:53 AM
Calviղ
Calviղ - avatar
+ 1
In that case you need server side language to save data and ip address to display similar output
28th Jul 2018, 10:11 AM
ᴋᵘⁿᵃˡ
ᴋᵘⁿᵃˡ - avatar
0
but i have seen a webpage displaying total number of visit.
28th Jul 2018, 9:52 AM
karangreat
karangreat - avatar