Skip to content

Comments

Add support for tracking measurements#5

Draft
bennothommo wants to merge 8 commits intomainfrom
wip/measurements
Draft

Add support for tracking measurements#5
bennothommo wants to merge 8 commits intomainfrom
wip/measurements

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
@LukeTowers
Copy link
Member

@bennothommo what's the status of this?

@bennothommo
Copy link
Member Author

I think it was pretty close to being done, but I don't have any need for it anymore. It was being worked on for my old job. I don't have access to any Google Analytics properties to test it out on anymore.

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