{"id":25602,"date":"2018-03-30T00:00:00","date_gmt":"2018-03-29T18:30:00","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=25602"},"modified":"2024-03-18T14:07:10","modified_gmt":"2024-03-18T08:37:10","slug":"add-google-analytics-code","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/add-google-analytics-code\/","title":{"rendered":"\u00bfC\u00f3mo a\u00f1adir el c\u00f3digo de Google Analytics con el tema Astra?"},"content":{"rendered":"<p><a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/custom-layouts-pro\/\" target=\"_blank\" rel=\"noopener noreferrer\">Constructor del sitio<\/a> disponible con el plugin Astra Pro Addon permite a\u00f1adir c\u00f3digo de Google Analytics al sitio web. Proporciona ganchos para que pueda insertar c\u00f3digo personalizado en varios lugares en el sitio web sin necesidad de editar los archivos principales del tema.<\/p>\n\n\n\n<p>Se trata de una funci\u00f3n premium disponible con <strong>Complemento Astra Pro<\/strong> plugin. Para utilizar estas funciones Pro, debe disponer de la licencia <a href=\"https:\/\/wordpress.org\/themes\/astra\/\">Tema Astra<\/a> junto con el Addon Astra Pro instalado en su sitio web.<\/p>\n\n\n\n<p>Revise las siguientes secciones de este documento para saber m\u00e1s sobre c\u00f3mo a\u00f1adir el c\u00f3digo de Google Analytics utilizando el m\u00f3dulo Site Builder en Astra Pro.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u00bfC\u00f3mo a\u00f1adir el c\u00f3digo de Google Analytics a Astra?<\/strong><\/h3>\n\n\n\n<p>El c\u00f3digo de Google Analytics debe a\u00f1adirse lo m\u00e1s cerca posible de la etiqueta  de apertura. A continuaci\u00f3n se presentan los pasos para crear dise\u00f1o personalizado y a\u00f1adir c\u00f3digo utilizando ganchos.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Dise\u00f1o personalizado para a\u00f1adir c\u00f3digo a la etiqueta . <\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Active el m\u00f3dulo Site Builder desde Astra Pro.<\/li>\n\n\n\n<li>A\u00f1adir un nuevo dise\u00f1o personalizado desde Astra &gt; Constructor del sitio<\/li>\n\n\n\n<li>Seleccione&nbsp;<strong><a href=\"https:\/\/git-staging.wpastra.com\/es\/docs\/custom-layout-hooks\/\">Ganchos<\/a>&nbsp;<\/strong>dise\u00f1o<\/li>\n\n\n\n<li>&nbsp;Inserte el c\u00f3digo en el Editor de c\u00f3digo y establezca <strong>wp_head<\/strong>&nbsp;como acci\u00f3n.<\/li>\n\n\n\n<li>Elija mostrarlo en <strong>Todo el sitio web.<\/strong><\/li>\n\n\n\n<li>Publique la maqueta.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/01\/WP-head.webm\"><\/video><\/figure>\n\n\n\n<p>De este modo, al integrar correctamente el c\u00f3digo de Google Analytics en su sitio web Astra, habr\u00e1 abierto una puerta a un seguimiento y an\u00e1lisis mejorados.<\/p>\n\n\n\n<p>Esperamos que este documento le haya sido \u00fatil. Si tiene m\u00e1s preguntas, no dude en dejarnos un comentario a continuaci\u00f3n.<\/p>","protected":false},"excerpt":{"rendered":"<p>Site Builder module available with Astra Pro Addon plugin allows adding\u00a0Google Analytics code to the website.\u00a0It provides hooks so that you can insert custom code at various locations on the website without editing theme\u2019s core files. This is a premium feature available with Astra Pro Addon plugin. To use these Pro features, you need to [\u2026]<\/p>","protected":false},"author":20,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[108],"docs_tag":[],"class_list":{"0":"post-25602","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-general"},"spectra_custom_meta":{"_yoast_wpseo_primary_docs_category":["108"],"_wp_old_slug":["","how-to-add-google-analytics-code-with-astra-theme"],"_wp_page_template":["default"],"wpil_sync_report3":["1"],"wpil_links_inbound_internal_count":["0"],"wpil_links_inbound_internal_count_data":["a:0:{}"],"wpil_links_outbound_internal_count":["2"],"wpil_links_outbound_internal_count_data":["a:2:{i:0;a:9:{s:3:\"url\";s:85:\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2019\/08\/ast-2-google-analytics.png\";s:8:\"url_real\";s:85:\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2019\/08\/ast-2-google-analytics.png\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:128:\"<img src=\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2019\/08\/ast-2-google-analytics.png\" alt=\"\" class=\"wp-image-39269\"\/>\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}i:1;a:9:{s:3:\"url\";s:97:\"https:\/\/git-staging.wpastra.com\/docs\/how-to-add-google-analytics-code-with-custom-layouts-module\/\";s:8:\"url_real\";s:97:\"https:\/\/git-staging.wpastra.com\/docs\/how-to-add-google-analytics-code-with-custom-layouts-module\/\";s:4:\"host\";s:11:\"wpastra.com\";s:9:\"host_real\";s:11:\"wpastra.com\";s:8:\"internal\";b:1;s:7:\"post_id\";i:0;s:6:\"anchor\";s:55:\"add Google Analytics code with Custom Layouts Module.\u00a0\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}}"],"wpil_links_outbound_external_count":["2"],"wpil_links_outbound_external_count_data":["a:2:{i:0;a:9:{s:3:\"url\";s:42:\"https:\/\/wordpress.org\/plugins\/astra-hooks\/\";s:8:\"url_real\";s:42:\"https:\/\/wordpress.org\/plugins\/astra-hooks\/\";s:4:\"host\";s:13:\"wordpress.org\";s:9:\"host_real\";s:13:\"wordpress.org\";s:8:\"internal\";b:0;s:7:\"post_id\";i:0;s:6:\"anchor\";s:18:\"Astra Hooks plugin\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}i:1;a:9:{s:3:\"url\";s:42:\"https:\/\/wordpress.org\/plugins\/astra-hooks\/\";s:8:\"url_real\";s:42:\"https:\/\/wordpress.org\/plugins\/astra-hooks\/\";s:4:\"host\";s:13:\"wordpress.org\";s:9:\"host_real\";s:13:\"wordpress.org\";s:8:\"internal\";b:0;s:7:\"post_id\";i:0;s:6:\"anchor\";s:19:\"Astra Hooks plugin.\";s:15:\"added_by_plugin\";b:0;s:10:\"post_title\";s:0:\"\";}}"],"wpil_sync_report2_time":["2019-09-05T12:01:50+00:00"],"_edit_lock":["1710756419:89"],"_edit_last":["89"],"onesignal_meta_box_present":["1"],"onesignal_send_notification":[""],"site-sidebar-layout":["default"],"site-content-layout":["default"],"theme-transparent-header-meta":["default"],"_yoast_wpseo_content_score":["90"],"_ppc_meta_key":["a:8:{s:20:\"ppc_key5d92f85d42273\";s:60:\"Images &amp; Names Correctly. Title &amp; Alt Tags are Given\";s:8:\"ppc_key4\";s:15:\"Formatting Done\";s:8:\"ppc_key2\";s:23:\"Featured Image Assigned\";s:8:\"ppc_key3\";s:17:\"Category Selected\";s:8:\"ppc_key5\";s:15:\"Title is Catchy\";s:8:\"ppc_key6\";s:22:\"Social Images Assigned\";s:8:\"ppc_key7\";s:8:\"Done SEO\";s:8:\"ppc_key8\";s:28:\"Spelling and Grammar Checked\";}"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"_yoast_wpseo_title":["How to Add Google Analytics Code in the Astra Theme?"],"_ht_kb_post_views_count":["20"],"_ht_kb_usefulness":["0"],"_ht_article_order_108":["25602"],"wp_last_modified_info":["April 18, 2023 @ 4:06 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"views":["11274"],"helpful":["34"],"unhelpful":["26"],"redirects":["10"],"rank_math_primary_docs_category":["108"],"rank_math_title":["How to Add Google Analytics Code in the Astra Theme?"],"rank_math_news_sitemap_robots":["index"],"rank_math_robots":["a:1:{i:0;s:5:\"index\";}"],"rank_math_analytic_object_id":["1140"],"rank_math_seo_score":["18"],"rank_math_internal_links_processed":["1"],"rank_math_og_content_image":["a:2:{s:5:\"check\";s:32:\"02833800b81f5657eae92ad43952f332\";s:6:\"images\";a:1:{i:0;i:40809;}}"],"_wplmi_last_modified":["2023-04-18 16:06:38"],"_wpml_media_duplicate":["1"],"_trp_automatically_translated_slug_es_ES":["como-anadir-el-codigo-de-google-analytics-con-el-tema-astra"],"_uag_custom_page_level_css":[""],"ast-site-content-layout":["default"],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":["set"],"rank_math_schema_VideoObject":["a:12:{s:5:\"@type\";s:11:\"VideoObject\";s:8:\"metadata\";a:8:{s:5:\"title\";s:5:\"Video\";s:4:\"type\";s:8:\"template\";s:9:\"shortcode\";s:15:\"s-65c0b2100f8b3\";s:9:\"isPrimary\";b:1;s:23:\"reviewLocationShortcode\";s:24:\"[rank_math_rich_snippet]\";s:8:\"category\";s:12:\"%categories%\";s:4:\"tags\";s:6:\"%tags%\";s:15:\"isAutoGenerated\";b:1;}s:4:\"name\";s:11:\"%seo_title%\";s:11:\"description\";s:17:\"%seo_description%\";s:10:\"uploadDate\";s:20:\"%date(Y-m-dTH:i:sP)%\";s:12:\"thumbnailUrl\";s:16:\"%post_thumbnail%\";s:8:\"embedUrl\";s:0:\"\";s:10:\"contentUrl\";s:71:\"https:\/\/git-staging.wpastra.com\/wp-content\/uploads\/2024\/01\/WP-head.webm\";s:8:\"duration\";s:0:\"\";s:5:\"width\";i:1280;s:6:\"height\";i:584;s:16:\"isFamilyFriendly\";b:1;}"],"pfd_related_docs":[""],"_uag_page_assets":["a:9:{s:3:\"css\";s:2495:\".wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:7:{i:0;s:14:\"core\/paragraph\";i:1;s:12:\"core\/heading\";i:2;s:9:\"core\/list\";i:3;s:14:\"core\/list-item\";i:4;s:10:\"core\/video\";i:5;s:14:\"uagb\/container\";i:6;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1776540917\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"Anjali","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/anjalic\/"},"uagb_comment_info":0,"uagb_excerpt":"Site Builder module available with Astra Pro Addon plugin allows adding&nbsp;Google Analytics code to the website.&nbsp;It provides hooks so that you can insert custom code at various locations on the website without editing theme\u2019s core files. This is a premium feature available with Astra Pro Addon plugin. To use these Pro features, you need to&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/25602"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=25602"}],"version-history":[{"count":1,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/25602\/revisions"}],"predecessor-version":[{"id":175380,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/25602\/revisions\/175380"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=25602"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=25602"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=25602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}