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

Send custom GA event when new app is created #1285

Merged
merged 3 commits into from
Nov 7, 2022

Conversation

apedroferreira
Copy link
Member

Closes #997

@apedroferreira apedroferreira added the core Infrastructure work going on behind the scenes label Nov 4, 2022
@apedroferreira apedroferreira self-assigned this Nov 4, 2022
@render
Copy link

render bot commented Nov 4, 2022

@apedroferreira apedroferreira merged commit 80e0bcf into master Nov 7, 2022
@apedroferreira apedroferreira deleted the add-ga-created-app-event branch November 7, 2022 18:04

export const sendAppCreatedEvent = (name: string, templateId?: AppTemplateId): void => {
if (config.gaId) {
window.gtag('event', 'app_created', {
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to namespace those toolpad_app_created?

Copy link
Member Author

@apedroferreira apedroferreira Nov 7, 2022

Choose a reason for hiding this comment

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

Why not, would be a good standard for custom events, will add

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 Google Analytics
2 participants