Re: Marketo not showing webpage activity information for leads created from WebService API source

Mkhanna0510
Level 2

Hi, 

We have observed that some leads have blank webpage activity information for the last 7 days and this is mainly for API-created leads. We have a Dev. Sign up page and our Dashboard is sending the information to Woopra and then from Woopra to Marketo. The Munchkin cookie is working fine but not able to track the issue. Also, we are in the process to implement the Segment tool to our Tech Stack and have implemented the segment code to our brand website and other pages. Not sure if the Segment code is making some impact but open to know your thoughts.

16 REPLIES 16
Katja_Keesom
Level 10 - Community Advisor + Adobe Champion

Agree with @SanfordWhiteman , we need a bit more info here. Questions that I have offhand in addition:

  • Did all the leads that came in through the API actually come in via the sign up page? If they are from other sources where they did not visit the website the observation is actually correct.
  • Is it not simply the case that they did not accept cookies? Is there actually a cookie associated with these records?

It could help if you share the sign up page.

Mkhanna0510
Level 2

@Katja_Keesom @SanfordWhiteman Thank you for replying on this thread. Firstly, "working fine" means that I have checked the presence of the Munchkin code on the sign-up page. This is the sign-up page URL as requested, let me know if I can add more information here.

Katja_Keesom
Level 10 - Community Advisor + Adobe Champion

Again, as @SanfordWhiteman said, pease provide a bit more background and have a look at our questions. Always happy to help, but we need something to work with.

Mkhanna0510
Level 2

@Katja_Keesom @SanfordWhiteman Sorry for the late reply!!! Honestly, I am not a developer person and do not have much insight into the REST API Endpoints information or the code that you are asking. However, if you can guide me so that I can reach to the information that you are referring to, that will be great OR I can ask some specific questions to my developer team for the same. I can try to answer some of the queries here - 

  • Did all the leads that came in through the API actually come in via the sign-up page? If they are from other sources where they did not visit the website the observation is actually correct. [MK] - We have this signup page(Non-Marketo) for developers to register for our product and the second API source of leads is from Drift Chatbot. So, the main issue is for the Developer Sign-up page.
  • Is it not simply the case that they did not accept cookies? Is there actually a cookie associated with these records? [MK]- Yes, cookies are associated with this process.

I can provide more information on the lead journey, 

1. Anonymous lead visits the Sign-up page and registers by filling out the form. 

2. Lead Data will be sent to the Woopra tool from our website(Nylas Dashboard)

Mkhanna0510_0-1687773395683.png

Request Method: POST
 
Screenshot 2023-06-26 at 2.04.24 PM.png
 
3. Once data is there in Woopra(Woopra is connected to Marketo via API), Woopra sends the data to Marketo.
This is some code sent to me by one of my developers, I am pretty sure this has nothing to do with Munchkin tracking or Anonymous tracking - 
{
  "output": {
    "result": [
      {
        "id": 10109912,
        "status": "updated"
      }
    ],
    "requestId": "1481c#188e926bcc2",
    "success": true
  },
  "input": {
    "firstName": "",
    "lastName": "",
    "customFields": [
      [
        "tempUTMCampaign",
        ""
      ],
      [
        "tempUTMSource",
        ""
      ],
      [
        "tempUTMMedium",
        ""
      ],
      [
        "woopraSourceIndicator",
        "Back Links"
      ],
      [
        "woopraFirstReferrerURL",
        "https://www.windowsnoticias.com/"
      ],
      [
        "city",
        "Prievidza"
      ],
      [
        "country",
        "SK"
      ],
      [
        "Woopra_Visitor_Id__c",
        ""
      ],
      [
        "Most_Recent_Device__c",
        "desktop"
      ],
      [
        "SSO_Provider__c",
        ""
      ]
    ],
    "allowUpdate": "true",
    "email": ""
  }
}
 
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Are you not associating the Munchkin session with the person record on sign-up using API? You'd need to do that for the subsequent web activities of the signed-in user to get logged into Marketo since the sign-in form isn't a Marketo form. IMO Woopra is just using the Leads POST API endpoint to upsert lead data in Marketo, which won't associate the person record in Marketo with the Munchkin cookie.

 

Mkhanna0510
Level 2

@Darshil_Shah1 Thank you for your response, however, I am not a developer person so cannot confirm your query. However, this issue was not happening earlier and also not happening with the majority of Sign up leads. We have seen Webpage activities associated with the leads coming from Woopra.

SanfordWhiteman
Level 10 - Community Moderator

As Darshil says, we do not have enough information.

 

Ask your developer for the exact REST API endpoint they’re contacting and for the full JSON payload they’re sending. In this example they’ve combined input and output from their custom app. This isn’t useful, as we have no idea what their code is like. If they supply the raw JSON data they’re sending, and where they’re sending, we can potentially help.

 

(Not sure I understand why they aren’t troubleshooting this themselves, to be frank. It should be pretty clear whether they’re sending the cookie or not. If they’re sending it — which only works with the Submit Form or Associate Lead API endpoints — they would know.)

Mkhanna0510
Level 2

Sure, I will ask our developer team to chime in on this to provide the information. However, I have also escalated this issue to Marketo Support and not sure they provided the correct response on the same.

Mkhanna0510_0-1687805065264.png

 

SanfordWhiteman
Level 10 - Community Moderator

This wouldn’t be relevant to API-created and -associated leads. Support isn’t the best resource for developer questions.

Mkhanna0510
Level 2

@SanfordWhiteman @Darshil_Shah1 Our developer team and I totally agree with your point that our Non-Marketo Sign-up page is just sending the lead and the Munchkin cookie is present on the page only. We need to associate the lead's activity with lead creation in Marketo. My developer team has some queries, if you can help that will be great - 

  1. What do we need to send from the Munchkin cookie to the Marketo Lead REST API to associate anonymous activity with a lead?
  2. How do we get this information from the cookie?

 

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

You should call the Associate Lead endpoint with the Munchkin tracking cookie (_mkto_trk) value and lead id securely via the backend (and not from the client-side). This would associate that tracking cookie with the know person record in the Marketo database, and any subsequent activities on pages with Munchkin JS by the person on that tracked session would be logged in Marketo in their activity log.

 

 

Mkhanna0510
Level 2

@Darshil_Shah1 Is this the right way to do this? Or Can you assist with some code to link Munchkin Code to the lead creation?

Mkhanna0510_0-1689688504038.png

 

 

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

I don't know your stack/backend to be able to provide a fully functional code. I can certainly recommend you to use the Associate Leads endpoint (and not the post leads endpoint) to associate a known Marketo lead record to a munchkin cookie and its associated web activity history. I think you should reach out to your developer with these details, and they should be able to set this up. 🙂

 

Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Agreed! If you were able to see the web page activities before, maybe your devs did some updates recently that removed the setup to associate the cookie with the person record. Maybe you could ask one of your developers to hop on this thread and let us know how they're handling the cookie association. 🙂

 

SanfordWhiteman
Level 10 - Community Moderator

Again, what REST API endpoint(s) are you using and what data are you passing to them?

 

This non-Marketo page only shows us that the Munchkin cookie is being set in the browser. That doesn’t tell us what you’re doing with it on the back end.

SanfordWhiteman
Level 10 - Community Moderator

(a) What do you mean by “working fine”?

(b) Which API endpoint are you using to associate Munchkin cookies with leads? Be detailed, there’s not enough here to work with yet.