WayToClawEarn
High impactBuchodi's Threat Intel / Hacker News

In-depth dismantling of ChatGPT ad tracking SDK: 30-day attribution window + Fernet quadruple encryption, impact on Affiliate content entrepreneurs

Security researcher buchodi fully exposed the technical architecture of the ChatGPT advertising system: 30-day product browsing attribution tracking, 4-layer Fernet encrypted click tokens, and contextual accurate delivery are achieved through OAIQ SDK. This article explains the practical significance of this system to AI tool affiliate entrepreneurs from the perspective of content monetization.

WayToClawEarn EditorialPublished Apr 30, 2026Updated Aug 8, 2026

Editorial review of public sources · AI-assisted drafting. How we work · Original source

Core conclusion

The ChatGPT advertising system is no longer just a proof of concept. On April 28, security researcher buchodi released the most detailed technical breakdown of the ChatGPT advertising attribution chain on the Internet, confirming that OpenAI has deployed a complete advertising technology stack: SSE stream injection advertising, OAIQ client SDK tracking, 30-day cookie attribution window, and 4-layer Fernet encryption to prevent fraud.

Advertisers currently online include Grubhub, GetYourGuide, Canva, Aritzia, etc., and delivery is matched in real time based on conversation context. For content creators who make money with the AI tool Affiliate, this means three key changes:

  1. A new monetization path appears — if your content is referenced by ChatGPT, you can serve as an advertiser and place contextual ads
  2. The attribution window is up to 30 days — any purchase within 30 days of a user clicking on the ad will be counted as your conversion
  3. High technical barriers - OpenAI uses AES-128-CBC + HMAC-SHA256 quadruple encryption to prevent tampering, which significantly increases the cost of advertising fraud.

Key Points

  • Time of incident: 2026-04-28 (technical details exposed) -Affected objects: AI tool Affiliate content creators, automated monetization practitioners
  • Core changes: ChatGPT advertising has entered the substantive operation stage from Beta, and the complete tracking chain has been deployed

Background and trigger events

On April 28, security researcher buchodi published an in-depth technical article "How ChatGPT serves ads. Here's the full attribution loop." on his blog Buchodi's Threat Intel. The article received 495 points and 352 comments on Hacker News in one day, becoming one of the hottest AI topics of the day.

The article captures the complete communication between both ends of the ChatGPT advertising system - the front-end SSE ad injection and the back-end OAIQ tracking SDK - through a fleet of user-authorized mobile traffic research devices. This is the first time since OpenAI established an internal advertising department at the end of 2025 that an external researcher has completely restored the entire advertising and attribution chain.

Previously, there have been cases proving that using the ChatGPT advertising platform with n8n automated content distribution can achieve a monthly income model of US$5,200. This technology exposure provides creators interested in entering this field with the opportunity to understand this system from a technical level.

Key Impact (by Dimension)

DimensionsChangeWhat it means to usRecommended actions
Monetization pathOpenAI officially launches the advertising platform, traffic can be converted into revenueAI chat interface becomes a trackable advertising channel for the first timeLearn the advertiser entry process and evaluate whether your products are suitable for placement in ChatGPT
Attribution windowOAIQ SDK sets a cookie with a 30-day (720 hours) TTLThere is an attribution window of up to 1 month from user click to actual conversionOptimize the landing page to the conversion funnel and make full use of the 30-day window to lengthen the investment cycle
Anti-cheating4-layer Fernet encryption, AES-128-CBC + HMAC-SHA256The cost of false advertising traffic increases, and the value of high-quality content increasesInvesting in content quality rather than brushing methods, the real ROI increases due to a low fraud environment
AccuracyContextual real-time matching, different topics correspond to different advertisersAccuracy is much higher than traditional pan-investment advertisingVertical depth content has more advertising monetization value than pan-traffic SEO
Product categoriesThe first batch of advertisers focus on travel, food delivery, and design toolsHigh-price decision-making products are the first to benefitGive priority to building content in these tracks and wait for OpenAI to expand advertising categories

Technical architecture interpretation: OAIQ SDK and attribution chain

How ads appear in conversations

When you send a message to ChatGPT, the backend mixes in a specific type of advertising event in the SSE stream chatgpt.com/backend-api/f/conversation. These events are of type single_advertiser_ad_unit, and the naming implies that there may be multiple advertiser variations later.

Ad units contain:

  • advertiser_brand — Advertiser information, stable account identifier with adacct_ prefix
  • carousel_cards — carousel cards
  • target.open_externally: false — Open WebView embedded in ChatGPT to facilitate OpenAI to observe page jumps

Four-layer encryption token

Each ad comes with 4 Fernet encrypted blobs (AES-128-CBC + HMAC-SHA256):

  1. ads_spam_integrity_payload — SSE data is transferred internally, and the server prevents forged clicks
  2. oppref — Appears on click URL, copied to browser cookie by OAIQ SDK, TTL 720 hours (30 days) — This is a forward attribution token
  3. olref — Paired with oppref, suspected to be server-side logging
  4. ad_data_token — base64-encoded cross-domain tracking token

This means that after you click an ad from ChatGPT, all product views and purchases on that advertiser's website within 30 days will be attributed to the ChatGPT ad source.

Related

Practical Advice for Affiliate Content Entrepreneurs

1. Study the advertiser onboarding process

Currently, ChatGPT advertisers are registered through OpenAI Ads Manager (adacct_ prefix account system). If your product is an AI tool such as n8n, Claude Code, OpenClaw, etc., evaluate whether it is suitable for advertising on ChatGPT.

2. Content strategy adjustment

Ad placement is based on conversation context matching. The more vertical the content and the more focused the topic, the higher the probability of being included in ChatGPT and displaying relevant ads in relevant conversations. There is a need to shift from covering all keywords to doing in-depth research on specific topics.

3. Automation tool upgrade

With the automated content collection and publishing workflow built by n8n + OpenAI, your content can be included in ChatGPT faster.

4. Track attribution data

The 30-day cookie window means you need to evaluate performance against longer-term data. It is recommended to set special tracking parameters and configure UTM parameters on the landing page to observe the traffic source.

Related extended information

Tool entry

The AI services and tools covered in this article are: OpenAI, ChatGPT, n8n, Claude Code, OpenClaw

Internal link guidance

View source →

Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.