> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.poool.fr/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to integrate Poool Access through GTM?

It is possible to load the Poool script through Google Tag Manager. This allows you to display a paywall dynamically without directly modifying your site’s code. In this article, we outline the main steps to follow.

||| When choosing integration through GTM, keep the following points in mind:
* GTM can be blocked by ad blockers, which will also block Poool and prevent the paywall from displaying.
* The script loading time may be longer compared to a direct integration.

# Prerequisites

Before getting started, make sure that:

* You have access to your Google Tag Manager account.
* Your site is properly set up with GTM.
* You have your Poool App ID available.

# Step 1 : Creating a Custom HTML Tag in GTM

In your Google Tag Manager account, click on your GTM container.

Go to the **Tags** tab and click on **New**.

You can give it a name, for example: **"Poool"**.

In **Tag Configuration**, choose **Custom HTML**.

Then, paste the **Access** and **Audit** script codes.

Here is a simple version. You can adjust it with your own configurations as needed. Feel free to check our [documentation](https://www.poool.dev/en/docs/access/javascript/access/installation) for more details.

```
<script id="poool-access" src="https://assets.poool.fr/access.min.js" async></script>  
<script id="poool-audit" src="https://assets.poool.fr/audit.min.js" async></script>  
<script>  
var scriptAccess = document.getElementById('poool-access');  
var init = function () {  
Access  
 .init('<your-app-id>')  
 .config('{cookies_enabled': true})  
 .createPaywall({  
  target: '#poool-widget',  
  content: '[data-poool]',  
  mode: 'excerpt',  
  percent: 80,  
  pageType: 'premium',  
  });  
 };  
if (window.Access) {  
  init();  
} else {  
  scriptAccess.addEventListener('load', function () {  
   init();  
  });  
}

var scriptAudit = document.getElementById('poool-audit');  
scriptAudit.addEventListener('load', function () {  
 Audit  
  .init('<your-app-id>')  
  .config('{cookies_enabled': true})  
  .sendEvent('page-view', { type: 'premium' });  
 });  
</script>
```

# Step 2 : Adding a Trigger

In the same tag, click on **Trigger**.

Choose **All Pages** if you want the script to run across the entire site or specify your targeting before saving.

[![](https://storage.crisp.chat/users/helpdesk/website/-/1/5/f/7/15f729c5b0309800/017ca8f0-4a8d-460c-ac01-dc278c_10ye0u1.png)](https://downloads.intercomcdn.com/i/o/s22rivig/1406579398/98aea4bc2a8b66504b01ba032756/Capture+d%E2%80%99e%CC%81cran+2025-03-04+a%CC%80+16_55_11.png?expires=1773333000&signature=c579e70ae25c0dc770f376a8e949873cfedb87fc32557a001dda3549a8fee78b&req=dSQnEMx5lIJWUfMW1HO4zdznNqPMwaqL31CvwLZDeXrG19L%2FRsyXUa%2BNx3q4%0A5RPQE1fz1Jlvi%2F6EOZE%3D%0A)

# Step 3 : Checking the Implementation

To ensure everything is working correctly:

* Go to your site and open the browser console (F12 > **Console** tab).
* Look for JavaScript related to Poool.
* Test the paywall display by enabling **Preview Mode** in GTM.

Feel free to adjust your configurations based on your specific needs and the final rendering you aim to achieve.

If you have any questions, our team is here to help 🙂