Ninetailed
Search…
Google Analytics

What is Google Analytics?

Google Analytics is a web analytics service offered by Google that is used to track website activity such as session duration, pages per session, bounce rate etc. of individuals using the site, along with the information on the source of the traffic. It can be integrated with Google Ads, with which users can create and review online campaigns by tracking landing page quality and conversions (goals).
By integrating with Google Analytics, you can send Ninetailed events to Google Analytics for analysis.‌

Getting Started

To set up Ninetailed to send Google Analytics data you need to install the @analytics/google-analytics package.‌

Install module via npm

1
npm install @analytics/google-analytics
Copied!

Install module via yarn

1
yarn add @analytics/google-analytics
Copied!

How to use

To use, install the package, include in your project and initialize the plugin with AnalyticsProvider
1
import { AnalyticsProvider } from '@ninetailed/experience-sdk-react';
2
import googleAnalytics from '@analytics/google-analytics'
3
4
<AnalyticsProvider plugins={
5
[
6
googleAnalytics({
7
trackingId: 'UA-1234567'
8
})
9
]
10
}
11
>
Copied!
Last modified 1mo ago