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

Sending feedback to GA through GTM #4

Open
eeeschwartz opened this issue Jan 25, 2016 · 3 comments
Open

Sending feedback to GA through GTM #4

eeeschwartz opened this issue Jan 25, 2016 · 3 comments

Comments

@eeeschwartz
Copy link
Contributor

The ga-feedback idea on the roadmap is really interesting. If helpful, here's my writeup of how to send events to GA through GTM.

Steal/improve/ignore as needed :)

@laurenancona
Copy link
Owner

I love that you're writing about this. It's almost as if we're coming from opposite ends of the analytics implementation spectrum; the more I'm learning to code I understand so much of what's happening in the context of how I used to essentially construct Javascript via the Tag Manager UI, and it seems as if you're having the inverse experience. Thanks for this, I have some thoughts but want to reread later.

@eeeschwartz
Copy link
Contributor Author

Definitely. And when plugging the ga-feedback widget into a site using GTM, I quickly realized that their submission approach needed to be adapted.

GTM's dataLayer object is a nice way to make extra data available to GTM beyond what's attached to the triggering element. In this case, it's a reasonable way to pull a value out of the form being submitted.

@laurenancona
Copy link
Owner

Ah, right. I spec'ed the idea pretty thoroughly in concept, but keep forgetting to do a trial run of implementing. It's the one feature we won't directly be using here at the city, which is why it's been stuck in Roadmap limbo for so long. I do have a few new smaller tags to add, like tracking phone call touch events from mobile clients, and some video play tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants