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

fix: page view event trigger #631

Closed
wants to merge 1 commit into from
Closed

Conversation

lariciamota
Copy link
Contributor

What's the purpose of this pull request?

How does it work?

How to test it?

Faststore related PRs

References

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
starter ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 3:02pm

lariciamota added a commit to vtex/faststore that referenced this pull request Dec 11, 2024
## What's the purpose of this pull request?

Change the moment in which the page_view event is sent. It was
previously being sent only during a page change, so it wasn't sent on
the initialization of the page.

## How it works?

Instead of watching the `routeChangeComplete` route event, now it sends
the page_view event when the page is loaded.

## How to test it?

Check on the starter preview that the store is working as expected.
The real impact of this change will be tested in the next PR, in which
the RC events will start to be sent.

### Starters Deploy Preview

https://sfj-59f6820--starter.preview.vtex.app/
([PR](vtex-sites/starter.store#631))

## References

- [GA page
view](https://developers.google.com/analytics/devguides/collection/ga4/views)
- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-1798)
- [Slack
thread](https://vtex.slack.com/archives/C03L3CRCDC4/p1733837843137469)
@lariciamota lariciamota deleted the fix/page-view-event branch December 11, 2024 14:31
emersonlaurentino pushed a commit to vtex/faststore that referenced this pull request Jan 10, 2025
## What's the purpose of this pull request?

Change the moment in which the page_view event is sent. It was
previously being sent only during a page change, so it wasn't sent on
the initialization of the page.

## How it works?

Instead of watching the `routeChangeComplete` route event, now it sends
the page_view event when the page is loaded.

## How to test it?

Check on the starter preview that the store is working as expected.
The real impact of this change will be tested in the next PR, in which
the RC events will start to be sent.

### Starters Deploy Preview

https://sfj-59f6820--starter.preview.vtex.app/
([PR](vtex-sites/starter.store#631))

## References

- [GA page
view](https://developers.google.com/analytics/devguides/collection/ga4/views)
- [Jira task](https://vtex-dev.atlassian.net/browse/SFS-1798)
- [Slack
thread](https://vtex.slack.com/archives/C03L3CRCDC4/p1733837843137469)
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.

1 participant