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

feat(store-sdk): agnostic store sdk analytics #903

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

icazevedo
Copy link
Contributor

What's the purpose of this pull request?

This PR makes the analytics layer of store-sdk agnostic. It now follows the official Google Analytics 4 structure for these events, and includes the default, recommended events by default.

How it works?

Anyone, including non-VTEX developers, can now use store-sdk to implement their analytics layer with the guarantee that it'll be fully integrated with Google Analytics 4.

How to test it?

There's no much to test.

References

I've set a fixed version for the store-sdk dependency on gatsby-theme-store. I did that so we can evolve store-sdk without having to backport everything to gatsby-theme-store, that'll eventually die anyways.

@icazevedo icazevedo added this to the Store SDK milestone Aug 18, 2021
@icazevedo icazevedo self-assigned this Aug 18, 2021
@icazevedo icazevedo requested a review from a team as a code owner August 18, 2021 19:45
@netlify
Copy link

netlify bot commented Aug 18, 2021

✔️ Deploy Preview for storeui ready!

🔨 Explore the source changes: 06972c8

🔍 Inspect the deploy log: https://app.netlify.com/sites/storeui/deploys/61292dce2660160007a8ca4d

😎 Browse the preview: https://deploy-preview-903--storeui.netlify.app

Copy link
Contributor

@tlgimenes tlgimenes left a comment

Choose a reason for hiding this comment

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

CARAK! AMAZING WORK! ❤️

@emersonlaurentino
Copy link
Member

@icazevedo can you make the rebase and fix the problem that codesandbox expose?

@icazevedo icazevedo force-pushed the feature/agnostic-store-sdk-analytics branch from bd2e45c to 06972c8 Compare August 27, 2021 18:24
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 06972c8:

Sandbox Source
Store UI Typescript Configuration

@icazevedo icazevedo merged commit 8fd9585 into master Aug 27, 2021
@icazevedo icazevedo deleted the feature/agnostic-store-sdk-analytics branch August 27, 2021 18:34
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

Successfully merging this pull request may close these issues.

3 participants