Skip to content
AnalyticsConsent required

What is the ra_clientId Cookie?

Set by Razorpay (Razorpay Software Private Limited). Expires after 12 months.

Purpose

Assigns a persistent client identifier used by Razorpay Analytics (the 'ra_' family of cookies) to recognise a returning browser and measure product usage.

Part of Razorpay's first-party analytics. As a persistent analytics identifier it requires consent under GDPR.

Cookie Details

Cookie Namera_clientId
ServiceRazorpay
ProviderRazorpay Software Private Limited
CategoryAnalytics
Duration12 months
Consent RequiredYes — requires explicit opt-in

Category: Analytics

Analytics cookies help website owners understand how visitors interact with websites by collecting and reporting information anonymously. Consent is required under GDPR.

GDPR Requirements

Under GDPR and the ePrivacy Directive, the ra_clientId cookie requires explicit user consent before it can be set. This means:

  • The cookie must not be set when a user first visits your site — not even for a fraction of a second
  • A consent banner must be displayed, and the user must actively accept analytics/marketing cookies
  • If the user rejects or ignores the banner, this cookie must remain blocked
  • The cookie must be listed in your cookie policy with its name, purpose, and retention period
  • Users must be able to withdraw consent at any time, which must also remove or invalidate this cookie

How to Handle This Cookie

  1. Block it by default — configure your Consent Management Platform (CMP) or tag manager to prevent Razorpay from loading until the user accepts analytics cookies.
  2. Include it in your consent categories — map it to the "Analytics" category in your CMP configuration.
  3. List it in your cookie policy — document the cookie name, purpose, provider (Razorpay Software Private Limited), and expiry (12 months).
  4. Sign a DPA — ensure you have a Data Processing Agreement with Razorpay Software Private Limited covering their use of data collected via this cookie.
  5. Verify it works — in an incognito browser, reject cookies and confirm ra_clientId is not set.

Other Razorpay Cookies

CookieCategoryDuration
rzp_unified_session_idStrictly NecessarySession
x-session-dataStrictly NecessarySession
ab_user_idAnalytics12 months
rzp_utmMarketing / Advertising12 months

Is this cookie on your website?

Scan your website to see every cookie it sets, whether they're blocked before consent, and get a full GDPR compliance report.

Scan your website free →