# How to set up Google Analytics with Local

**URL:** <https://community.localwp.com/t/how-to-set-up-google-analytics-with-local/41780>\
**Category:** Support\
**Created:** [March 8, 2024, 3:02pm UTC](https://community.localwp.com/t/how-to-set-up-google-analytics-with-local/41780 "2024-03-08T15:02:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cat](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@cat](https://community.localwp.com/u/cat)\
**Post date:** [March 8, 2024, 3:02pm UTC](https://community.localwp.com/t/how-to-set-up-google-analytics-with-local/41780/1 "2024-03-08T15:02:38Z")

</div>

### What issue or error are you experiencing?

When setting up Google Analytics for the dev environment using Local, need a Website URL which works in Google Analytics / Data Stream. It does not accept http//:localhost:10003. Need to set up a custom URL which can be used here which can be configured with Local so can see data streaming to GA. Could you suggest the steps to doing that. Am on a Mac.

## Thanks

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

* * *

### System Details

- **Local Version:**

- **Operating System (OS) and OS version:**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [March 8, 2024, 5:33pm UTC](https://community.localwp.com/t/how-to-set-up-google-analytics-with-local/41780/2 "2024-03-08T17:33:56Z")

</div>

If you change your Router Mode to site domains can you use that URL?

Preferences\>Advanced\>Router Mode\>Site Domains

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [June 6, 2024, 5:34pm UTC](https://community.localwp.com/t/how-to-set-up-google-analytics-with-local/41780/3 "2024-06-06T17:34:23Z")

</div>

Closed on June 6, 2024, 5:34pm UTC

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