Overview
Instagram tracking scripts support conversion measurement for Meta advertising campaigns running on Instagram. These scripts fire on advertiser websites to capture click-through and view-through conversions from Instagram ad placements, feeding data back into Meta Ads Manager for attribution and audience building.
What This Script Does
- Deploys the Meta Pixel (formerly Facebook Pixel) configured for Instagram campaign attribution
- Fires conversion events (PageView, Purchase, Lead, AddToCart, CompleteRegistration, and custom events) on advertiser pages
- Sets the
_fbpfirst-party cookie to identify the browser across visits, with a typical 90-day expiry - Reads the
fbclidURL parameter from Instagram ad click-throughs and stores it in the_fbccookie for click attribution - Performs view-through attribution by matching users who saw Instagram ads to subsequent website visits, using Meta's cross-platform identity graph
- Sends collected event data to
facebook.com/trendpoint via pixel requests and toconnect.facebook.netfor the full JS SDK - Supports Advanced Matching, which hashes and transmits user-provided data (email, phone, name, location) to improve cross-device attribution accuracy
- Enables Custom Audience building, allowing advertisers to retarget website visitors on Instagram and Facebook
- Supports the Conversions API (server-side) as a complement to browser-side pixel tracking for improved data reliability
- May load additional Meta scripts including the full Facebook SDK if social plugins or login features are present
- Participates in Meta's cross-site tracking ecosystem, linking website behavior to Instagram/Facebook user profiles
Consent & Compliance
- Consent category: Marketing
- Applicable regulations: GDPR, ePrivacy Directive, CCPA, LGPD, POPIA
- Opt-in required: Yes under GDPR/ePrivacy. Explicit prior consent is mandatory.
- Instagram/Meta pixel tracking involves cross-site tracking, profiling, and data sharing with Meta's advertising platform, all of which require consent under EU regulations.
- Under CCPA, the data sharing with Meta for targeted advertising may constitute a "sale" or "sharing" of personal information, requiring an opt-out mechanism.
- Meta's Advanced Matching feature transmits hashed PII (email, phone) to Meta servers, which raises additional consent requirements. Ensure this feature is only active when users have consented.
- The
_fbpand_fbccookies are classified as non-essential marketing cookies by all major CMPs and data protection authorities. - Meta provides a Limited Data Use flag for CCPA compliance and Consent Mode integration for GDPR, but these must be explicitly configured.
Should You Block This Without Consent?
Yes. Instagram tracking scripts are Meta advertising pixels that perform cross-site tracking, set persistent marketing cookies, build advertising audience profiles, and transmit behavioral data (and potentially hashed PII) to Meta's platform. This is unambiguously marketing/advertising functionality that requires prior opt-in consent under GDPR and ePrivacy. Under CCPA, users must be able to opt out of this data sharing. Block the script entirely until appropriate consent is obtained, and ensure server-side Conversions API calls also respect consent status.
Is Instagram GDPR compliant?
Instagram typically loads social media and marketing trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Instagram can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Instagram, not on Instagram itself.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
Instagram's trackers are occasionally seen, seen on under 1% of the sites ConsentStack has scanned. Scan your own site to see which of these are firing before consent.
instagram.comSocial Mediainstagram.com is a social media domain operated by Instagram, used to power social embeds, share buttons, and audience matching. Seen on under 1% of scanned sites.
cdninstagram.comSocial Mediacdninstagram.com is a social media domain operated by Instagram, used to power social embeds, share buttons, and audience matching. Seen on under 1% of scanned sites.
Frequently Asked Questions
Other Facebook Products
Related Vendors


Manage consent for Instagram
ConsentStack automatically detects and manages Instagram trackers so your site stays compliant with global privacy regulations.
