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 metadata with Simple Analytics events too #456

Open
adriaandotcom opened this issue Feb 6, 2025 · 1 comment
Open

Send metadata with Simple Analytics events too #456

adriaandotcom opened this issue Feb 6, 2025 · 1 comment

Comments

@adriaandotcom
Copy link
Contributor

Some customers of Simple Analytics would love to send metadata via the @analytics library.

I see that's not implemented yet:

track: ({ payload, config }) => {
var saEventFunction = window[config.saGlobal] || window.sa_event || window.sa
if (!saEventFunction) return false
saEventFunction(payload.event)

The Simple Analytics sa_event expects the metadata as second param:

sa_event("click_download", { filename: "document.pdf" });

More info: https://docs.simpleanalytics.com/metadata#1-send-metadata-along-with-the-sa_event-function

If you need help, just let me know.

@itscesarvillar
Copy link

I would love too, I though I was doing it wrong, and come to here looking for a bug or lack of support. But it is true that no info is sended on the simple.gif request.

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