Server-side tracking considerations
WarningIt is our recommendation that tracking should be implemented client side via the Data-driven event tracking approach for the easiest integration path.
There are many notable considerations with implementing tracking server-side.
Debugging
Debugging proves more difficult, as Constructor engineers cannot easily inspect transmission of events or follow the path of transmission from the client. Constructor will see events requests coming into our platform but not be able to connect them to actual user events happening within the browser.
Latency
Latency between the time an event happens and time it’s transmitted to Constructor may be longer than it would be with a client-side implementation. This could have a significant impact / delay in personalization.
Bot detection
Client-side implementations through usage of a Constructor client library have built in bot detection by requiring that a "human-like" action is observed before transmitting tracking events. A list of known bot user-agent strings is also cross referenced. Server-side tracking implementations may not have the same accuracy or detection methods.
Communication / updates
Updates cannot be rolled out directly to the customer in server-side implementations. Constructor integration engineers need to reach out to appropriate parties at other companies to make changes to tracking implementations. As we are continually iterating the behavioral information strategies to inform our ML models, this can cause more back and forth between development resources on both sides.
Documentation
As implementing tracking on the server side is an uncommon approach across our customer base. Behavioral tracking has many intricacies that are solved through the traditional beacon approach that will need to be worked through by the engineering staff through close pairing in a backend integration.
Tracking parameters
As tracking parameters are typically set in localStorage / cookies by our beacon bundle, the server-side implementation will need to implement these six tracking parameters. This may be difficult to get correct in some implementations and could cause differences in the way sessions are identified across the platform. This is automatically handled in the traditional (client side) beacon tracking approach.
isuius_dtc
Browser environment headers
Constructor relies on various pieces of information from the browser to help identify location, software versions, etc. which will need to be relayed server-side. This is automatically handled in the traditional beacon tracking approach.
User-AgentHTTP headerX-Forwarded-ForHTTP headerx-cnstrc-tokenHTTP headerorigin_referrerquery parameter
Updated about 1 year ago