Skip to content

wogaa.js Update Guide

Overview

Why is there a need to upgrade to wogaa.js?

As our product increased in scope, we wanted to make sure that there will be minimal changes at the agency end for their underlying services which tend to be bundled with many overheads.

The update to the latest wogaa.js will be used to power tracking for Transactional Services and also WOGAA Sentiments.

The table below shows the history of WOGAA Tracking Code Versions and what you will need to do to update your existing code to the latest wogaa.js V2 code in the respective environments.


wogaa.js Version History

Info

The latest version of WOGAA Web Analytics code is wogaa.js v2.

What are the different types of existing tracking script?

Position Environment DTM wogaa.js V1 wogaa.js V2
<head> of every page Staging <script src="//assets.adobedtm.com/a63ef04a8a06d4763abe9b28a8d967e7e749d199/satelliteLib-db3891214175cc48594c242657d262be8297f3d8-staging.js"></script> <script src="https://assets.dcube.cloud/scripts/wogaa.js" async</script> <script src="https://assets.dcube.cloud/scripts/wogaa.js"></script>
Production <script src="//assets.adobedtm.com/a63ef04a8a06d4763abe9b28a8d967e7e749d199/satelliteLib-db3891214175cc48594c242657d262be8297f3d8.js"></script> <script src="https://assets.wogaa.sg/scripts/wogaa.js" async</script> <script src="https://assets.wogaa.sg/scripts/wogaa.js"></script>
<body> of every page, just before the closing </body> Staging and Production <script type="text/javascript">_satellite.pageBottom();</script> empty empty

Update tracker to latest version

Note

The information below applies to you if your site is not on the latest version of WOGAA Tracking Code - wogaa.js v2 but the older versions.

Update DTM to wogaa.js v2

Updating from DTM will require you to first remove the existing codes that were previously placed in the <head> and <body> section of your website.

  • Remove the following script in the <head>

    <script src="//assets.adobedtm.com/a63ef04a8a06d4763abe9b28a8d967e7e749d199/satelliteLib-db3891214175cc48594c242657d262be8297f3d8.js"></script>
    

  • Remove the following script in the <body>

    <script type="text/javascript">_satellite.pageBottom();</script>
    

  • Follow the steps under Implement and Verify Code in Test Environment to setup the tracker for your Testing Environment and Implement and Verify Code in Production to setup the tracker for your Production Environment.


Update wogaa.js v1 to v2

The update from wogaa.js v1 to v2 involves a change of loading wogaa.js asynchronously to it being loaded synchronously. This reduce possible errors resulting from an asynchronous load.

  • To update, remove the async attribute in the following script in the <head>
<script src="https://assets.wogaa.sg/scripts/wogaa.js"></script>