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

How to implement analytics #94

Closed
alokjkumar opened this issue Jun 16, 2020 · 3 comments
Closed

How to implement analytics #94

alokjkumar opened this issue Jun 16, 2020 · 3 comments

Comments

@alokjkumar
Copy link

There are three URLs for analytics - at what points do these need to be called? Is loaded called when the search results load or when the result of clicking on the gif is loaded? When is the click URL called vs the sent URL?

Thanks

@giannif
Copy link
Collaborator

giannif commented Jun 16, 2020

Hello @alokjkumar, analytics are baked in to the components themselves. You don't need to do anything

@giannif giannif closed this as completed Jun 16, 2020
@alokjkumar
Copy link
Author

@giannif for the fetch api?

@giannif
Copy link
Collaborator

giannif commented Jun 16, 2020

@alokjkumar there are no analytics for the fetch api. The components implement analytics since they know when gifs load, are clicked, hovered, etc.

Implementing your own analytics is technically possible but it's a pretty complex thing to support, can you not use our @giphy/js-components on your front end?

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