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

[Feature] Enable a callback to obtain the pageName as part of the analytics #1986

Open
MSNev opened this issue Feb 3, 2023 · 0 comments
Open
Labels
enhancement SPA support Required to support SPA style apps

Comments

@MSNev
Copy link
Collaborator

MSNev commented Feb 3, 2023

Suggested approach would be to move (or duplicate) the IValueCallback capability to the analytics extension

/**
* Value Callbacks configuration
*/
export interface IValueCallback {
/**
* Function to override the default pageName capturing behavior.
*/
pageName?: () => string;

This would enable a callback for SPA applications to programmatically derive the current page name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement SPA support Required to support SPA style apps
Projects
None yet
Development

No branches or pull requests

1 participant