Skip to content

fix: correct fbc format extraction from fbclid parameter #33

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

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

najihmld
Copy link

@najihmld najihmld commented Aug 30, 2024

The formatted ClickID value must be of the form version.subdomainIndex.creationTime.<fbclid>, where:

  • version is always this prefix: fb

  • subdomainIndex is which domain the cookie is defined on ('com' = 0, 'example.com' = 1, 'www.example.com' = 2)

  • creationTime is the UNIX time since epoch in milliseconds when the _fbc was stored. If you don't save the _fbc cookie, use the timestamp when you first observed or received this fbclid value

  • is the value for the fbclid query parameter in the page URL.

Here’s an example of what the resulting fbc parameter value could look like (note that the portion is invalid):

fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890

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.

None yet

1 participant