Test Google Analytics on Localhost

前端 未结 2 790
滥情空心
滥情空心 2021-02-05 06:53

I need to test some custom firing events using Google Analytics. I\'d like to test in a local environment.

I\'ve set up my test site using apache with server name:

2条回答
  •  我在风中等你
    2021-02-05 07:20

    The "Website URL" field when creating a new Google Analytics property does not have to be the same as the actual URL that's used in production. It's primarily used for resolving relative links, not for validating hits.

    Just change it to something else (like example.com), and everything should work fine.

提交回复
热议问题