# D2 - Google Analytics?

**URL:** <https://discourse.nodered.org/t/d2-google-analytics/91140>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [20 September 2024 13:28 UTC](https://discourse.nodered.org/t/d2-google-analytics/91140 "2024-09-20T13:28:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 September 2024 13:28 UTC](https://discourse.nodered.org/t/d2-google-analytics/91140/1 "2024-09-20T13:28:03Z")

</div>

Hi, just happened to see the `sw.js` service worker script contents that D2 uses and I noticed that it seems to include a link to Google Analytics?

If that is so, I believe you need to declare that clearly in the docs to meet EU (and, I think, California) privacy legislation?

In any case, I would like to see that either removed or clearly stated as something that is happening.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [20 September 2024 14:39 UTC](https://discourse.nodered.org/t/d2-google-analytics/91140/2 "2024-09-20T14:39:59Z")

</div>

Thats not something I recall putting in, I'm not working til Monday, but will take a look ASAP

Update: I just sanity checked [node-red-dashboard/ui/src/sw.js at main · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/blob/main/ui/src/sw.js) and can't see any trace of GA references, are you sure it was there you saw it?

---

<div class="post-metadata">

**Author:** ![gayanSandamal](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gayansandamal/32/93024_2.png) [@gayanSandamal](https://discourse.nodered.org/u/gayanSandamal)\
**Post date:** [20 September 2024 16:34 UTC](https://discourse.nodered.org/t/d2-google-analytics/91140/3 "2024-09-20T16:34:39Z")

</div>

@joepavitt After looking into it, we haven’t intentionally added Google Analytics, but it seems to have been bundled with the workbox package. Need to investigate this further to clarify its inclusion.

 ![Screenshot 2024-09-20 at 22.01.58](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e7528296edc5f510f491140142c550806845b47e.png)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [20 September 2024 20:22 UTC](https://discourse.nodered.org/t/d2-google-analytics/91140/4 "2024-09-20T20:22:23Z")

</div>

> [@joepavitt](#):
>
> are you sure it was there you saw it?

Pretty sure I think, this image from my simple test D2 page on my Windows dev PC:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8fd0796e1ca97ffcfeeee8bcc8c94d3a2f654abc.png)

> [@gayanSandamal](#):
>
> After looking into it, we haven’t intentionally added Google Analytics, but it seems to have been bundled with the workbox package. Need to investigate this further to clarify its inclusion.

Yes, I figured that was probably the case - Google up to their usual tricks I'm afraid.

Thanks for looking into it Joe. Best to deal with it now before it crops up in a production security review.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 October 2024 20:22 UTC](https://discourse.nodered.org/t/d2-google-analytics/91140/5 "2024-10-20T20:22:40Z")

</div>

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