{"id":13029,"date":"2021-03-01T13:39:04","date_gmt":"2021-03-01T13:39:04","guid":{"rendered":"https:\/\/kriesi.at\/documentation\/enfold\/?p=13029"},"modified":"2022-08-17T11:29:32","modified_gmt":"2022-08-17T11:29:32","slug":"custom-element-templates","status":"publish","type":"post","link":"https:\/\/kriesi.at\/documentation\/enfold\/custom-element-templates\/","title":{"rendered":"Custom Element Templates"},"content":{"rendered":"<p>\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-klqly1h8-fc9d8d930d841c15598d3bbf838f1496\">\n#top .av-special-heading.av-klqly1h8-fc9d8d930d841c15598d3bbf838f1496{\npadding-bottom:10px;\n}\nbody .av-special-heading.av-klqly1h8-fc9d8d930d841c15598d3bbf838f1496 .av-special-heading-tag .heading-char{\nfont-size:25px;\n}\n.av-special-heading.av-klqly1h8-fc9d8d930d841c15598d3bbf838f1496 .av-subheading{\nfont-size:15px;\n}\n<\/style>\n<div  class='av-special-heading av-klqly1h8-fc9d8d930d841c15598d3bbf838f1496 av-special-heading-h2 blockquote modern-quote  avia-builder-el-0  el_before_av_hr  avia-builder-el-first  av-linked-heading'><h2 class='av-special-heading-tag '  itemprop=\"headline\"  >Custom Element Templates<\/h2><div class=\"special-heading-border\"><div class=\"special-heading-inner-border\"><\/div><\/div><\/div><br \/>\n<div  class='hr av-4l81w9-b5b0c6c84c0027478f93af1559d8b8ff hr-default  avia-builder-el-1  el_after_av_heading  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div><br \/>\n<section  class='av_textblock_section av-4eoa8p-1d9434f1064ec09e86a2ae989dda5869 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Basics<\/h3>\n<\/div><\/section><br \/>\n<section  class='av_textblock_section av-49omnd-62739c0db00a41ea88cc44f90b806c7d '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Google Analytics can track almost everything on your site and give you an insight into page views, search terms, user navigation and much more. Using the analytics data we can improve the site performance.<br \/>\nYou will learn how to add Google Analytics to Enfold theme using a few different methods:<\/p>\n<ul>\n<li>Add Google Analytics to Enfold theme using the built-in theme options.<\/li>\n<li>How to manually add the Google Analytics tracking code to your Enfold theme.<\/li>\n<li>How to use a Google Analytics WordPress plugin.<\/li>\n<li>Enable Google Analytics on your site using the Google Tag Manager.<\/li>\n<\/ul>\n<\/div><\/section><br \/>\n<div  class='hr av-3zu17t-4c9ac709971ad699358bf98d29d6cf55 hr-default'><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div><br \/>\n<section  class='av_textblock_section av-28tuw9-76922045001b74db397abf8fa6279d32 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Creating a Google Analytics Account<\/h3>\n<\/div><\/section><br \/>\n<section  class='av_textblock_section av-28tuw9-76922045001b74db397abf8fa6279d32 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>We assume that you already have an account set up with Google Analytics. If not don&#8217;t worry, getting started with Google Analytics is not as complicated as it looks. We won&#8217;t go in full detail to create the account but here is the basic steps you need to perform:<\/p>\n<\/div><\/section><br \/>\n<div  class='togglecontainer av-jjzniohk-a65619d1cddeb94ca8e627136b2fec1e av-minimal-toggle toggle_close_all' >\n<section class='av_toggle_section av-1hub2um-3e539d9f942f4fea655df1485fee5ccb'  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div role=\"tablist\" class=\"single_toggle\" data-tags=\"{All} \"  ><p id='toggle-toggle-id-1' data-fake-id='#toggle-id-1' class='toggler  av-title-above '  itemprop=\"headline\"  role='tab' tabindex='0' aria-controls='toggle-id-1' data-slide-speed=\"200\" data-title=\"Step 1: Register for a FREE Google Analytics account\" data-title-open=\"\" data-aria_collapsed=\"Click to expand: Step 1: Register for a FREE Google Analytics account\" data-aria_expanded=\"Click to collapse: Step 1: Register for a FREE Google Analytics account\">Step 1: Register for a FREE Google Analytics account<span class=\"toggle_icon\"><span class=\"vert_icon\"><\/span><span class=\"hor_icon\"><\/span><\/span><\/p><div id='toggle-id-1' aria-labelledby='toggle-toggle-id-1' role='region' class='toggle_wrap  av-title-above'  ><div class='toggle_content invers-color '  itemprop=\"text\" ><p>First, signup for a <a href=\"http:\/\/google.com\/analytics\/\" target=\"_blank\" rel=\"noopener noreferrer\">free Google Analytics account<\/a>.<\/p>\n<\/div><\/div><\/div><\/section>\n<section class='av_toggle_section av-17eszm6-670c53bafb6fdbbb0a67f57a059c3590'  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div role=\"tablist\" class=\"single_toggle\" data-tags=\"{All} \"  ><p id='toggle-toggle-id-2' data-fake-id='#toggle-id-2' class='toggler  av-title-above '  itemprop=\"headline\"  role='tab' tabindex='0' aria-controls='toggle-id-2' data-slide-speed=\"200\" data-title=\"Step 2: Create a new analytics property\" data-title-open=\"\" data-aria_collapsed=\"Click to expand: Step 2: Create a new analytics property\" data-aria_expanded=\"Click to collapse: Step 2: Create a new analytics property\">Step 2: Create a new analytics property<span class=\"toggle_icon\"><span class=\"vert_icon\"><\/span><span class=\"hor_icon\"><\/span><\/span><\/p><div id='toggle-id-2' aria-labelledby='toggle-toggle-id-2' role='region' class='toggle_wrap  av-title-above'  ><div class='toggle_content invers-color '  itemprop=\"text\" ><p>In this step, let&#8217;s create a new &#8220;Property&#8221; so we can add our site to this Property and manage it easily in the future.<\/p>\n<ul>\n<li>Click on the Admin option at the bottom left<\/li>\n<li>Look for the &#8220;Create Property&#8221; button and click on it to proceed.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12722\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property.png\" alt=\"\" width=\"1075\" height=\"793\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property.png 1075w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-300x221.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-768x567.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-1030x760.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-705x520.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-600x443.png 600w\" sizes=\"auto, (max-width: 1075px) 100vw, 1075px\" \/><\/li>\n<li>In this screen select the &#8220;Web&#8221; property and continue. Please note that &#8220;Apps and Web&#8221; is still a BETA version and may not work properly.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12723\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/web-property.png\" alt=\"\" width=\"1185\" height=\"674\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/web-property.png 1185w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/web-property-300x171.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/web-property-768x437.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/web-property-1030x586.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/web-property-705x401.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/web-property-600x341.png 600w\" sizes=\"auto, (max-width: 1185px) 100vw, 1185px\" \/><\/li>\n<li> In the final step of creating a property, you will be prompted to enter the website details of which you want to track using google analytics. Enter the details and click on the &#8220;Create&#8221; button at the bottom.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-details.png\" alt=\"\" width=\"512\" height=\"560\" class=\"alignnone size-full wp-image-12725\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-details.png 512w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/property-details-274x300.png 274w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/li>\n<\/ul>\n<\/div><\/div><\/div><\/section>\n<section class='av_toggle_section av-w45xfy-0f4573116d4da09d225f42ca8e09d623'  itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div role=\"tablist\" class=\"single_toggle\" data-tags=\"{All} \"  ><p id='toggle-toggle-id-3' data-fake-id='#toggle-id-3' class='toggler  av-title-above '  itemprop=\"headline\"  role='tab' tabindex='0' aria-controls='toggle-id-3' data-slide-speed=\"200\" data-title=\"Step 3. Get your Analytics Tracking code\" data-title-open=\"\" data-aria_collapsed=\"Click to expand: Step 3. Get your Analytics Tracking code\" data-aria_expanded=\"Click to collapse: Step 3. Get your Analytics Tracking code\">Step 3. Get your Analytics Tracking code<span class=\"toggle_icon\"><span class=\"vert_icon\"><\/span><span class=\"hor_icon\"><\/span><\/span><\/p><div id='toggle-id-3' aria-labelledby='toggle-toggle-id-3' role='region' class='toggle_wrap  av-title-above'  ><div class='toggle_content invers-color '  itemprop=\"text\" ><p>After creating the analytics property, we are just one step away from tracking your website. We need to now copy the required analytics code and install it on our website to start tracking \ud83d\ude42<br \/>\nTo copy the analytics code click on the Admin menu and select &#8220;Tracking Code&#8221; under Tracking Info.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12728\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Tracking-Code.png\" alt=\"\" width=\"1170\" height=\"582\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Tracking-Code.png 1170w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Tracking-Code-300x149.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Tracking-Code-768x382.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Tracking-Code-1030x512.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Tracking-Code-705x351.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Tracking-Code-600x298.png 600w\" sizes=\"auto, (max-width: 1170px) 100vw, 1170px\" \/><\/p>\n<\/div><\/div><\/div><\/section>\n<\/div><br \/>\n<div  class='hr av-3zu17t-4c9ac709971ad699358bf98d29d6cf55 hr-default  avia-builder-el-5  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div><br \/>\n<section  class='av_textblock_section av-2i5oeh-cdfdc2f8f7ce04c7f252c16acf42ca11 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>Set up Google Analytics<\/h2>\n<\/div><\/section><br \/>\n<div  class='hr av-3zu17t-4c9ac709971ad699358bf98d29d6cf55 hr-default'><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div><br \/>\n<section  class='av_textblock_section av-28tuw9-76922045001b74db397abf8fa6279d32 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Enable Google Analytics from the theme options<\/h3>\n<\/div><\/section><br \/>\n<section  class='av_textblock_section av-28tuw9-76922045001b74db397abf8fa6279d32 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Google Analytics can be enabled from Enfold Theme Options > Google Services > Google Analytics > Google Analytics Tracking Code.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12732\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Theme-Options.png\" alt=\"\" width=\"882\" height=\"516\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Theme-Options.png 882w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Theme-Options-300x176.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Theme-Options-768x449.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Theme-Options-705x412.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2019\/11\/Theme-Options-600x351.png 600w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/p>\n<\/div><\/section><br \/>\n<div  class='hr av-3zu17t-4c9ac709971ad699358bf98d29d6cf55 hr-default  avia-builder-el-8  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div><br \/>\n<section  class='av_textblock_section av-28tuw9-76922045001b74db397abf8fa6279d32 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Manually add tracking code<\/h3>\n<\/div><\/section><br \/>\n<section  class='av_textblock_section av-28tuw9-76922045001b74db397abf8fa6279d32 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>To verify your site and enable Google search console in your <a href=\"https:\/\/www.google.com\/webmasters\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Webmaster tool<\/a>, it needs to be in a specific format and this can be achieved by adding the Analytics code manually to your child theme functions.php file.<\/p>\n<\/div><\/section><br \/>\n<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\/\/ Custom script in the head section<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nfunction gtag_script(){<br \/>\n?><br \/>\n<!-- Google site verification --><br \/>\n<meta name=\"google-site-verification\" content=\"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\" \/><br \/>\n<!-- Global site tag (gtag.js) - Google Analytics --><br \/>\n<!-- YOUR CODE HERE --><br \/>\n<!-- End Google Tag Manager --><br \/>\n<?php\n}\nadd_action('wp_head', 'gtag_script');\n[\/av_codeblock]\n[av_hr class='default' height='50' shadow='no-shadow' position='center' custom_border='av-border-thin' custom_width='50px' custom_border_color='' custom_margin_top='30px' custom_margin_bottom='30px' icon_select='yes' custom_icon_color='' icon='ue808' av_uid='av-3zu17t']\n[av_textblock size='' font_color='' color='' id='' custom_class='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' av_uid='av-28tuw9' admin_preview_bg='']\n\n\n<h3>Use a plugin to insert the code.<\/h3>\n<p>[\/av_textblock]<br \/>\n<section  class='av_textblock_section av-28tuw9-76922045001b74db397abf8fa6279d32 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Another prefered method to install Google Analytics on WordPress sites is by using a plugin. Not only it is easy to use but also provides additionsl features to easily view your stats. Browse through some of the <a href=\"https:\/\/wordpress.org\/plugins\/search\/Google+Analytics\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Analytics Plugins<\/a> on the WordPress plugins directory. We simply cannot test all the plugins and recommend which ones to use. Most of the plugins should work fine with Enfold without any issue. Go ahead and give it a try!<br \/>\nRecommended Plugins<br \/>\n<a href=\"https:\/\/sitekit.withgoogle.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Google Site Kit<\/a><\/p>\n<\/div><\/section><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[2,12],"tags":[],"class_list":["post-13029","post","type-post","status-publish","format-standard","hentry","category-documentation","category-explore","documentation","explore"],"modified_by":"Yigit","_links":{"self":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/13029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/comments?post=13029"}],"version-history":[{"count":1,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/13029\/revisions"}],"predecessor-version":[{"id":13032,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/13029\/revisions\/13032"}],"wp:attachment":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/media?parent=13029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/categories?post=13029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/tags?post=13029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}