We have installed Lastest Magento Version 2.2.5 and Also add google analytics id but not show on frontend
I went to
Stores | Configuration Sales > Google API Google Analytics Enable: Yes Account Number: The UA Tracking Code
Clicked Save Config But
Refreshed front end it's not adding the script confirmed with Tag Assistant extension for Google Chrome.
Version: Magento 2.2.5
Also Cookie Restriction mode is set to No General > Web > Default Cookie Settings Cookie Restriction Mode: No
Okay what fixed it was silly, for me a cache flush. Might be doable via admin back end but I mostly use the shell for this.
Also cleared Cloud Flare and mod page speed caches that were in use just in-case.