I use user ID for external id to track registered members, but how do I track unregistered visitors? I mean, I want to track the visitor as well. Is it possible to use another tracking method? But how will I combine the two into one variable? Is it through code so that it changes automatically when registering or logging in? But will Meta and TikTok know that they are the same user?
You can try to combine your internal member ID with Stape’s anonymous identifier to ensure no visitor goes untracked. By using a fallback logic in your sGTM container, the system will switch IDs based on the user’s status, whether the user is known (using user_id) or anonymous (using X-Stape-User-Id). You may find the following links useful: