Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 229201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:44:45+00:00 2026-05-11T19:44:45+00:00

Let me reformulate, as the answer https://stackoverflow.com/questions/951907/where-are-my-visitors-going was absolutely correct, but my question not

  • 0

Let me reformulate, as the answer https://stackoverflow.com/questions/951907/where-are-my-visitors-going was absolutely correct, but my question not precise enough 😉

How does one track with Java Script where the visitors are going? (From a technical standpoint.)

Is the idea to execute a code every time a link is pressed? If yes, does this have to be specified in the <a>-tag itself, i.e., <a href="..." onmousedown="return mycode(this)">, or can this be done globally without having to mention it for every link?

I don’t want the specifics of any code (as there is GoogleAnalytics etc.), I just want to know generally how it could work.

Btw, you guys are really quick!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:44:45+00:00Added an answer on May 11, 2026 at 7:44 pm

    You can write an event that records visitor activity per anchor tag or you can write a script that scans the document and does it for you (which is what Google Analytics does). If you choose to use a script, make sure you put it at the end of the document so that your web page is as responsive as possible.

    You can easily iterate through anchor tags as follows (untested):

    var tags = document.getElementsByTagName("a");
    for (var i = 0; i < tags.length; i++) {
        tags[i].onclick = function() {...};
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It could be a character encoding problem. Your JSP header… May 11, 2026 at 8:45 pm
  • Editorial Team
    Editorial Team added an answer With Windows, you can never be sure. However, this(search for… May 11, 2026 at 8:45 pm
  • Editorial Team
    Editorial Team added an answer Assuming the element in question is getting a class="rich-ddmenu-label" applied… May 11, 2026 at 8:45 pm

Related Questions

Let me try to explain what I need. I have a server that is
Let me preface this question by saying I use TextMate on Mac OSX for
Let me use the following example to explain my question: public string ExampleFunction(string Variable)
Let me start by saying that I do not advocate this approach, but I
Let me explain: this is path to this folder: > www.my_site.com/images And images are

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.