Drift

Drift

Conversational marketing platform that embeds an AI-powered live chat and chatbot widget. The Drift script loads a persistent chat bubble that identifies returning visitors, routes them to the right sales rep, and triggers automated conversation flows based on behavioral rules. Sets cookies to recognize known contacts across sessions.

Overview

Drift is a conversational marketing and sales platform founded in 2015 that pioneered the "conversational marketing" category. It combines AI-powered chatbots, live chat, and automated playbooks to engage website visitors in real time and route qualified leads to sales representatives. Drift is widely deployed on B2B SaaS, technology, and professional services websites. Acquired by Salesloft in 2023, Drift's technology powers real-time pipeline generation by identifying and personalising the website experience for target accounts.

What This Script Does

The Drift script loads from js.driftt.com (Drift's primary JavaScript CDN) and renders a persistent chat bubble in the lower corner of every page. On activation, it establishes a WebSocket connection to Drift's messaging infrastructure for real-time chat routing.

Cookies and identifiers set:

  • driftt_aid — Anonymous visitor identifier; first-party cookie set on the host domain via document.cookie; expiry 2 years. Used to recognise returning visitors and link sessions to known contact records.
  • driftt_sid — Session identifier scoped to the current browsing session; expires at session end.
  • driftt_eid — Email-linked identifier set when a visitor is identified through form submission or email click; used to merge anonymous and known contact profiles; expiry up to 2 years.
  • Local storage key drift_campaign — Stores active campaign assignment to ensure consistent chatbot playbook delivery across pages.

Script filenames and CDN: api.js loaded from js.driftt.com; chat assets from widget.drift.com; API calls to customer.io/drift for CRM sync and events.drift.com for behavioural event streaming.

Per-session data collected:

  • Full browsing path on the host site (all pages visited, time on each)
  • Referral source and UTM parameters
  • Company identity via IP-based firmographic lookup (Clearbit/6sense enrichment)
  • Account-based marketing segment assignment (target account matching)
  • Chat transcript and conversation data
  • Form field values when visitor is identified
  • CRM sync events to Salesforce, HubSpot, Marketo

Behavioural triggers: Drift playbooks fire based on rules including visit count, page URL, time on page, scroll depth, referral campaign, and target account membership — all processed client-side using the persistent driftt_aid cookie.

Consent & Compliance

Drift scripts are classified under functional and marketing categories. The live chat widget serves a functional communication purpose, but Drift's default configuration includes visitor identification, cross-session tracking, and account-based marketing automation — all of which are marketing activities. Under GDPR Article 6, the visitor identification cookies (driftt_aid, driftt_eid) and behavioural tracking require explicit prior consent, as they process personal data for marketing purposes that go beyond the strictly necessary threshold. IAB TCF Purpose 1 (Store/access device) and Purpose 8 (Measure content performance) are implicated by Drift's default operation. Under ePrivacy, the persistent driftt_aid cookie requires opt-in. Under CCPA/CPRA, the collection of browsing behaviour, firmographic enrichment, and CRM sync constitutes processing of personal information for marketing that must be disclosed and subject to opt-out rights.

Should You Block This Without Consent?

Conditional. Drift combines legitimate functional live chat with marketing-oriented visitor identification and sales automation. If used purely for reactive customer support (chat widget with no persistent tracking cookies), it could be classified as functional. However, Drift's default configuration enables visitor tracking, account-based targeting, and CRM integration from the first page load — all of which require consent. Block by default; load only after the visitor grants functional or marketing consent.

Visit website

Consent Categories

Functional
Marketing

Also Known As

DriftDrift chatlive chat consentchatbot cookiesconversational marketing GDPRsales chat widget privacy

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (2)

js.driftt.comFunctional
event.api.drift.comFunctional

Frequently Asked Questions

Does Drift require user consent before loading?

Yes. Drift combines a live chat widget with persistent visitor tracking and sales automation. The driftt_aid and driftt_eid cookies identify visitors across sessions for marketing purposes, which requires explicit consent under GDPR and ePrivacy. Block by default and load only after the visitor grants functional or marketing consent.

What cookies and data does Drift set on visitors' browsers?

Drift sets driftt_aid (2-year anonymous visitor ID), driftt_eid (email-linked ID for contact merging), and driftt_sid (session ID). It also stores drift_campaign in localStorage. The script tracks full browsing paths, UTM parameters, and firmographic data via IP lookup, streaming events to events.drift.com.

How does ConsentStack handle the Drift script?

ConsentStack categorizes Drift as functional and marketing. It blocks the Drift script on page load and injects it only after the visitor consents to functional or marketing cookies. This prevents the driftt_aid tracking cookie from being set before consent, keeping your site compliant with GDPR and ePrivacy requirements.

Related Vendors

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
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.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for Drift

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