{"action":"created","issue":{"url":"https://api.github.com/repos/jekyll/jekyll-seo-tag/issues/82","repository_url":"https://api.github.com/repos/jekyll/jekyll-seo-tag","labels_url":"https://api.github.com/repos/jekyll/jekyll-seo-tag/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll-seo-tag/issues/82/comments","events_url":"https://api.github.com/repos/jekyll/jekyll-seo-tag/issues/82/events","html_url":"https://github.com/jekyll/jekyll-seo-tag/issues/82","id":153425049,"number":82,"title":"Question about Google Analytics","user":{"login":"iloveip","id":4873895,"avatar_url":"https://avatars.githubusercontent.com/u/4873895?v=3","gravatar_id":"","url":"https://api.github.com/users/iloveip","html_url":"https://github.com/iloveip","followers_url":"https://api.github.com/users/iloveip/followers","following_url":"https://api.github.com/users/iloveip/following{/other_user}","gists_url":"https://api.github.com/users/iloveip/gists{/gist_id}","starred_url":"https://api.github.com/users/iloveip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iloveip/subscriptions","organizations_url":"https://api.github.com/users/iloveip/orgs","repos_url":"https://api.github.com/users/iloveip/repos","events_url":"https://api.github.com/users/iloveip/events{/privacy}","received_events_url":"https://api.github.com/users/iloveip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-05-06T10:38:10Z","updated_at":"2017-01-15T03:26:59Z","closed_at":"2016-05-06T20:34:06Z","body":"Hi there,\n\nI see that jekyll-seo-tag generates `<script async=\"\" src=\"//www.google-analytics.com/analytics.js\"></script>` in the `<head>` of the site. Do I need to include the standard Google Analytics script to the site additionally? If not, how do I add Google Analytics ID code (UA-XXXXXXXX-X) to the script above?\n"},"comment":{"url":"https://api.github.com/repos/jekyll/jekyll-seo-tag/issues/comments/272670936","html_url":"https://github.com/jekyll/jekyll-seo-tag/issues/82#issuecomment-272670936","issue_url":"https://api.github.com/repos/jekyll/jekyll-seo-tag/issues/82","id":272670936,"user":{"login":"jhabdas","id":440298,"avatar_url":"https://avatars.githubusercontent.com/u/440298?v=3","gravatar_id":"","url":"https://api.github.com/users/jhabdas","html_url":"https://github.com/jhabdas","followers_url":"https://api.github.com/users/jhabdas/followers","following_url":"https://api.github.com/users/jhabdas/following{/other_user}","gists_url":"https://api.github.com/users/jhabdas/gists{/gist_id}","starred_url":"https://api.github.com/users/jhabdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhabdas/subscriptions","organizations_url":"https://api.github.com/users/jhabdas/orgs","repos_url":"https://api.github.com/users/jhabdas/repos","events_url":"https://api.github.com/users/jhabdas/events{/privacy}","received_events_url":"https://api.github.com/users/jhabdas/received_events","type":"User","site_admin":false},"created_at":"2017-01-15T03:26:59Z","updated_at":"2017-01-15T03:26:59Z","body":"FWIW, and though not related to this gem, I also saw this behavior using the GA async template and the following code:\r\n\r\n```liquid\r\n{% if jekyll.environment == 'production' and site.google_analytics_key != '' %}\r\n\t<script>\r\n\t\t(function(i,s,o,g,r,a,m){i[\"GoogleAnalyticsObject\"]=r;i[r]=i[r]||function(){\r\n\t\t(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\r\n\t\tm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\r\n\t})(window,document,\"script\",\"//www.google-analytics.com/analytics.js\",\"ga\");\r\n\r\n\t\tga(\"create\", \"{{ site.google_analytics_key }}\", \"auto\");\r\n\t\tga(\"send\", \"pageview\");\r\n\t</script>\r\n{% endif %}\r\n```\r\n\r\nNote this is occurring because the async tag creates a [Script DOM Element](https://www.stevesouders.com/blog/2009/04/27/loading-scripts-without-blocking/) in the head and simply chooses to plop itself in between the Jekyll SEO Tag gem comment block. :)~\r\n\r\n<img width=\"447\" alt=\"screen shot 2017-01-15 at 11 20 15 am\" src=\"https://cloud.githubusercontent.com/assets/440298/21960020/e9cbe5dc-db14-11e6-9de7-85ec29bdb9be.png\">\r\n"}}
{"actor":{"display_login":"jhabdas"}}