This describes how to record data in a different Google Analytics account. This can be useful when testing Google Analytics integration to ensure that things are working as expected.
You'll need your own Google Analytics account and to have created a Tracking ID for Smart Answers. Creating these is outside the scope of this guide.
You'll need to have a copy of Static running locally. Smart Answers expects to find your local copy of Static at http://static.dev.gov.uk. You can change this by setting the PLEK_SERVICE_STATIC_URI
environment variable.
Open your copy of Static and replace the universalId
variable in analytics/init.js with your Tracking ID.
Open your Google Analytics account and visit the Real Time > Overview report. Visit your local copy of Smart Answers and observe the activity in Google Analytics.
The Google Analytics Debugger Chrome extension can be useful when trying to understand why you're not seeing the data you expect in Google Analytics.