Skip to content
Discussion options

You must be logged in to vote

rybbit builds the visitor id from ip + user agent (generateUserId(ip, userAgent, siteId)) and the session from that id. your server call has your server's ip and the .net user agent, so it looks like a new person in a datacenter, hence the second session

fix is make the server call pretend to be the visitor:

  1. when the user starts checkout, grab their ip + user agent (and accept-language) and stash it in the payment provider metadata or your db with the order
  2. in the webhook, send them along in the /api/track body as ip_address, user_agent, language
  3. auth that call with an api key that has ingest write scope (Authorization: Bearer ...). without a trusted key rybbit ignores ip_address/user_agent

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davidrot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants