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.

Visit website

Consent Categories

Marketing

Also Known As

Instagram pixelInstagram trackingMeta Pixel InstagramInstagram ads trackingInstagram attributionInstagram GDPR

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Tracked Domains (2)

instagram.comSocial Media
cdninstagram.comSocial Media

Frequently 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

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

Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Google Ads
Google Ads
Google Ads is Google's advertising platform for search, display, and remarketing campaigns. Conversion tracking scripts fire on advertiser landing pages to measure actions taken after ad clicks. The remarketing tag builds audience lists for retargeting users across Google's ad network.
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag is the Universal Event Tracking pixel for Microsoft's ad platform, formerly Bing Ads. The JavaScript tag fires on advertiser websites to track page views, conversions, and custom events for campaign optimization. Sets cookies to identify visitors across sessions and attribute conversions to Microsoft Search and Audience Network ad clicks.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
LinkedIn Insight Tag
LinkedIn Insight Tag
LinkedIn Insight Tag is a JavaScript tracking pixel for LinkedIn's advertising and analytics platform. The tag fires on every page view to collect URL, referrer, IP address, and device data for conversion tracking, website demographics reporting, and retargeting audience building. Sets cookies to identify LinkedIn members across advertiser websites.

Manage consent for Instagram

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