Install Ptengine Script by Google Tag Manager

Google Tag Manager (GTM) is a tag management system (TMS) that allows you to manage all your website tags without editing code. This can be easily implemented by simply installing GTM and configuring the tags. There are two steps required to set up GTM.

  • 1 Create an account or use an existing account
  • 2 Installing the container
  • 3 Add tags

When using GTM to place Ptengine Experience script, you can easily implement them in one click by selecting an account and container. In this article, we will introduce 1) creating a new account 2) installing the container 3) Add tags.

  • 1Click here to create a new account and log in.

    Note: If you have an account, log in directly and select or create a container.

    ・Click "Create Account", enter the "Account Settings" > "Container Settings", and click "Create".

    ・Review the Terms of Service, and click "Done" in the upper right corner.

  • 2Paste the following tag into your website to install the container.

    Note: To set tags, you need to have permission to edit the source code of the target website.

    ・Access the site and use the File Transfer Protocol to access the host server.
    ・Paste the JavaScript and the snippet into the corresponding page of the website.
    ・Click "Save" at the end.

  • 3Copy the following tags, replace "GTM-XXXX" with the container ID, and paste them on all pages of the website as far up in the <head> as possible.
    <!-- Google Tag Manager -->
    <script>
    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-XXXX');
    </script>
    <!-- End Google Tag Manager -->

    Note: You can check the container ID in either of the two images below.

  • 4 Copy the following snippet, replace GTM-XXXX with your container ID, and paste this code right after the start tag <body> on every page of your website as follows.
    <!-- Google Tag Manager (noscript) -->
    <noscript>
    <iframe  src="https://www.googletagmanager.com/ns.html?id=GTM-XXXX"
    height="0" width="0" style="display:none;visibility:hidden"></iframe>
    </noscript>
    <!-- End Google Tag Manager (noscript) -->

That completes the preliminary preparations for placing the Ptengine Experience tags using Google Tag Manager!

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...