Information Service Implementation - Production Environment¶
Have you implemented the tracking code to your Test environment successfully?If you've done so, good job! We will now proceed with the production environment set up.
Do note that Test environment and Production environment have different tracking and CSP code, please ensure you're copying the correct tag below.
Implement Code in Production Environment¶
Step 1. Register your Information Service (if you haven't yet)¶
System/Business owner should register your IS under Manage Service first. (You should have completed this step if you've registered your test enironment.)
If you're an external vendor assisting in the technical implementation, you may proceed to step 2.
Step 2. Insert Tracking Code¶
Insert the following code into the
<head> 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.wogaa.sg/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 Production¶
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://*.wogaa.sg; script-src 'self' blob: https://*.wogaa.sg; connect-src 'self' https://*.wogaa.sg; style-src 'self' https://assets.wogaa.sg/; font-src 'self' data: https://assets.wogaa.sg/fonts/;
Step 4. Verify Production Environment¶
Did you managed to set up the production environment successfully? You may check out our Troubleshooting Guide if you have any further queries.