Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit e87fd5a

Browse files
committed
fix(Google Analytics): Missed ID
1 parent ab1091c commit e87fd5a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

configs/grunt/pug.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module.exports = {
66
data: {
77
debug: !grunt.pluginData.prod,
88
pkg: grunt.pluginData.pkg,
9-
envPath: grunt.pluginData.envPath
9+
envPath: grunt.pluginData.envPath,
10+
analytics: '<%= settings.analytics %>'
1011
}
1112
},
1213

configs/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"port": 8000,
33
"assetsPath": "../my-jquery-plugins-assets/",
4-
"githubUsername": "martinmethod"
4+
"githubUsername": "martinmethod",
5+
"analytics": "UA-4977149-7"
56
}

src/demo/markup/includes/foot/analytics.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ script(type='text/javascript').
55
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
66
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
77

8-
ga('create', '', 'auto');
8+
ga('create', '#{analytics}', 'auto');
99
ga('send', 'pageview');

0 commit comments

Comments
 (0)