{"id":417,"date":"2020-09-15T15:41:01","date_gmt":"2020-09-15T07:41:01","guid":{"rendered":"https:\/\/help.ptengine.jp\/?post_type=docs&#038;p=417"},"modified":"2025-04-08T11:32:49","modified_gmt":"2025-04-08T03:32:49","slug":"ptengine-tag","status":"publish","type":"docs","link":"https:\/\/help.ptengine.com\/docs\/ptengine-tag\/","title":{"rendered":"How to install the Ptengine tracking code"},"content":{"rendered":"<h2><strong>Setting Up the Basic Tracking Code<\/strong><\/h2>\n<p>With just one <strong>simple code snippet<\/strong>, you can unlock <strong>full insights<\/strong> into visitor behavior, heatmaps, A\/B testing, personalization, and more\u2014all in one platform.<\/p>\n<h3><strong>How to Install the Basic Code for Best Performance<\/strong><\/h3>\n<ul>\n<li>Place the <strong>Basic Code<\/strong> inside the <code>&lt;head&gt;<\/code> section of your website\u2019s HTML.<\/li>\n<\/ul>\n<p><strong>Important:<\/strong> If the code is placed incorrectly, you may experience <strong>visual flickering<\/strong> on your site.<\/p>\n<h3><strong>\u26a0 Avoid Common Mistakes<\/strong><\/h3>\n<p>\u274c Do NOT install multiple Basic Codes on the same page\u2014this can lead to inaccurate data tracking.<\/p>\n<p>\u274c If you have tracking issues, check that only one Ptengine Basic Code is installed.<\/p>\n<p>Need help? Contact our technical support team for assistance.<\/p>\n<h2><strong>What is the Basic Code?<\/strong><\/h2>\n<p>Like other analytics tools, Ptengine collects data using a small JavaScript snippet. We call this the <strong>&quot;Basic Code.&quot;<\/strong><\/p>\n<ul>\n<li>This snippet includes your <strong>Profile ID<\/strong> and helps track visitor behavior.<\/li>\n<li>Once installed, Ptengine will start collecting insights automatically.<\/li>\n<\/ul>\n<p>In the next section, we\u2019ll guide you through setting up the Basic Code step by step.<\/p>\n<p><img src=\"https:\/\/help.ptengine.com\/wp-content\/uploads\/2020\/09\/image-2025-04-08T113110.954.png\" alt=\"\" \/><\/p>\n<h2><strong>How to Set Up the Basic Tracking Code<\/strong><\/h2>\n<p>To ensure <strong>accurate data tracking<\/strong> and the <strong>best performance<\/strong>, follow these setup recommendations.<\/p>\n<h3><strong>Recommended Setup<\/strong><\/h3>\n<ul>\n<li><strong>Place the Basic Code inside the <code>&lt;head&gt;<\/code> section<\/strong> of your website\u2019s HTML.<\/li>\n<\/ul>\n<p><strong>If placed incorrectly, you may experience visual flickering.<\/strong><\/p>\n<h3><strong>\u26a0 Important: Avoid Tracking Issues<\/strong><\/h3>\n<p>\u274c Do NOT install multiple Ptengine Basic Codes on the same page\u2014this can lead to inaccurate data.<\/p>\n<p>\u274c If you notice tracking issues, double-check that only one Basic Code is installed.<\/p>\n<p>Need help? Contact our support team for assistance.<\/p>\n<h2><strong>Alternative Setup Methods<\/strong><\/h2>\n<h3><strong>Using a Website Builder?<\/strong><\/h3>\n<p>If you're using a platform like Shopify or Shoplazza, follow the platform-specific guides:<\/p>\n<ul>\n<li><strong>[Shoplazza Guide]<\/strong><\/li>\n<li><strong>[Shopify Guide]<\/strong><\/li>\n<\/ul>\n<p>Using a different website builder? Contact us, and we\u2019ll help you set up Ptengine on your site.<\/p>\n<h3><strong>Using a Tag Management System (TMS)?<\/strong><\/h3>\n<p>If you\u2019re installing Ptengine through a Tag Management System (TMS) (e.g., Google Tag Manager - GTM), be aware that many TMSs use asynchronous loading, which can cause visual flickering.<\/p>\n<ul>\n<li><strong>Recommended Fix:<\/strong> Enable <strong>synchronous loading<\/strong> within your TMS for smoother performance.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Setting Up the Basic Tracking Code With just one simple&hellip;&nbsp;<a href=\"https:\/\/help.ptengine.com\/docs\/ptengine-tag\/\" class=\"\" rel=\"bookmark\">\u9605\u8bfb\u66f4\u591a &raquo;<span class=\"screen-reader-text\">How to install the Ptengine tracking code<\/span><\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"parent":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"doc_category":[3],"doc_tag":[],"_links":{"self":[{"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/docs\/417"}],"collection":[{"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/comments?post=417"}],"version-history":[{"count":21,"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/docs\/417\/revisions"}],"predecessor-version":[{"id":10393,"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/docs\/417\/revisions\/10393"}],"wp:attachment":[{"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/media?parent=417"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/doc_category?post=417"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.ptengine.com\/wp-json\/wp\/v2\/doc_tag?post=417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}