Skip to main content
February 6, 2017
Question

How can we associate a Custom Activity to a Anonymous Lead

  • February 6, 2017
  • 1 reply
  • 992 views

We want an ability to track custom activities for anoymous users.

Trying to do this using Rest API.

  1. Query the Lead using the Marketo Cookie
  2. Add Custom Activity to the Lead.

Step 1 is failing, The API is not returning the Anonymous Lead when queried using the token.

Any Suggestions ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
February 6, 2017

You can't.

CAs are for named leads in your db.

The only way you could simulate this would be by logging a temporary standard Munchkin activity and later (after lead promotion from anon -> named) reading it out and calling back in via API.

Or, of course, by saving the CA info offline and batching it later -- which is the only business-class way to use CAs anyway, given low rate limits and associated security/reliability risks.