Add GA
Summary: Add Google Analytics code. Reviewed By: danielbuechele Differential Revision: D17398649 fbshipit-source-id: 79acd7a9d3ac19a25deea3f84989860308f2787e
This commit is contained in:
committed by
Facebook Github Bot
parent
ea4b62c458
commit
6b58e813e5
@@ -45,6 +45,7 @@ const siteConfig = {
|
|||||||
'https://buttons.github.io/buttons.js',
|
'https://buttons.github.io/buttons.js',
|
||||||
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
|
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
|
||||||
'/js/code-blocks-buttons.js',
|
'/js/code-blocks-buttons.js',
|
||||||
|
'/js/google-analytics.js',
|
||||||
],
|
],
|
||||||
repoUrl,
|
repoUrl,
|
||||||
stylesheets: [],
|
stylesheets: [],
|
||||||
|
|||||||
16
website/static/js/google-analytics.js
Normal file
16
website/static/js/google-analytics.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2017-present, Facebook, Inc.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Turn off ESLint for this file because it's sent down to users as-is.
|
||||||
|
/* eslint-disable */
|
||||||
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
|
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
|
ga('create', 'UA-44373548-43', 'auto');
|
||||||
|
ga('send', 'pageview');
|
||||||
Reference in New Issue
Block a user