We ask you not to use the unminified version of Sunlight.js linked to above - it's faster for your users to instead use the minified version, as it's an even smaller filesize.
To start using Sunlight on your site, you'll need to sign up for an account and register a website in order to receive your token. You can then add the following code to anywhere on each page of the site (before the closing </body> tag, for example):
Make sure to change "YOUR-TOKEN" with the token provided in your Sunlight account.
Security is a core principle of Sunlight. Data from Sunlight.js is encrypted in transit using SSL. Sunlight's infrastructure is hosted within Amazon's secure data centers utilising Amazon Web Services (AWS) technology. Sunlight makes use of ISO 27001 and FISMA certified data centers managed by Amazon, which have fully redundant power supplies and biometric authentication.
Sunlight.js has been designed to be extremely fast, lightweight and unobtrusive. To do this, it:
Sunlight's tracking tag only stores Googlebot data, and runs a series of checks to ensure it does not store user data (for example, it takes measures to ensure that data from users who have spoofed their user-agent to act as Googlebot are never stored). This means that Sunlight is GDPR compliant.
Data is backed up daily, encrypted and stored in a secure off-site location.