How to install the Ptengine tracking code

Setting Up the Basic Tracking Code #

With just one simple code snippet, you can unlock full insights into visitor behavior, heatmaps, A/B testing, personalization, and more—all in one platform.

How to Install the Basic Code for Best Performance

  • Place the Basic Code inside the <head> section of your website’s HTML.

Important: If the code is placed incorrectly, you may experience visual flickering on your site.

⚠ Avoid Common Mistakes

❌ Do NOT install multiple Basic Codes on the same page—this can lead to inaccurate data tracking.

❌ If you have tracking issues, check that only one Ptengine Basic Code is installed.

Need help? Contact our technical support team for assistance.

What is the Basic Code? #

Like other analytics tools, Ptengine collects data using a small JavaScript snippet. We call this the "Basic Code."

  • This snippet includes your Profile ID and helps track visitor behavior.
  • Once installed, Ptengine will start collecting insights automatically.

In the next section, we’ll guide you through setting up the Basic Code step by step.

How to Set Up the Basic Tracking Code #

To ensure accurate data tracking and the best performance, follow these setup recommendations.

Recommended Setup

  • Place the Basic Code inside the <head> section of your website’s HTML.

If placed incorrectly, you may experience visual flickering.

⚠ Important: Avoid Tracking Issues

❌ Do NOT install multiple Ptengine Basic Codes on the same page—this can lead to inaccurate data.

❌ If you notice tracking issues, double-check that only one Basic Code is installed.

Need help? Contact our support team for assistance.

Alternative Setup Methods #

Using a Website Builder?

If you're using a platform like Shopify or Shoplazza, follow the platform-specific guides:

  • [Shoplazza Guide]
  • [Shopify Guide]

Using a different website builder? Contact us, and we’ll help you set up Ptengine on your site.

Using a Tag Management System (TMS)?

If you’re 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.

  • Recommended Fix: Enable synchronous loading within your TMS for smoother performance.

How Ptengine Loads & Its Impact on Speed #

Code Loading Method

Ptengine’s Basic Code uses synchronous loading, which ensures:

  • More accurate data tracking
  • Less maintenance & easier management
  • Better compatibility across browsers

Does Ptengine Affect Page Speed?

No, Ptengine has minimal impact on your website’s speed.

  • Our tracking tag loads within milliseconds, thanks to CDN technology and optimized algorithms.
  • Even during popup or experience deployments, the loading time stays below 500ms, which does not affect the user experience.

Best Practice: For optimal performance, always place the Basic Code inside the <head> tag. However, if needed, placing it in <body> will not drastically impact speed.

Was this article helpful?

  • Yes, great!
  • Not really

Thanks for your feedback.

  Sorry about that. Do you mind sharing how we can improve?

    Write your feedback here...