Skip to content
My Agile Pixel® server-side, made easy
CMP

How to integrate server-side tracking with your Consent Management Platform

Updated Nov 2026 8 min read

My Agile Pixel® proxies and anonymizes your tracking data; when to send it is decided by the user’s consent, managed by your Consent Management Platform. That’s why My Agile Pixel® integrates natively with the main cookie and consent management plugins: proxied data is sent only after the user has given consent.

The available native integrations are:

With My Agile Privacy® the integration is automatic and zero-configuration; with the other platforms it only takes a few guided steps. Let’s walk through them.

Please note: before proceeding, remove any installations of Google Analytics, Facebook or TikTok present in your theme code or added through other methods, and disable the cookies related to Google Analytics, Facebook Remarketing or TikTok Pixel for the services you will integrate into My Agile Pixel®.

In the general settings of My Agile Pixel®, find the option “Connect with Cookie / GDPR plugin“, select My Agile Privacy®, Cookiebot, Iubenda, CookieYes or Complianz and save the settings.

The Connect with Cookie / GDPR plugin option in the My Agile Pixel® settings

Integration with My Agile Privacy®

The integration is entirely automatic. My Agile Privacy® integrates 100% with My Agile Pixel®: it is the Consent Management Platform itself that runs the relevant code and therefore the sending of proxied data, based on the options you have set for Google, Facebook and TikTok. Users can accept all cookies (including proxied Google, Facebook and TikTok) or choose them one by one, in a granular way.

Integration with Cookiebot

The integration is automatic. All you need to do is create 3 custom cookies to replace the original Google Analytics, Facebook and TikTok ones (see details). The sending of proxied data to Google Analytics (and the setting of the related cookies) is triggered by consent to Statistics cookies; sending to Facebook and TikTok is triggered by consent to Marketing cookies.

Integration with Iubenda

To integrate My Agile Pixel® you need to make a few changes to the Iubenda integration code, in addition to creating 3 custom cookies to replace the original Google Analytics, Facebook and TikTok ones (see details). The “Cookie Solutions” code provided by Iubenda will look something like this:

<script type="text/javascript">
    var _iub = _iub || [];
    _iub.csConfiguration = {
        "consentOnContinuedBrowsing": false,
        "countryDetection": true,
        "enableCcpa": true,
        "invalidateConsentWithoutLog": true,
        "perPurposeConsent": true,
        "siteId": 000000,
        "whitelabel": false,
        "cookiePolicyId": 000000,
        "lang": "it",
        "banner": {
            "acceptButtonDisplay": true,
            "closeButtonRejects": true,
            "customizeButtonDisplay": true,
            "explicitWithdrawal": true,
            "listPurposes": true,
            "position": "bottom",
            "rejectButtonDisplay": true,
            "slideDown": false
        }
    };
</script>
<script type="text/javascript" src="//cdn.iubenda.com/cs/ccpa/stub.js"></script>
<script type="text/javascript" src="//cdn.iubenda.com/cs/iubenda_cs.js" charset="UTF-8" async></script>

Add this additional parameter:

"callback": {
                "onConsentGiven": function (preference) {
                    window.MyAgilePixelAnalytics( mpx_settings );
                    window.MyAgilePixelFbCAPI( mpx_settings );
                    window.MyAgilePixelTikTokCapi( mpx_settings );

                }
}

The complete code will therefore look like this (the added part is between line 23 and line 27):

<script type="text/javascript">
    var _iub = _iub || [];
    _iub.csConfiguration = {
        "consentOnContinuedBrowsing": false,
        "countryDetection": true,
        "enableCcpa": true,
        "invalidateConsentWithoutLog": true,
        "perPurposeConsent": true,
        "siteId": 000000,
        "whitelabel": false,
        "cookiePolicyId": 000000,
        "lang": "it",
        "banner": {
            "acceptButtonDisplay": true,
            "closeButtonRejects": true,
            "customizeButtonDisplay": true,
            "explicitWithdrawal": true,
            "listPurposes": true,
            "position": "bottom",
            "rejectButtonDisplay": true,
            "slideDown": false
        },
            "callback": {
                "onConsentGiven": function (preference) {
                    window.MyAgilePixelAnalytics( mpx_settings );
                    window.MyAgilePixelFbCAPI( mpx_settings );
                    window.MyAgilePixelTikTokCapi( mpx_settings );

                }
        }
    };
</script>
<script type="text/javascript" src="//cdn.iubenda.com/cs/ccpa/stub.js"></script>
<script type="text/javascript" src="//cdn.iubenda.com/cs/iubenda_cs.js" charset="UTF-8" async></script>

The sending of proxied data (and the setting of the related cookies) is triggered when the user gives consent to cookies. For the complete configuration of My Agile Pixel®, see the installation and configuration guide.

Integration with GDPR Cookie Consent – CookieYes (Pro versions)

The integration is automatic. All you need to do is create 3 custom cookies to replace the original Google Analytics, Facebook and TikTok ones (see details). Following the plugin’s official guide, add the custom cookies with the following “head scripts”:
For My Agile Pixel® – Google Analytics:

<script type="text/javascript">
window.MyAgilePixelAnalytics( mpx_settings );
</script>

For My Agile Pixel® – Facebook Remarketing:

<script type="text/javascript">
window.MyAgilePixelFbCAPI( mpx_settings );
</script>

For My Agile Pixel® – TikTok Pixel:

<script type="text/javascript">
window.MyAgilePixelTikTokCapi( mpx_settings );
</script>

Integration with Complianz

The integration is automatic. All you need to do is enter, from the Complianz menu Integrations → Script Center, the JavaScript code below for each of the three possible tracking types. We recommend the “marketing” type.

For My Agile Pixel® – Google Analytics:

window.MyAgilePixelAnalytics( mpx_settings );

For My Agile Pixel® – Facebook Remarketing:

window.MyAgilePixelFbCAPI( mpx_settings );

For My Agile Pixel® – TikTok Pixel:

window.MyAgilePixelTikTokCapi( mpx_settings );

API Integration

All you need to do is create 3 custom cookies to replace the original Google Analytics, Facebook and TikTok ones (see details).

Following the official guide of the plugin you use, add the custom cookies with the following “head scripts”:

For My Agile Pixel® – Google Analytics:

<script type="text/javascript">
window.MyAgilePixelAnalytics( mpx_settings );
</script>

For My Agile Pixel® – Facebook Remarketing:

<script type="text/javascript">
window.MyAgilePixelFbCAPI( mpx_settings );
</script>

For My Agile Pixel® – TikTok Pixel:

<script type="text/javascript">
window.MyAgilePixelTikTokCapi( mpx_settings );
</script>

Please note: the procedure for carrying out these steps varies depending on the plugin you use to manage the banner and consent. You’ll find the integration references in the official guide of the plugin you are using.

Before proceeding: with My Agile Privacy® you do not need this section. The consent integration is automatic: My Agile Pixel® starts, channel by channel, when the visitor accepts the matching item in My Agile Privacy®. Discover the My Agile Privacy® offer.

To complete the configuration with Cookiebot, Iubenda, CookieYes or Complianz, you instead need to create 3 custom cookies that give the user the correct information.

Below are the name and text of the 3 custom cookies to create, one for Analytics, one for Facebook and one for TikTok. Create only those related to the services you integrate into My Agile Pixel®.

My Agile Pixel® - Google Analytics

Google Analytics is a statistical analysis service provided by Google Ireland Limited (“Google”), a company of the Google LLC group (USA). This site uses it through My Agile Pixel®, which sends browsing events to Google via the site’s server instead of directly from your browser; the events do not pass through the servers of the provider of My Agile Pixel®. To work, the service loads into your browser the Google Analytics script, which may install its own cookies.

The site owner chooses, through the My Agile Pixel® settings, which data to transmit: for example, they can choose not to send your IP address and the information about your browser, or remove certain tracking parameters from the page addresses.

The data sent is collected for the purposes of personalizing the experience and statistical tracking. You can find more information on the page “More information on how Google processes personal information”.

Events are transmitted only after your consent, which you can withdraw at any time from the cookie preferences. If the site uses Google’s consent mode (Consent Mode), before you make your choice a cookieless communication may be sent to Google indicating that consent has not been given; its content depends on the site’s configuration.

My Agile Pixel® - Facebook Remarketing

Facebook Remarketing is a remarketing and behavioral targeting service provided by Meta Platforms Ireland Limited (“Meta”), used to link the activity of this site with the Meta advertising network. This site uses it through My Agile Pixel®, which sends browsing events to Meta via the site’s server, through the Conversions API, instead of directly from your browser; the events do not pass through the servers of the provider of My Agile Pixel®. To work, the service does not load the Meta pixel in your browser, but installs the My Agile Pixel® cookies.

The site owner chooses, through the My Agile Pixel® settings, which data to transmit: for example, they can choose not to send your IP address and the information about your browser, or remove certain tracking parameters from the page addresses.

The data sent is used to measure the effectiveness of ads and to show you personalized advertising. You can find more information in the Meta Privacy Policy.

Events are transmitted only after your consent, which you can withdraw at any time from the cookie preferences.

My Agile Pixel® - TikTok Pixel

TikTok Remarketing is a remarketing and behavioral targeting service provided by TikTok Technology Limited (“TikTok”), used to link the activity of this site with the TikTok advertising network. This site uses it through My Agile Pixel®, which sends browsing events to TikTok via the site’s server, through the Events API, instead of directly from your browser; the events do not pass through the servers of the provider of My Agile Pixel®. To work, the service does not load the TikTok pixel in your browser, but installs the My Agile Pixel® cookies.

The site owner chooses, through the My Agile Pixel® settings, which data to transmit: for example, they can replace your IP address with the server’s, choose not to send the information about your browser, or remove certain tracking parameters from the page addresses.

The data sent is used to measure the effectiveness of ads and to show you personalized advertising. You can find more information in the TikTok Privacy Policy.

Events are transmitted only after your consent, which you can withdraw at any time from the cookie preferences.

If you manage multiple sites or want to avoid every manual step, My Agile Privacy® automates all these operations: no custom cookies to create. It’s the fastest way to keep tracking and consent aligned across every project.

Frequently asked questions

// ready to go

Recover the conversions you are losing

Turn on server-side tracking on your WordPress: recover the events the browser blocks, after consent.

Buy now →