Link consenting customers across devices
Connect confirmed logins to recorded visitor journeys using a private server credential.
Last updated November 29, 2026
What this does
A visitor cookie identifies one browser. Your own login system can confirm that two browsers belong to the same person. AEO Goal accepts that confirmation from your server and can group their recorded journeys without changing the original events. An optional customer account ID groups different people within a company.
This is a developer integration. It does not guess identities from IP addresses, browser fingerprints, email similarity or shared advertising clicks. Your CRM remains the place for contact and opportunity records.
Before you connect
- Install Site Tracking on your site and verify that visits arrive.
- Your site must authenticate its own users.
- Obtain analytics consent before reading or transmitting the visitor identifier.
- Use stable opaque user and company IDs, with letters, digits, underscores or hyphens. Never send names, email addresses, phone numbers or authentication tokens.
Create the private credential
- Select the correct brand in AEO Goal.
- Open Site Tracking → Connections, then choose Cross-device identity in the connection selector.
- Choose Create identity credential.
- Copy the one-time value into your server’s secret manager. Choose I saved the credential to hide it.
This credential only accepts identity assertions for this brand. The public
aeo_pk_... tracking key cannot create identity links. Never place the private
credential in your tag manager, browser bundle, HTML or a public repository.
Rotating or disabling it immediately invalidates the previous value. Existing
links remain until you unlink or erase them.
Send a confirmed login
After consent, read aeo('visitorId') on your site. It returns null before
tracking has started or after consent withdrawal. Include a non-null visitor ID
with the login request to your server. Your server must verify the login and the
analytics consent before sending this request:
POST https://api.aeogoal.com/api/collect/identity
Authorization: Bearer <private identity credential>
Content-Type: application/json
{
"visitor_id": "v_browser_identifier",
"subject_id": "user_123",
"account_id": "company_456",
"consent": true
}
account_id is optional. The subject must come from your authenticated session,
not an unverified user ID in the browser request. AEO Goal cannot verify your
customer’s login independently; your server owns that trust boundary.
A 204 response means the assertion was accepted. Retrying the same assertion is
safe. Use a server-side retry queue for temporary failures; do not retry 401,
403, 409 or 422 indefinitely.
| Response | Action |
|---|---|
401 |
Check that the private identity credential is current. |
403 |
Verify Site Tracking, the brand owner’s access and site status. |
409 |
Review a shared-browser or conflicting account association. Do not override it automatically. |
422 |
Check consent and opaque ID formats. |
429 |
Respect event quotas and the 100-browser-per-person limit; retry later only for temporary rate limits. |
A person currently belongs to one optional customer account within this brand. Changing that association requires explicitly reviewing and unlinking the existing person before submitting the new association. This is not temporal organization membership tracking.
Handle logout and shared devices
After logout, or before a different user starts using the same browser, call:
aeo('reset');
This ends the previous replay, clears the tracking browser identifiers and starts a new anonymous visitor if analytics consent is still granted. It does not grant or revoke consent. Pending conversions for the old identity are discarded; record purchases from your trusted checkout/server event path instead of relying on an asynchronous logout callback.
If consent is withdrawn, call aeo('consent', false) through your consent manager.
Reset does nothing while consent is absent. Never automatically identify a person
again after withdrawal.
Use linked reports
In Attribution → Overview, choose Count identities by:
- Browser visitor keeps the original cookie-based view.
- Confirmed person across devices joins server-confirmed browsers.
- Confirmed customer account can join several people from one company.
Behavior analysis and saved cohorts have the same identity selector. A cohort’s identity scope must match the report. Unlinked browsers remain separate; account-less people retain their own person identity. Events and source revenue are not duplicated. Linked refunds reverse the original purchase allocation. Account-level credit describes a shared company journey; it does not establish that one employee caused another employee’s purchase.
The AI-engine report and advertising economics expose the same identity selector. Compare reports using the same identity scope, dates and attribution model. Observed/modelled AI visit tiers remain separate and visits are still recorded touches, even when conversion attribution uses a confirmed identity.
Correct or erase links
Cross-device identity → Correct mistaken identity links unlinks all browsers for the selected person. Their recorded events remain and reports recompute without the link. This also removes the person’s current account association.
For a deletion request, use Site Tracking → Privacy → Erase visitor data. Supplying any linked browser identifier expands deletion to the confirmed person’s linked browsers within this brand. It does not erase unrelated employees in the same account. Replay deletion follows the existing durable logical-erasure and object-purge workflow.
Links expire after 400 days without another accepted assertion. Hashes are pseudonymous data, not anonymous data. Treat them under your retention and privacy policies. Rollbacks preserve populated identity links and credentials.
Verify with your own test user
- Grant consent, log in on desktop and confirm the server receives
204. - Grant consent, log in as the same test user on another browser or device.
- Record a controlled conversion through your checkout integration.
- Compare Browser visitor and Confirmed person reports. The recorded total stays the same; eligible touch history and attribution coverage may change.
- Log out and call reset. Verify a new visitor ID and a separate recording.
- Try a conflicting subject on an already linked visitor. It must return
409. - Unlink or erase the test person and verify the report no longer joins them.
Local automated tests cover these contracts. A production claim additionally requires deployed migrations and this test against your actual login and consent systems.