Re: Analytics/Reporting API

Anonymous
Not applicable

Analytics/Reporting API

Hi there,

Is there any way to access the information in the Analytics section of Marketo through either of the API's? Specifically we'd like to be able to pull lead reports in order to have an understanding of what percentage of leads our application is contributing to our customer's Marketo instances.

I'd love to know if getting such a report would be possible without having to ask our customers to manually send us that information, given that they have already given us credentials to 

Thanks,
Akash
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: Analytics/Reporting API

Currently there is no Analytics API. I would consider using this approach as a workaround:

1 - Create a custom field/attribute in Marketo called socedoLead
http://developers.marketo.com/blog/create-a-custom-field-in-marketo-and-update-this-field-via-api/
2 - Every time you create a lead mark the socedoLead field/attribute as true
3 - Quantify number of leads contributed by using Get Multiple Leads by Filter Type API. Specify filterType=socedoLead filterValue=true
http://developers.marketo.com/documentation/rest/get-multiple-leads-by-filter-type/

L
et me know if you think this approach would work? 
Anonymous
Not applicable

Re: Analytics/Reporting API

Thanks for the quick response Murtza,

We are already tracking how many leads we are injecting into our customer's Marketo instances by storing some information when we insert them. What I'm interested in tracking is what percentage of new leads we are responsible for contributing. This involves knowing how many leads are coming from other lead sources, whatever they may be. 

I thought about using the Get Multiple Leads by Filter Type API using Lead Source as the Field but it seems like that API returns an error if there are more than 1000 results, which there certainly will be after a reasonable amount of time. Also, I'm not sure if we could construct a query that says Lead Source != "Our App" to get the number of other leads coming into their system.

Do you know of a way I could measure the percentage of leads we are contributing?

Thanks!
Akash
Anonymous
Not applicable

Re: Analytics/Reporting API

There is no direct way to query total number of leads via the API.

I have not tested this, but this approach that might work: 
1 - Create a custom attribute that is the same for all leads. 
2 - Use getMultipleLeads API and query for that attribute. It will return 1000 leads and then give you the remaing count of leads. The total number of leads is then 1000 + remaining count
http://developers.marketo.com/documentation/soap/getmultipleleads/