You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This post is to enable Page Views on the [**Chirpy**][chirpy-homepage] theme based blog that you just built. This requires technical knowledge and it's recommended to keep the `google_analytics.pv` disabled unless you have a good reason. If your website has low traffic, the page views count would discourage you to write more blogs. With that said, let's start with the setup.
10
+
This post is to enable Page Views on the [**Chirpy**][chirpy-homepage] theme based blog that you just built. This requires technical knowledge and it's recommended to keep the `google_analytics.pv.*` empty unless you have a good reason. If your website has low traffic, the page views count would discourage you to write more blogs. With that said, let's start with the setup.
11
11
12
12
## Set up Google Analytics
13
13
@@ -39,14 +39,11 @@ Now, click on the new data stream and grab the **Measurement ID**. It should loo
39
39
40
40
```yaml
41
41
google_analytics:
42
-
id: 'G-V6XXXXXXX'# Fill with your Google Analytics ID
42
+
id: 'G-V6XXXXXXX'# fill in your Google Analytics ID
43
+
# Google Analytics pageviews report settings
43
44
pv:
44
-
# The Google Analytics pageviews switch.
45
-
enabled: false
46
-
# the next options only valid when `google_analytics.pv` is enabled.
47
-
proxy_url: ''
48
-
proxy_endpoint: ''
49
-
cache: false # pv data local cache, good for the users from GFW area.
45
+
proxy_endpoint: # fill in the Google Analytics superProxy endpoint of Google App Engine
46
+
cache_path: # the local PV cache data, friendly to visitors from GFW region
50
47
```
51
48
52
49
When you push these changes to your blog, you should start seeing the traffic on your Google Analytics. Play around with Google Analytics dashboard to get familiar with the options available as it takes like 5 mins to pickup your changes. You should now be able to monitor your traffic in realtime.
@@ -222,17 +219,12 @@ Once all the hard part is done, it is very easy to enable the Page View on Chirp
222
219
223
220
Update the `_config.yml` file of [**Chirpy**][chirpy-homepage] project with the values from your dashboard, to look similar to the following:
224
221
225
-
226
222
```yaml
227
223
google_analytics:
228
-
id: 'G-XXXXXXXXXX' # Fill with your Google Analytics ID
224
+
id: 'G-V6XXXXXXX' # fill in your Google Analytics ID
229
225
pv:
230
-
# The Google Analytics pageviews switch.
231
-
enabled: true
232
-
# the next options only valid when `google_analytics.pv` is enabled.
0 commit comments