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.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
instagram.comSocial Mediacdninstagram.comSocial MediaFrequently Asked Questions
Do I need consent to use Instagram tracking scripts?
Yes. Instagram tracking uses the Meta Pixel for cross-site tracking, conversion attribution, and audience profiling on Meta's advertising network. Explicit prior consent is required under GDPR and ePrivacy. Under CCPA, an opt-out mechanism is mandatory.
What does Instagram tracking collect?
Instagram deploys the Meta Pixel, setting _fbp (90-day, first-party visitor ID) and _fbc (click attribution). Events like PageView, Purchase, and Lead are sent to facebook.com/tr. Advanced Matching transmits hashed email and phone to Meta for cross-device attribution.
How does ConsentStack manage Instagram tracking?
ConsentStack classifies Instagram as marketing. The pixel is blocked entirely until the visitor grants marketing consent. ConsentStack also supports Consent Mode integration and the Limited Data Use flag for CCPA compliance when consent is configured.
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.
