Instagram

Instagram

Instagram tracking scripts support conversion measurement for Meta advertising campaigns running on Instagram. Scripts fire on advertiser websites to capture click-through and view-through conversions from Instagram ad placements. Collected data flows into Meta Ads Manager for attribution reporting and audience building.

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 _fbp first-party cookie to identify the browser across visits, with a typical 90-day expiry
  • Reads the fbclid URL parameter from Instagram ad click-throughs and stores it in the _fbc cookie 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/tr endpoint via pixel requests and to connect.facebook.net for 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 _fbp and _fbc cookies 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.

Visit website

Consent Categories

Also Known As

Instagram pixelInstagram trackingMeta Pixel InstagramInstagram ads trackingInstagram attributionInstagram GDPR

Industries

Computers Electronics and TechnologyProgramming and Developer Software

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 Media

instagram.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 Media

cdninstagram.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

Facebook Login
Facebook Login
Facebook Login is a Meta OAuth authentication service that allows users to sign in to third-party websites using their Facebook account. Scripts load the Meta SDK, set cross-site session cookies for authentication, and may share login activity data with Meta.
Meta Pixel
Meta Pixel
Meta Pixel (formerly Facebook Pixel) is a conversion tracking and audience-building tool used by advertisers running campaigns on Facebook and Instagram. Scripts fire events on advertiser websites when users complete actions like purchases or form submissions. Collected data is used for ad targeting, retargeting, and conversion attribution.
Facebook Comments
Facebook Comments
Facebook Comments is a Meta social plugin that embeds a comment system on external websites. Scripts load the Meta SDK, set Facebook tracking cookies on page load, and send engagement data to Meta regardless of whether visitors interact with the widget.
Facebook Like Button
Facebook Like Button
Facebook Like Button is a Meta social plugin that embeds a like and react button on external websites. Scripts load the Meta SDK and set Facebook tracking cookies on page load regardless of visitor interaction. Browsing data may be shared with Meta for ad targeting purposes.
Facebook Share Button
Facebook Share Button
Facebook Share Button is a Meta social plugin that lets visitors share web content to their Facebook feed. Scripts load the Meta SDK and set cross-site tracking cookies on page load, enabling Meta to track visits and attribute browsing behavior for advertising purposes.
Instagram Feed
Instagram Feed
Instagram Feed embeds allow websites to display Instagram posts and media galleries. Scripts load Meta's Instagram embed code, set tracking cookies, and send interaction data to Meta. Visitor browser data may be shared with Meta on page load regardless of whether visitors interact with the content.

Related Vendors

Captify
Captify
Contextual intelligence and search retargeting platform. Captify's script analyzes on-site search behavior to infer user intent and syncs those signals to its programmatic network. Publishers embed Captify to monetize search intent data; advertisers use it to reach users showing active interest in relevant topics.
Webflow
Webflow
Website design and hosting platform used by designers and development teams to build and host custom sites. Webflow scripts manage responsive layout rendering and form submissions on Webflow-hosted sites. Webflow's Ecommerce feature adds cart and checkout tracking scripts.
Virtual Minds
Virtual Minds
Virtual Minds is a German ad tech company providing an ad server, SSP, and DMP for European publishers and advertisers. Scripts serve display ads, manage inventory, and collect audience data for programmatic campaign targeting.
emetriq
emetriq
emetriq is a German online advertising and media agency network. Scripts collect audience data on publisher sites, build behavioral profiles, and power programmatic ad targeting for advertising campaigns in German-speaking markets. Sets cookies for cross-site audience segmentation and frequency capping.
Salesforce.com
Salesforce.com
Enterprise CRM platform with a broad suite of marketing tools including Salesforce Marketing Cloud, Pardot (B2B automation), and Einstein Analytics. On-site scripts track form submissions, page views, and lead source attribution. Embeds personalization and live chat widgets on enterprise marketing sites.
Bounce Exchange
Bounce Exchange
Personalization and behavioral marketing platform that detects exit intent and personalizes on-site experiences. WunderkindX (formerly Bounce Exchange) scripts monitor cursor movement and scroll patterns to trigger timed offers, lightboxes, and personalized recommendations at peak exit-intent moments.

Manage consent for Instagram

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