{"id":503,"date":"2018-02-04T07:05:05","date_gmt":"2018-02-04T07:05:05","guid":{"rendered":"https:\/\/flexia.pro\/docs\/custom-javascripts\/adding-google-analytics-code\/"},"modified":"2023-05-25T08:57:05","modified_gmt":"2023-05-25T08:57:05","password":"","slug":"adding-google-analytics-code","status":"publish","type":"docs","link":"https:\/\/flexia.pro\/docs\/adding-google-analytics-code\/","title":{"rendered":"Adding Google Analytics Code"},"content":{"rendered":"\n<p><a href=\"https:\/\/analytics.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Google Analytics<\/strong><\/a> helps you to track your web traffic and helps you to understand your customer&#8217;s behavior. You can use this amazing tool to make data-driven decisions and upgrade your marketing strategy. As the <a href=\"https:\/\/flexia.pro\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Flexia theme<\/strong><\/a> is fully compatible with Google Analytics, you can add Google Analytics code to your website easily. Now, follow this step-by-step guide to add Google Analytics code to in Flexia theme.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\"><strong>How To Add Google Analytics Code To Flexia<\/strong><\/h2>\n\n\n\n<p><strong><em>Note:<\/em><\/strong><em> This feature is controlled by <\/em><a href=\"https:\/\/wordpress.org\/plugins\/flexia-core\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>Flexia Core<\/em><\/strong><\/a><em> plugin. Make sure you have Flexia Core installed. Go to <\/em><a href=\"https:\/\/flexia.pro\/docs\/getting-started\/installing-flexia-core\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>this Doc<\/em><\/strong><\/a><em> to get help installing Flexia Core before following this tutorial.\u00a0<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Open Your Appearance Customizer <\/strong>&nbsp;<\/h3>\n\n\n\n<p>Go to your WordPress dashboard, then navigate to the \u2018<strong>Appearance<\/strong>\u2019 \u2192 \u2018<strong>Customize<\/strong>\u2019. There you can find the options to add Google Analytics codes. To set up your Google Analytics, you can read the <a href=\"https:\/\/support.google.com\/analytics\/answer\/1008080#zippy=%2Cin-this-article\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>instructions here<\/strong><\/a>.\u00a0<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1600\" height=\"752\" src=\"https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-2.gif\" alt=\"Google Analytics Code\" class=\"wp-image-1653\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Add Google Analytics Code&nbsp;<\/strong><\/h3>\n\n\n\n<p>Afterward, go to the <strong>\u2018Custom JavaScripts\u2019 \u2192 Google Analytics <\/strong>to paste your Google Analytics codes. You have to paste the same code provided by Google without adding any additional tags.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1600\" height=\"752\" src=\"https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-3.gif\" alt=\"Google Analytics Code\" class=\"wp-image-1654\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><strong>Final Outcome<\/strong><\/h3>\n\n\n\n<p>Once you have added your Google Analytics code, click on the \u2018<strong>Publish<\/strong>\u2019 button. This is how you can easily add Google Analytics code in Flexia.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1600\" height=\"778\" src=\"https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-1.png\" alt=\"Google Analytics Code\" class=\"wp-image-1652\" srcset=\"https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-1.png 1600w, https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-1-300x146.png 300w, https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-1-1024x498.png 1024w, https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-1-768x373.png 768w, https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-1-360x175.png 360w, https:\/\/flexia.pro\/wp-content\/uploads\/2023\/05\/image-1-1536x747.png 1536w\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n<\/div>\n\n\n<p>This is how easily you can easily <strong>add Google Analytics code <\/strong>in Flexia theme. Got stuck? Feel free to contact our <a href=\"https:\/\/wpdeveloper.com\/support\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>dedicated support team<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is how you can add Google Analytics code in Felixa theme to track your web traffic easily.<\/p>\n","protected":false},"author":2,"featured_media":1652,"template":"","meta":{"inline_featured_image":false,"footnotes":""},"doc_category":[17],"doc_tag":[42,41],"class_list":["post-503","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-custom-codes","doc_tag-google-analytics","doc_tag-google-analytics-code"],"year_month":"2026-04","word_count":230,"total_views":"1057","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Nazmul H. Rupok","author_nicename":"rupok","author_url":"https:\/\/flexia.pro\/author\/rupok\/"},"doc_category_info":[{"term_name":"Custom Codes","term_url":"https:\/\/flexia.pro\/docs-category\/custom-codes\/"}],"doc_tag_info":[{"term_name":"Google Analytics","term_url":"https:\/\/flexia.pro\/docs-tag\/google-analytics\/"},{"term_name":"Google Analytics Code","term_url":"https:\/\/flexia.pro\/docs-tag\/google-analytics-code\/"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/docs\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":6,"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/docs\/503\/revisions"}],"predecessor-version":[{"id":1656,"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/docs\/503\/revisions\/1656"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/media\/1652"}],"wp:attachment":[{"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/media?parent=503"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/doc_category?post=503"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/flexia.pro\/wp-json\/wp\/v2\/doc_tag?post=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}