# Google Analytics
Integrate and send data to Google Analytics.
WARNING
Read this tutorial first: Google Analytics Connection (opens new window)
Smartsupp checks your site's source code for GA property ID and sends data to all GA accounts it found. If you want to send Smartsupp events only to one specific account you do so by selecting it via GA KEY. If you have subdomains on your website and you are tracking all of them in one GA account use the gaOptions
parameter described in Google Analytics (opens new window) documentation.
Initialize GA settings using: ga('create', KEY, OPTIONS);
# gaKey - Widget v3
Use this code if you want to link to a specific GA Tracker by KEY for GA4 or Universal Analytics with gtag.js
_smartsupp.gaKey = "G-XXXX";
_smartsupp.gaKey = "UA-XXXX-Y";
# gaKey - Widget v2
Use this code if you want to link to a specific GA Tracker by KEY for Universal Analytics
_smartsupp.gaKey = "UA-XXXX-Y";