# Google Analytics

## Background

By default, DoctorLogic manages a dedicated Google Analytics account to capture visitor analytics and data from your site. A small percentage of our customers wish to manage their own Google Analytics account, apart from DoctorLogic. This usually happens when the customer has an existing account (with historical data) and/or they want to customize and use advanced features (like goals or custom reports) in Google Analytics.

## Adding Your Own Google Analytics Tracking Code

If you would like website analytics data to be sent to your own Google Analytics account, please [contact our support team](/docs/contact-support.md) and provide them with your [Google Analytics Tracking ID](https://support.google.com/analytics/answer/1008080?hl=en). Our team will add your tracking ID to ensure it fires alongside the DoctorLogic managed Google Analytics tracking ID.

## FAQs

### Isn't it bad to fire more than one Google Analytics tracking code on a single webpage?&#x20;

Despite confusion in the analytics/SEO community, Google supports firing multiple Google Analytics tracking IDs on a single page. Google [provides best practices](https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_with_multiple_trackers) which we implement to ensure data is correctly firing.

### What data will be sent to Google Analytics?

Everything. We fire the Google Analytics tracking code on each and every page load. This also includes page loads on development, testing and stage environments. This means that you're receiving raw and unfiltered data. See the article: [Understanding Data Inconsistencies](/docs/apps/insights/understanding-data-inconsistencies.md) to see what DoctorLogic filter's out of our reporting.&#x20;

### How can I test that my own Google Analytics tracking ID is "firing" correctly on a webpage?

Google provides [detailed documentation](https://support.google.com/analytics/answer/1008083?hl=en) on the best ways to verify that you're receiving data and that the tracking code is correctly firing on a webpage.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.doctorlogic.com/docs/extensions/google-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
