Erro al instalar Google Tag Manager
-
Hola amigos, el día de hoy he instalado los tag correspondientes para hacer un seguimiento a mi sitio web de wordpres.
He pegado los tag en el head y en el body de mi archivo header.php, pero cuando actualizao mi sitio desde un nuevo navegador se ve un codigo raro al inicio.
Les mando capturas de este problema y el codigo del header.phpSu ayuda urgente!
Muchas gracias de antemano<?php /** * The template for displaying the header * * Displays all of the head element and everything up until the page header div. * * @package Neve * @since 1.0.0 */ $header_classes = apply_filters( 'nv_header_classes', 'header' ); ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KW2CLQN');</script> <!-- End Google Tag Manager --> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php endif; ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?> <?php echo wp_kses( apply_filters( 'neve_body_data_attrs', '' ), array( '[class]' => true ) ); ?>> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KW2CLQN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <?php wp_body_open(); ?> <div class="wrapper"> <header class="<?php echo esc_attr( $header_classes ); ?>" role="banner"> <a class="neve-skip-link show-on-focus" href="#content" tabindex="0"> <?php echo __( 'Skip to content', 'neve' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </a> <?php neve_before_header_trigger(); if ( apply_filters( 'neve_filter_toggle_content_parts', true, 'header' ) === true ) { do_action( 'neve_do_header' ); } neve_after_header_trigger(); ?> </header> <?php do_action( 'neve_before_primary' ); ?> <main id="content" class="neve-main" role="main"> <?php do_action( 'neve_after_primary_start' );
La página con la que necesito ayuda: [accede para ver el enlace]
Viendo 2 respuestas - de la 1 a la 2 (de un total de 2)
Viendo 2 respuestas - de la 1 a la 2 (de un total de 2)
- El debate ‘Erro al instalar Google Tag Manager’ está cerrado a nuevas respuestas.