Server side logging
Logging to the server consists of two separate calls to our tracking server. First you log an empty pageview to create the session and register the session with a particular user. Then you register the actual goal.
jsuid
is a random integer that you need to generate.
- 1
-
Log a pageview
http://t.myvisitors.se/t?site_id={siteId}&type=pageview&href=/{title}&title={title}&custom[email]={userEmail}&jsuid={uId}
- 2
-
Wait a few seconds for the page view to register and then log the goal:
http://t.myvisitors.se/t?site_id={siteId}&type=goal&goal[name]={goalName}&title={1}&custom[email]={userEmail}&jsuid={uId}
Example
http://t.myvisitors.se/t?site_id=12345678&type=pageview&href=/logging+In&title=/logging-in&custom[email][email protected]&jsuid=892839123 // WAIT http://t.myvisitors.se/t?site_id=12345678&type=goal&goal[name]=Logged+In&custom[email][email protected]&jsuid=892839123