Marketing cookies are essential for modern digital advertising strategies. They enable remarketing, conversion tracking, audience building, and campaign optimization across platforms like Facebook, Google Ads, TikTok, and LinkedIn. However, marketing cookies also present the highest privacy concerns because they track users across websites to build detailed profiles for targeted advertising. Under GDPR and similar regulations, marketing cookies require explicit user consent before any tracking can begin.
This comprehensive guide explains how to configure the marketing cookies category in DigiConsent, integrate major advertising platforms, and ensure your marketing tracking fully respects user privacy choices while maintaining campaign effectiveness.
Understanding Marketing Cookies
Marketing cookies serve advertising and remarketing purposes, making them fundamentally different from analytics or functional cookies.
What Marketing Cookies Do
Marketing cookies enable several key advertising functions:
Conversion Tracking:
- Track when users complete desired actions (purchases, sign-ups, downloads)
- Attribute conversions to specific ads and campaigns
- Measure return on ad spend (ROAS)
- Optimize campaigns based on which ads drive conversions
Remarketing/Retargeting:
- Build audiences of users who visited your site
- Show ads to previous visitors on other websites
- Create custom audiences based on specific page visits or behaviors
- Re-engage cart abandoners or interested prospects
Audience Building:
- Create lookalike/similar audiences based on your website visitors
- Segment audiences by behavior, interests, or demographics
- Build custom audiences for targeted campaigns
Cross-Platform Tracking:
- Track users across multiple websites and devices
- Build comprehensive user profiles
- Enable multi-touch attribution
- Connect online and offline behavior
Why Marketing Cookies Have Strict Requirements
Marketing cookies face the most stringent privacy requirements because they:
- Track across sites: Follow users throughout the internet, not just on your website
- Create detailed profiles: Build comprehensive pictures of user interests and behavior
- Share data widely: Data is shared with advertising networks, partners, and third parties
- Enable targeting: Used to show personalized ads based on behavior
- Persist long-term: Often stored for months or years to track long conversion paths
Under GDPR, ePrivacy, CCPA, and similar regulations, marketing cookies require:
- Explicit opt-in consent (not pre-checked boxes)
- Clear information about what data is collected and how it’s used
- Easy ability to withdraw consent
- Equal prominence for accept and reject options
- No conditioning of service on consent (no cookie walls)
Configuring the Marketing Category in DigiConsent
Set up the marketing cookies category to properly manage consent for all advertising pixels and tracking.
Category Settings
- Navigate to DigiConsent > Settings > Cookie Categories
- Find the Marketing Cookies category
- Ensure Always Enabled is OFF (users must be able to decline)
- Configure the Category Name (“Marketing Cookies” or “Advertising Cookies”)
- Write a transparent Category Description
- Set Default State to denied for GDPR compliance
Writing the Marketing Category Description
Be completely transparent about marketing cookies. Users need to understand they’re being tracked for advertising. Example:
“Marketing cookies track your online activity to help advertisers deliver more relevant advertising or to limit how many times you see an ad. These cookies can share information with other organizations or advertisers. They are persistent cookies and almost always of third-party provenance. We use marketing cookies from Facebook, Google, LinkedIn, and TikTok to show you relevant ads on those platforms after you visit our website. You can decline these cookies, and the website will function normally, but you may see less relevant advertising.”
Key elements to include:
- Clear statement that cookies are for advertising/remarketing
- Specific platforms you use (Facebook, Google Ads, etc.)
- That data may be shared with third parties
- That declining won’t affect site functionality
- Honest acknowledgment of tracking purpose
Setting Up Facebook Pixel
Facebook Pixel (now Meta Pixel) is one of the most common marketing tracking tools, enabling remarketing and conversion tracking for Facebook and Instagram ads.
Adding Facebook Pixel to DigiConsent
- Navigate to DigiConsent > Settings > Marketing Cookies
- Click Add Script
- Paste your Facebook Pixel base code:
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
</script>
<noscript>
<img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=YOUR_PIXEL_ID&ev=PageView&noscript=1"/>
</noscript>- Replace
YOUR_PIXEL_IDwith your actual Facebook Pixel ID - Save the script
- Facebook Pixel will only load when users accept marketing cookies
Facebook Pixel Events
Beyond PageView tracking, you likely want to track specific events (purchases, add to cart, etc.). Add event tracking code separately:
<script>
// Track purchase
fbq('track', 'Purchase', {
value: 29.99,
currency: 'USD'
});
// Track add to cart
fbq('track', 'AddToCart', {
content_ids: ['1234'],
content_type: 'product',
value: 29.99,
currency: 'USD'
});
</script>These event scripts should also be added to the marketing cookies category so they only fire after consent.
Facebook Conversions API (Server-Side)
Facebook Conversions API sends events from your server instead of the browser:
- More reliable (not affected by ad blockers or consent declines)
- Requires server-side implementation
- May still require consent depending on implementation
- Consult legal counsel on consent requirements for server-side tracking
If you implement Conversions API, document it in your privacy policy and consider whether consent is required based on your jurisdiction and implementation.
Setting Up Google Ads Remarketing
Google Ads remarketing (part of the broader Google Ads tracking) enables you to show ads to previous website visitors.
Google Ads with Google Tag Manager
If using GTM (recommended):
- Ensure GTM is installed (see Analytics setup guide)
- Create a Google Ads Remarketing tag in GTM
- Configure it to fire only when
ad_storageconsent is granted - DigiConsent automatically sends consent signals to GTM
- When users accept marketing cookies, remarketing begins
Google Ads with Direct gtag.js
If using gtag.js directly:
- Add to Marketing Cookies category
- Include your Google Ads conversion tracking code:
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-CONVERSION_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-CONVERSION_ID');
</script>With Google Consent Mode enabled, this will operate in limited mode without consent and full mode with consent.
Setting Up LinkedIn Insight Tag
LinkedIn Insight Tag enables conversion tracking and remarketing for LinkedIn ads.
Adding LinkedIn Insight Tag
- Go to DigiConsent > Settings > Marketing Cookies
- Click Add Script
- Paste LinkedIn Insight Tag code:
<script type="text/javascript">
_linkedin_partner_id = "YOUR_PARTNER_ID";
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);
</script><script type="text/javascript">
(function(l) {
if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};
window.lintrk.q=[]}
var s = document.getElementsByTagName("script")[0];
var b = document.createElement("script");
b.type = "text/javascript";b.async = true;
b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
s.parentNode.insertBefore(b, s);})(window.lintrk);
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=YOUR_PARTNER_ID&fmt=gif" />
</noscript>- Replace
YOUR_PARTNER_IDwith your LinkedIn Partner ID - Save the script
Setting Up TikTok Pixel
TikTok Pixel enables conversion tracking and audience building for TikTok ads.
Adding TikTok Pixel
- Navigate to Marketing Cookies category
- Add script:
<script>
!function (w, d, t) {
w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i- Replace
YOUR_PIXEL_IDwith your TikTok Pixel ID - Save
Setting Up Twitter (X) Pixel
Twitter/X Pixel tracks conversions and builds audiences for Twitter ads.
<script>
!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
},s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js',
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script');
twq('config','YOUR_PIXEL_ID');
</script>Add to marketing cookies category with your Twitter Pixel ID.
Setting Up Pinterest Tag
Pinterest Tag enables conversion tracking for Pinterest ads.
<script>
!function(e){if(!window.pintrk){window.pintrk = function () {
window.pintrk.queue.push(Array.prototype.slice.call(arguments))};var
n=window.pintrk;n.queue=[],n.version="3.0";var
t=document.createElement("script");t.async=!0,t.src=e;var
r=document.getElementsByTagName("script")[0];
r.parentNode.insertBefore(t,r)}}("https://s.pinimg.com/ct/core.js");
pintrk('load', 'YOUR_TAG_ID');
pintrk('page');
</script>Add to marketing cookies with your Pinterest Tag ID.
Affiliate and Tracking Pixels
Affiliate networks and partner programs often require tracking pixels.
Common Affiliate Platforms
ShareASale, Commission Junction, Impact, Rakuten:
- All affiliate tracking pixels belong in marketing cookies
- They track conversions and attribute them to affiliates
- Require consent like other marketing tools
- Add their provided pixel code to marketing category
Amazon Associates:
- If using Amazon tracking pixels or OneTag
- Add to marketing cookies category
- Amazon affiliate links themselves may not require consent (depends on implementation)
Managing Multiple Marketing Pixels
When running ads on multiple platforms, organization is critical.
Best Practices for Multiple Pixels
- Label clearly: Name each script in DigiConsent ("Facebook Pixel", "LinkedIn Tag", etc.)
- Document purpose: Add description of what each pixel does
- Test individually: Verify each pixel loads correctly after consent
- Consolidate through GTM: Consider managing all pixels through Google Tag Manager for easier control
- Regular audits: Remove pixels for platforms you no longer use
Using Google Tag Manager for All Marketing Pixels
GTM can manage all your marketing pixels from one place:
- Install GTM in necessary cookies (it's just the container)
- Add all pixels as tags in GTM (Facebook, LinkedIn, TikTok, etc.)
- Set each tag to fire only when
ad_storageconsent is granted - DigiConsent sends consent signals to GTM automatically
- All marketing pixels respect consent without individual script management
This approach is cleaner and easier to maintain than adding each pixel individually to DigiConsent.
Google Consent Mode for Marketing
When Google Consent Mode is enabled, marketing cookies behavior adapts to consent status.
Consent Mode Parameters for Marketing
Marketing cookies map to three Consent Mode v2 parameters:
ad_storage: Controls advertising cookiesad_user_data: Controls sending user data to Google for adsad_personalization: Controls personalized advertising
When marketing consent is granted:
- All three parameters set to 'granted'
- Full remarketing and conversion tracking
- Advertising cookies are set
- User data can be sent for enhanced conversions
- Personalized ads and remarketing work normally
When marketing consent is denied:
- All three parameters remain 'denied'
- No advertising cookies set
- Conversion events sent without identifiers
- Google uses modeling to estimate conversions
- No remarketing lists built
- No personalized advertising
This allows Google Ads to maintain some conversion tracking through modeling even when users decline marketing cookies.
Testing Marketing Cookie Implementation
Thorough testing ensures marketing pixels respect consent properly.
Testing Process
- Clear all cookies and cache
- Visit your site without accepting cookies
- Open DevTools → Application → Cookies
- Verify no marketing cookies present (no _fbp, _gcl_*, etc.)
- Check Network tab—no requests to facebook.com, ads.linkedin.com, analytics.tiktok.com, etc.
- Accept marketing cookies
- Verify marketing cookies now appear
- Check Network tab for pixel firing (fb.com, linkedin.com, etc.)
- Use browser extensions (Facebook Pixel Helper, LinkedIn Insight Tag Helper) to verify pixel functionality
- Test conversion events if applicable (add to cart, purchase, etc.)
Platform-Specific Testing Tools
Facebook Pixel Helper:
- Chrome extension by Facebook
- Shows which pixel events fire
- Displays event parameters
- Indicates errors or warnings
LinkedIn Insight Tag Helper:
- Verifies LinkedIn tag installation
- Shows conversion tracking
TikTok Pixel Helper:
- Chrome extension for TikTok pixel
- Verifies events and parameters
Common Issues and Solutions
Issue: Marketing pixels firing before consent
- Check for duplicate pixel installations (plugin + manual)
- Verify pixels are in marketing category, not necessary
- Look for pixels hardcoded in theme files
- Check if a plugin is loading pixels independently
Issue: Pixels not firing after consent
- Check browser console for JavaScript errors
- Verify pixel code is correct and complete
- Try page reload after giving consent
- Check that consent update event fired (dataLayer)
Issue: Conversion tracking not working
- Verify pixel loads on conversion page
- Check that conversion event code is correct
- Ensure conversion event code is also in marketing category
- Test with pixel helper tools
Issue: Remarketing audiences not building
- Expected if many users decline marketing cookies
- Enable Google Consent Mode for modeled audiences
- Consider server-side tracking (consult legal counsel on consent needs)
- Accept that some audience loss is the cost of privacy compliance
Best Practices for Marketing Cookies
- Maximum transparency: Clearly list all advertising platforms in your privacy policy
- Use Google Consent Mode: Maintain some conversion tracking through modeling
- Consider server-side tracking: For critical conversions, implement server-side tracking (with appropriate consent)
- Don't over-pixel: Only use platforms where you actively run ads
- Regular cleanup: Remove pixels for discontinued campaigns
- Test frequently: After any changes, retest consent behavior
- Monitor consent rates: Track what percentage of users accept marketing cookies
- Optimize consent UX: Clear communication increases opt-in rates
- Document everything: Maintain records of all pixels and their purposes
- Legal review: Have legal counsel review your marketing cookie implementation
Marketing Cookies Configuration Checklist
- Marketing cookies category is consent-required (not always enabled)
- Transparent description explains advertising and tracking purpose
- Facebook Pixel added with correct Pixel ID
- Google Ads remarketing configured (through GTM or direct)
- LinkedIn Insight Tag added if running LinkedIn ads
- TikTok Pixel added if running TikTok ads
- All other advertising pixels properly categorized
- Google Consent Mode enabled and mapped to marketing category
- No marketing scripts loading outside DigiConsent control
- Tested with cookies declined—no marketing cookies or requests
- Tested with cookies accepted—all pixels fire correctly
- Platform helper tools confirm correct pixel operation
- Conversion tracking tested and working
- Privacy policy updated to list all marketing cookies and platforms
- Documentation maintained for compliance audits
Marketing cookies are powerful tools for digital advertising, but they come with significant privacy responsibilities. By properly configuring the marketing category in DigiConsent, ensuring all advertising pixels are consent-gated, leveraging Google Consent Mode for modeled conversions, and maintaining complete transparency with users, you can run effective ad campaigns while fully respecting user privacy and complying with regulations worldwide.
Similar Articles
- Logo Configuration – Adding Branding to Your Consent Banner
- Import Export Settings – Backup and Restore Configuration
- Animation Settings – Banner Motion and Visual Effects
- LinkedIn Insight Tag Integration for B2B Marketing
- Configuring Banner Text – Customizing Your Consent Message
- Facebook Pixel Integration Guide