Web page tracking of known visitor not working on all domains | Community
Skip to main content
Charlie_Marketo
New Participant
December 14, 2022
Solved

Web page tracking of known visitor not working on all domains

  • December 14, 2022
  • 1 reply
  • 2577 views

We have munchkin tracking deployed on multiple domains - both live production sites and their respective development sites.

 

For site A, tracking of known visitors is working on both Live and Dev.

For site B, tracking of known visitors is working on Live but not on Dev

 

I have been trying to debug why we aren't seeing tracking on Site B Dev but am at a loss.  This is where I have got to:

  • The same Munchkin code is on both Dev and Live and is deployed using the same method
  • Form fills are being tracked on both Dev and Live
  • I am seeing visitWebPage POSTs being sent on both Dev and Live

The difference appears to revolve around _mkt_trk

  • On Live _mkt_trk cookie exists and is sent along with the form post
  • On Dev the _mkt_trk cookie exists in Chrome but not in Firefox and in both browsers the value sent along with the form fill POST is null
  • There is no difference in the browser settings used for the Dev and Live sites

What I can't figure out is why there is no _mkt_trk cookie on Dev in Firefox but there is in Chrome or why the _mkt_trk value is not being sent along with the Form post in Chrome.

 

Any ideas would be very welcome.

Best answer by SanfordWhiteman

I’d be looking in the Dev Tools » Network tab and Console to see what’s really happening.

 

It would probably take 5m to figure out if I could see your screen, if you feel like DMing me.


Looking at the dev site separately it was clear this has the same cause as Re: Cookie “_mkto_trk” has been rejected for invalid domain.

1 reply

Darshil_Shah1
Community Manager
December 14, 2022

The munchkin tracking cookie is called _mkto_trk, while the corresponding form field is called _mkt_trk. 

 

Do you see any console errors upon loading the dev site in Chrome and Firefox browsers? I believe you have checked the save endpoint in the browser's console to see if the _mkt_trk field got populated or not upon form submit. Also, if possible, it'd be helpful if you could share the URLs for us to see what's going on.

 

Charlie_Marketo
New Participant
December 14, 2022

Sorry, yes munchkin tracking cookie _mkto_trk isn't being created on Dev site in Firefox.

No console errors.

Unfortunately I can't share the dev site urls as they are only accessible by whitelisted IPs

SanfordWhiteman
New Participant
December 14, 2022

Check that you have Tracking Protection off for the Dev domain. Also note that the local origin localhost, if you’re using that, has stricter CORS rules than remote origins (dev.example.com pointing to your local box is considered remote, localhost is not).