
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2019 12:25 AM
Hi there,
I´m interested in integrating Google Analytics with my ServiceNow instance. I have used the following approach to do such integration: Google Analytics on Service Portal
However, it seems not working properly. It does not send any data when you navigate through the portal.
When opening the browser console I find the following error: Uncaught ReferenceError: ga is not defined
at SP Google Analytics beacon.jsdbx?c=6:8
Is anyone else having the same issue? Any ideas to get the data sent to Google Analytics every-time the users navigate through the portal?
Thank you,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 01:22 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 01:22 AM
Are you missing a JS include in your Service Portal which has the function definition for the ga function?
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 12:43 PM
Hi Paul! Thank you for your reply.
It seems adding the Google Analytics to the JS include dependency stops the error message. But I'm still having issues to get the Google Analytics implemented. Even if I do not get any error, the data is not sent to google.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 01:22 PM