-
Notifications
You must be signed in to change notification settings - Fork 194
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
Document primary-key integration #56
Comments
You're right, I'm surprised this is not well documented. I'll leave this issue open until I add it to the docs. In the meantime, here's how you do it: add the 'primary key' to the URL you load the tracking script from. So for example, if your Shynet script location (for either the pixel or the script) is |
I guess it would be much better to implement it also inside client API, because of SPA websites |
Hi! But this is still not a solution for SPA. I guess using something like Shynet.PRIMARY_KEY = 2 on a client and then building an URL could solve this |
It also works for SPAs, no? All you need to do is dynamically generate the script URL using JavaScript. |
The user could be logged out, and when it logs in, I have no options to generate any links. Also, I never saw "analytics" front-end script, that asks to generate its link. All setup is done after it's loading via API. |
Readme page says that I can associate visitors in Shynet with their user accounts on my site. But how? I can't find any clue to this.
The text was updated successfully, but these errors were encountered: