Skip to content
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

Add support for tracking measurements #5

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

bennothommo
Copy link
Member

This PR will allow users to record events using the Google Analytics plugin, for tracking user interactions.

A new component, Measurements, is now added and can be used to either fire off an event immediately, or via interacting with an element on the page through the data-track-event attribute.

runEvents() {
this.events.forEach((event) => {
gtag('event', event.name, event.data);
console.log('logged event', event);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still required?

@LukeTowers
Copy link
Member

Measurement class is empty, what's the status of this PR?

Base automatically changed from wip/ga4-support to main November 30, 2022 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants