SiteSpect SPA SDK
The SPA SDK is dynamically injected into the HTML page by SiteSpect as one minified script that is less than 5kb gzipped. You can see a live version here. The library is split into 3 smaller libraries:
- GenericAdapter - Library that uses Mutation Observers to identify when changes should be applied.
- SSDomVar - Library that evaluates client side variations, triggers, and applies changes.
- EventTrack - Library that captures client side events and sends data to SiteSpect in order to populate metrics.
The SPA SDK library evaluates and applies client side variations using Mutation Observers. When a change is applied, SiteSpect is automatically notified and the user is counted in the campaign, inserted into reports, and persists in the experience based on campaign settings.