Next.js Discord

Discord Forum

How can i make a view count?

Unanswered
Banana posted this in #help-forum
Open in Discord
How can i make a view count on my website that counts unique viewers (based on ip / hwid or sm) And total views (non unique) ?
What would i do to make like a onload thing then store it in mongodb

12 Replies

bump
bump 😭
bump lol 🤷‍♂️
it does 😭 😭
eh kinda
How do i make a view count on a webpage so that when a person goes on the page it increments the count and saves it to mongodb
and it tracks unique viewers (idk maybe based on ip) and sets that too?
Your question is too generic and can be answered by a google search or chat gpt. This isnt a slight, simply a fact. I suggest using one of the former, then if you run into issues you make a help forum
alright
i should prob make another post for this but
                  <Input
                    onKeyUp={Input.value.toLowerCase()}
                    {...register('password')}
                    type='password'
                    className={cn({
                      'focus-visible:ring-red-500':
                        errors.password,
                    })}
                    placeholder='Password'
                  />

how can i make the input only lowercase?
alright