Moon icon indicating copy to clipboard operation
Moon copied to clipboard

How to add google analytics Script code

Open ytam opened this issue 7 years ago • 5 comments

How I can embedded google analytics script code to see who visit my website.

ytam avatar Mar 21 '17 11:03 ytam

Just add your Google Analytics ID in the file: _config.yml. Wish that is helpful for you.

MoienBowen avatar Mar 21 '17 13:03 MoienBowen

I add it but does not work

ytam avatar Mar 22 '17 08:03 ytam

The page build failed with the following error:

You have an error on line 2 of your _config.yml file. For more information, see https://help.github.com/articles/page-build-failed-config-file-error/.

For information on troubleshooting Jekyll see:

https://help.github.com/articles/troubleshooting-jekyll-builds

If you have any questions you can contact us by replying to this email.

ytam avatar Mar 22 '17 08:03 ytam

The mine is not my user ID, is a ID started with UA-9******.

MoienBowen avatar Mar 22 '17 08:03 MoienBowen

I add that code but still does not work

ytam avatar Mar 22 '17 14:03 ytam