AnsweredAssumed Answered

How to get a visitor's cookie ID in front end?

Question asked by Dan Sisu on Feb 6, 2019
Latest reply on Feb 6, 2019 by Sanford Whiteman

Hey,

 

I am trying to get the status of current user (subscribed/unsubscribed) from Marketo to an web application.

 

The scenario is like this:

User opens our web application page and Marketo script is loaded;

From Marketo API a REST response is sent. We want this rest response in Front End to also contain the status of the user – subscribed or not.

 

I read the documentation below but I was looking for a specific snippet code to see how it works exactly. Has anybody implemented this?

http://developers.marketo.com/blog/get-a-visitors-cookie-id-and-then-query-associated-lead-data/

 

Many thanks!
Dan

Outcomes