Integrate Tealeaf with Google Analytics
You can maximize the value of Tealeaf by integrating it with your Google Analytics account. You can drill into a GA report, where each row represents a single session.
If you don’t already have a Google Analytics account, you must create one.
- Log in to Google Analytics.
- Click the gear wheel (Admin).
- Under the Property column, click Custom Definitions > Custom Dimensions.
- Give your dimension a name. For Scope, select Session. Mark the dimension as active. Click Done.
- Set up your custom dimension using GTAG. The unique identifier is TLTSID.
- gtag('config', 'GA_MEASUREMENT_ID', 'custom_map': {'dimension<Index>': 'dimension_name'}})
- gtag('event', 'any_event_name', {'dimension_name': dimension_value});
For more details about using GTAGs, see https://developers.google.com/analytics/devguides/collection/gtagjs/custom-dims-mets.
Note: Tealeaf currently only supports Google Analytics 3 (GA3) or Universal Analytics. So, when integrating with Tealeaf, you need the property in Google Analytics, Universal Analytics property.
Update the snapshot extension to enable Google Analytics links
- Click the gear icon (Settings) on the upper right side of the extension. Check Enable links to view user sessions.
- Validate the settings once for the index of the custom dimension. By default, the index will be 1. The index should be in sync with custom dimension defined in GA.
- Make sure the Tealeaf URL is correct and you’re logged in to the portal.
- After settings are configured, click Update to enable the links.
- After you’ve enabled the links, click the session ID in Google Analytics. Your portal session search opens in a separate tab.
Note: Only sessions which are in completed state are returned in Tealeaf session search from Google Analytics reports.