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

  • Home
  • SEARCH
  • 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 6873815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:07:00+00:00 2026-05-27T04:07:00+00:00

I am in the process of writing a jQuery plugin for handling Google analytics

  • 0

I am in the process of writing a jQuery plugin for handling Google analytics tracking using html5 data attributes.

The code is very much still in alpha stage but the attached fiddle shows that it does track the individual dom elements and pushes the right results. (You’ll see all that in the console).

My only real worry so far is that of memory usage. At present I am binding individual event handlers to each element and as we all know that can get messy and memory intensive.

Ideally I’d like to store each tracker object in a central location and perform some sort of look-up inside the jQuery on() function to fire the pushToGoogle() with the correct context.

Unfortunately my JavaScript chops can’t quite nail it and I can’t figure out an effective way to wrap everything in a neat generic fashion.

Any ideas??

  • 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-27T04:07:01+00:00Added an answer on May 27, 2026 at 4:07 am

    Turns out that the process was actually quite simple and just required some refactoring.

    I have added my code plugin to github here so that anyone following the question can learn from my example code.

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

Sidebar

Related Questions

I'm in the process of writing a jQuery plugin, and am getting into some
I am in the process of writing a jQuery plugin for 3D text and
I'm in the process of writing a Java 2D game. I'm using the built-in
I have some code in jQuery that iterate through children in div using each().
I am currently writing a plugin for jQuery. Now I wonder how I should
I'm writing a helper class to wrap the functionality of JQuery Taconite plugin. The
I am currently writing my first jQuery plugin and I am struggling to find
I am writing a lot of JQuery code in a page and have decided
Im in the process of writing a python script to act as a glue
I am in the process of writing a Bluetooth scanner that locates and identifies

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.