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 8338283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:32:46+00:00 2026-06-09T04:32:46+00:00

I am new to computer programming, and trying to learn some possibilities to track

  • 0

I am new to computer programming, and trying to learn some possibilities to track the clicking of an element on a page. If it is a link to another page, I know I can use goo.gl or bit.ly for url tracking. If it was in WordPress, there are several utilities that track page visits. I have read enough to know that PHP could solve this, but I don’t know PHP (although a link to a walkthrough or intro to PHP or similar links that can explain element tracking, I am open to learning), and the scope of this project is minimal, that is why I am looking for similar easily implemented approaches.

Possible solutions I can think of:
* a possible global value that keeps track, but I don’t know how to keep the persistence from user to user or reload to reload
* somewhat hard to keep track of, but create several urls for each element, and have the JQuery on(‘click’) visit the page, but I don’t know how to prevent that page from opening, as it would be irrelevant to the user
* I am familiar with SQL, and have a sql server that I can use, but don’t know how to map to it using JS for just one page, so any info or links on this will be helpful

I have not looked into google analytics, and don’t know if its possible to use this to achieve the element tracking.

  • 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-06-09T04:32:50+00:00Added an answer on June 9, 2026 at 4:32 am

    I have used jQuery events on elements to track interaction with pages with Google Analytics in recent projects. The link that josnidhin has provided has great information about setting up event tracking on your pages. Here is a JSFiddle example to show how I have used this type of event tracking http://jsfiddle.net/kezzman11/qzr6v/.

    To prevent the link from opening if you use a URL for tracking purposes only you just need to return false using the onclick attribute on your HTML tag. eg. onclick=”return false;”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to computer programming and have some experience programming with python. I
I am new to programming. I know that a computer executes instructions in the
I'm new to programming and computer world. I'm trying to study biomolecular simulations with
I'm new to programming and computer world. I'm trying to study biomolecular simulations with
Some time ago, I've got a new single board computer running Debian which will
So I am completely new to programming in C on a computer (I once
I'm pretty much completely new to the world of computer programming, so it's been
I am fairly new to R programming. I am trying to customize my R
Pretty new to C# but not new in programming in generally. I'm still trying
I'm fairly new to localized programming, and I'm trying to figure out how to

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.