Skip to content

Conversation

jrpeck1989
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Jun 19, 2025

Deploy Preview for snowplow-docs ready!

Name Link
🔨 Latest commit 65814c1
🔍 Latest deploy log https://app.netlify.com/projects/snowplow-docs/deploys/6855606cf140470008a0d164
😎 Deploy Preview https://deploy-preview-1290--snowplow-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jrpeck1989
Copy link
Contributor Author

TODO

Before this can be merged, a page_view_aggregated schema needs adding to Iglu for the main Snowplow account.

@jrpeck1989 jrpeck1989 requested a review from pif June 20, 2025 12:48
@jrpeck1989 jrpeck1989 requested a review from mscwilson August 11, 2025 09:33
Copy link
Collaborator

@mscwilson mscwilson left a comment

Choose a reason for hiding this comment

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

needs tidying up from testing but otherwise lgtm

@@ -43,6 +78,7 @@ const createTrackerConfig = (cookieName) => {
cookieDomain: `.${domain[1]}.${domain[0]}`,
cookieName,
cookieSameSite: 'Lax',
keepalive: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's this do?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an important point. It uses the keep alive functionality of the Fetch API that means even after a window is closed or you've navigated away, the browser will still complete the request. This was the problem with the Beacon API which made this entire aggregated page ping logic so flaky, and why I want to try this method out.

@@ -64,16 +100,18 @@ const createTrackerConfig = (cookieName) => {
const setupBrowserTracker = () => {
newTracker(
'snplow5',
'https://collector.snowplow.io',
// 'https://collector.snowplow.io',
Copy link
Collaborator

Choose a reason for hiding this comment

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

fix these commented out bits please

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.

2 participants