This page provides detailed instructions to remove Acquia CDP WebTag from your website, both for manual and Google Tag Manager (GTM) implementations.
Remove the manually implemented WebTag 2.0¶
Use the following checklist to remove manually implemented WebTag 2.0:
S.No. | Task | Description |
---|
1 | Remove Global WebTag 2.0 script | Delete the following from your <header> tags: |
2 | Remove Customer Object configuration | Remove all visitor object configurations and customer tracking code. |
3 | Remove tracking events | Remove all event tracking code snippets as applicable: - Login/logout tracking code
- Product browsing events
- Category browsing events
- Cart update events
- Checkout events
- Onsite search events
- Any custom event tracking code
|
Example of code to remove¶
// Remove this configuration block
var $A1Config = {
webtagId: "your-webtag-id",
tenantId: xxx,
host: "//url.endpoint.com"
};
// Remove this script reference
<script src="https://scripts.agilone.com/latest/acquia-cdp-webtag.js"></script>
Remove the Google Tag Manager (GTM) implemented WebTag 2.0¶
Use the following checklist to remove WebTag 2.0 implemented through GTM:
S.No. | Task | Description |
---|
1 | Access GTM workspace | Log in to Google Tag Manager and access the account and workspace for your website. |
2 | Remove essential tags | Locate and remove: - CDP - Global tag
- CDP - Customer Object tag
|
3 | Remove optional tags | Remove all CDP event tags as applicable: - CDP - Login
- CDP - Logout
- CDP - Products Browsed (PDP)
- CDP - Cart Updated
- CDP - Category Browsed (PLP)
- CDP - Search
- CDP - Checkout
- Any custom CDP tags
|
4 | Publish changes | Publish your GTM container after you remove all CDP-related tags as applicable. |
Verifying the removal of WebTag 2.0¶
After removing the WebTag, verify using the following steps:
- Open your website in Chrome
- Press the F12 key to access Chrome Developer Tools.
- Check the Network tab.
- Verify that no calls are being made to:
- scripts.agilone.com
- Acquia CDP endpoints
- Reload the page and perform basic interactions to confirm that no CDP-related scripts load.
If you continue to see CDP-related network calls, review your implementation and ensure all components have been removed.