magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Google Analytics code being placed in body instead of head #29

Open magento-engcom-team opened 6 years ago

magento-engcom-team commented 6 years ago

Preconditions

  1. Magento version 2.1.5
  2. Google Analytics Account

Steps to reproduce

  1. Enable Google Analytics in Magento by going to Stores->Configuration->Sales->Google API
  2. Add your Google Account Number and Save

Expected result

  1. The Google Analytics code should be output neat the top the the tag on the page

Actual result

  1. The Google Analytics code is output near the top of the tag

Reference: https://developers.google.com/analytics/devguides/collection/analyticsjs/

Original Report: https://github.com/magento/magento2/issues/8837 by @mombrea

EduardoGB commented 6 years ago

MageTitansMX