How to set up the Raptive Identity API

Raptive's email identity solution maximizes your site's revenue by sharing your audience's hashed email addresses (email addresses they've previously provided) with our ad partners. This increases your audience's addressability while also retaining their privacy. It helps advertisers better understand your audience, resulting in higher prices for ads shown on your site.

The Raptive Identity API enables you to pass data to the Raptive email identity solution to register hashed email addresses with our system. Here's how to set it up:

Implementation:

  • Do not run this code on its own without first receiving user PII from the page.
  • This should run after page load and once the user has entered their PII on the page.
  • After the information is collected, run the code from the Example blocks below, substituting the values for the information you have to send, either plaintext or encrypted sha256 types.
  • We recommend waiting for the DOMContentLoaded event to fire.

Method:

  • window.adthrive.identityApi
  • The window.adthrive.IdentityAPI.identityOptIn method accepts two arguments, an object data and a function callback.

Parameters:

  • plainText and sha256 are optional, at least one is required

Raptive-Identity-API-Google-Docs-12-04-2024_01_32_PM.png

Raptive-Identity-API-Google-Docs-12-04-2024_01_40_PM.png

Raptive-Identity-API-Google-Docs-12-04-2024_01_42_PM.png

Consent:

  • If your traffic resides within EU or other regions with privacy regulations such as CCPA, the Identity API will handle checking for consent given by the user to handle PII.
  • Messages will be sent back to the calling function to specify if a user has opted-out.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Send a message

Want to join Raptive? Apply here!