Click Id (Page) Tag

Web client page tracking integration can be done via Google Tag Manager (GTM) tag or by adding inline JavaScript.

JavaScript Implementation

//Paste this code before the closing </body> tag:
  <script type="module">
    import * as adp from "https://cdn.adpartners.io/adp-client/dist/adp-client-v2.js";
    window._adp = window._adp || adp;
  </script>

GTM Implementation

  1. Login to your Google Tag Manager and choose appropriate Container under your Tag Manager Accounts

  2. Then navigate to "Workspace" -> Tags" page from the left menu

  3. Create a new Tag by clicking the "New" button.

  4. Click and open tag configuration panel and choose "Custom Html" as tag type

  5. Place the Javascript implementation code , enable "Support document write" and choose "All Pages" triggering as shown below:

  6. Then click "Save" button and after that your container is ready to publish.

Validating Implementation

Before starting validation be sure you can see the adp-client.js in your html source codes as shown below:

After visiting your web site open browsers "Developer Tool" and navigate to "Console" tab.

Write codes below in your browser console and the results will be shown.

window._adp
window._adpClient

Last updated