Informational Service Implementation - Test Environment¶
By implementing WOGAA tracking code, you'll be able to monitor how your Informational Service is performing.
As a best practice, you should test the code on your staging environment before deploying it on your production environment.
Implement Code in Test Environment¶
Step 1. Register your Information Service and Test Environment¶
System/Business owner should register your IS under Manage Service first.
If you're an external vendor assisting in the technical implementation, you may proceed to step 2.
Step 2. Insert Tracking Code¶
Click on Copy to Clipboard to insert the following Tracking Code into the
<head> section of every page of your website, before other scripts.
We would update the wogaa.js periodically, kindly ensure you're using the link above for ease of implementation (i.e. do not implement local copy of wogaa.js file).
<html> <head> ... <script src="https://assets.dcube.cloud/scripts/wogaa.js"></script> </head> ... </html>
The base code does not support subresource integrity (SRI). Please do not enable SRI for base code.
Step 3. Content Security Policies for Staging¶
This step is optional if your website doesn't have Content Security Policy enabled.
If your website has Content Security Policy enabled, update your CSP with the following code:
default-src 'self' https://*.dcube.cloud/; script-src 'self' blob: https://*.dcube.cloud; connect-src 'self' https://*.dcube.cloud; style-src 'self' https://assets.dcube.cloud/; font-src 'self' data: https://assets.dcube.cloud/fonts/;
Step 4. Verify Test Environment(s) for e.g. Staging¶
You may check out our Troubleshooting Guide if you have any further queries.
With your test environment verified, you may proceed with implementation to your production site. :)