Skip to main content

Verifying discoveryKey implementation

The e-com platform/site should include discoveryKey in every create/update contact request made to the Engage API.

evolve-verify-01.png

Verify by API

Verification can also be done by API requests. The following endpoints include discoveryKey in the response:

  • /api/v2/contactoverview

  • /api/v2/contacts

evolve-verify-02.png

Verify end-to-end

This is a simple way to test the discoveryKey implementation end-to-end:

evolve-verify-03.png
  1. Go to the storefront or website

  2. Identify yourself on the site, either by signing in or creating an account. If possible, take note of the assigned customerKey or ID if that is stored for a contact in the e-com/back-end system. This may be needed for future reference or troubleshooting purposes.

  3. Go back to the Engage tenant.

    evolve-verify-04.png
  4. Confirm that the discoveryKey has been successfully applied to the contact by checking the corresponding field in the contact card. If you have noted the customerKey or ID in step 2, verify that it matches.

  5. This is an optional step you can do if the e-com/website creates a pre-membership account during newsletter sign-up. You can verify if the discoveryKey has been assigned to the pre-membership contact in the Engage tenant by signing up for a newsletter and checking the discoveryKey of the newly created contact in the Engage tenant.

Verify in dev tools

Sometimes (for example, in implementations by Avensia) it is possible to verify that the Elevate customerKey matches the discoveryKey in the Engage contact card by using the browser's developer console. Here you can analyze network communication and browser storage for clues to confirm the match between the customerKey and discoveryKey. This ensures that the correct user data is being used for current interests.

evolve-verify-05.png

Verify as an end-user

These are the steps to follow:

  1. Navigate to the customer website.

  2. Create a new user account.

  3. Return to the Engage tenant and initiate a contact export.

  4. Ensure that the discoveryKey is added as a field in the export (and marked as exportable in the contact attribute tenant settings).

  5. Perform the export and verify that the discoveryKey is correctly applied to the new member.