[wp-trac] [WordPress Trac] #12563: New action on body open

WordPress Trac noreply at wordpress.org
Wed Sep 12 05:23:05 UTC 2018


#12563: New action on body open
---------------------------+--------------------------
 Reporter:  joostdevalk    |       Owner:  joostdevalk
     Type:  enhancement    |      Status:  reopened
 Priority:  normal         |   Milestone:  5.0
Component:  Bundled Theme  |     Version:  3.1
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  template
---------------------------+--------------------------

Comment (by sky_76):

 Because the Google Tag Manager HTML snippet needs to be implemented\\
 **right after the opening body tag**\\
 in order to work correctly and to be recognised for website verification
 purposes for \\
 a) Google Search Console\\
 b) Google Merchant Center (the tool you need for Google Shopping campaigns
 to work)\\
 c) other stuff\\
 and many peope are using Wordpress for small ecommerce shops selling their
 individual goods.\\
 Not everybody wants to go with Shopify or Amazon. :-(

 The snippet needs to be right there.

 Not somewhere between <body> and </body>.

 Not in the <head>..</head> section.

 And surely not between </head> and <body>.

 It needs to be implemented **right after the opening body tag**.

 It this was unclear I can also provide a picture.

 And GTM may just be one example, but a very serious one. Thousands of
 users cannot imagine managing a website that wants to do marketing
 efficiently without it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/12563#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list