-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event labels for DOM elements #25
Conversation
I added a new feature (to track visible elements only), but it seems GitHub took the changes as a whole, instead of a separate pull request. Sorry for that. |
Previous commit removes jQuery dependency #17 |
So, just so I understand, the problem is that the selectors are not user-friendly or readable in the GA dashboard, right? Instead of putting the labels directly on the dom elements, what if we had the labels defined as part of the initialization, like this: elements: [
{ selector: '#comments',
name: 'Comments'
},
{ selector: '#footer',
name: 'Footer'
}
] |
This PR targets 3 things:
|
"It also allows to implement generic selectors instead of an array of items that target specific nodes i.e. "section" vs. ["#section-1", "#section-2" etc.]" - I mean in the future |
@alexei, Thanks again. |
Hello,
I'm using your plug-in in a project and found it unfriendly to publish selectors, ids etc. in GA. Where I come from, the people who need that data are not techies, so I added the possibility to set custom labels for elements.
Alexei