How to add google adsense script into head tag in Drupal 8

  1.  Install "Google AdSense integration" module
  2.  Type your Publisher ID in the field as following. The first three Character "ca-" can be skipped. Save configuration.
  3. In the "Managed Ads" tag, enable Page-level ads and save configuration.
  4. Clear the cache of your website. The google adsense script has already embedded to the head tag.