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 new custom GA events to demo #1588

Merged
merged 8 commits into from
Jan 31, 2023
Merged

Conversation

apedroferreira
Copy link
Member

@apedroferreira apedroferreira commented Jan 19, 2023

New custom Google Analytics events for the Toolpad demo.
Closes #1535

The toolpad_app_created event already includes app_template_id, so it wasn't necessary to add anything new to know which template was used.

New events:

  • toolpad_app_continue_latest
    Measures when user went to continue working on latest app. Includes app_id.

  • toolpad_self_host_click
    Measures click on self-host link. Includes app_id and an additional parameter source that tells whether the user clicked the self-host link in the demo bar or the query panel (see screenshots).

Screenshot 2023-01-19 at 19 40 29

Screenshot 2023-01-19 at 19 49 35

  • toolpad_roadmap_click
    Measures click on roadmap link in demo bar. Includes app_id.

  • toolpad_schedule_demo_click
    Measures click on "schedule demo" link in demo bar. Includes app_id.

@oliviertassinari oliviertassinari requested a deployment to add-demo-custom-ga-events - toolpad-db PR #1588 January 19, 2023 19:48 — with Render Abandoned
@apedroferreira apedroferreira added the core Infrastructure work going on behind the scenes label Jan 19, 2023
@apedroferreira apedroferreira self-assigned this Jan 19, 2023
@Janpot
Copy link
Member

Janpot commented Jan 20, 2023

  • toolpad_self_host_click
  • toolpad_roadmap_click
  • toolpad_schedule_demo_click

Would it be more interesting to solve these with UTM parameters on the links? I feel like it could be more powerful.

@apedroferreira
Copy link
Member Author

Would it be more interesting to solve these with UTM parameters on the links? I feel like it could be more powerful.

I don't know exactly how UTM parameters work, but if they send an event automatically by clicking a link it should be a good idea. I had the idea that they only worked if the target page has Google Analytics (in which case this would still work for the self-host button anyway).
I'll try that out and look more into UTM params.

@oliviertassinari oliviertassinari temporarily deployed to add-demo-custom-ga-events - toolpad PR #1588 January 20, 2023 18:24 — with Render Destroyed
@oliviertassinari oliviertassinari temporarily deployed to add-demo-custom-ga-events - toolpad PR #1588 January 20, 2023 18:25 — with Render Destroyed
@oliviertassinari oliviertassinari temporarily deployed to add-demo-custom-ga-events - toolpad PR #1588 January 20, 2023 18:26 — with Render Destroyed
@apedroferreira
Copy link
Member Author

apedroferreira commented Jan 20, 2023

I've added UTM parameters to the links according to what I've read about how they should work, but I'm not sure how this replaces the usefulness of having custom events directly in Toolpad?

From what I've read, outbound clicks are tracked automatically with the click event, however in the GA dashboard it does not seem easy to view all click events distributed by which destination link they used.

And I guess that UTM params in links that lead to the Toolpad docs could be used to track where traffic came from - but having custom events in Toolpad's Analytics directly could be an easier way to view and analyze this data, and easier to integrate with funnel metrics and that kind of stuff if we wanted to?

@oliviertassinari oliviertassinari requested a deployment to add-demo-custom-ga-events - toolpad-db PR #1588 January 30, 2023 15:44 — with Render Abandoned
@apedroferreira
Copy link
Member Author

I've removed UTM params from the links to roadmap and scheduling demo.
Kept UTM params in the links to the Toolpad docs, just in case.
Will merge this tomorrow or a bit later if there's no more feedback!

@oliviertassinari oliviertassinari temporarily deployed to add-demo-custom-ga-events - toolpad PR #1588 January 31, 2023 14:16 — with Render Destroyed
@apedroferreira apedroferreira merged commit facbb4f into master Jan 31, 2023
@apedroferreira apedroferreira deleted the add-demo-custom-ga-events branch January 31, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add GA events in Toolpad demo
3 participants