# 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

Use this code if you want to link to a specific Measurement ID (Google tag ID) for GA4

_smartsupp.gaKey = "G-XXXX";