# Integrate Google Analytics with Kibana

**URL:** <https://discuss.elastic.co/t/integrate-google-analytics-with-kibana/241882>\
**Category:** Kibana\
**Created:** [July 20, 2020, 10:56am UTC](https://discuss.elastic.co/t/integrate-google-analytics-with-kibana/241882 "2020-07-20T10:56:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tango31](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tango31](https://discuss.elastic.co/u/Tango31)\
**Post date:** [July 20, 2020, 10:56am UTC](https://discuss.elastic.co/t/integrate-google-analytics-with-kibana/241882/1 "2020-07-20T10:56:38Z")

</div>

Hello,  
I want to see google analytics data into kibana dashboard..How to do it?..Can anyone help me on this topic?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [July 20, 2020, 10:34pm UTC](https://discuss.elastic.co/t/integrate-google-analytics-with-kibana/241882/2 "2020-07-20T22:34:34Z")

</div>

To do this you would need to be able to export the Google Analytics data into Elasticsearch, which I don't believe is possible.

We do have APM, which is also free that ingests data into Elasticsearch from your website: [https://www.elastic.co/apm](https://www.elastic.co/apm)

What kind of metrics are you looking for?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [July 20, 2020, 10:41pm UTC](https://discuss.elastic.co/t/integrate-google-analytics-with-kibana/241882/3 "2020-07-20T22:41:41Z")

</div>

A custom plugin (hack) would work but will require some coding.

```auto
import $ from "jquery";

window.onhashchange = locationHashChanged;

$(document).ready(function () {
  addGoogleAnalyticsCode();
});

function locationHashChanged() {
  addGoogleAnalyticsCode();
}

function addGoogleAnalyticsCode() {
   //get dashboard ID from URL
   //if ID is the dashboard you want add GA tracking code using jQuery
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 17, 2020, 10:41pm UTC](https://discuss.elastic.co/t/integrate-google-analytics-with-kibana/241882/4 "2020-08-17T22:41:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
