Skip to main content
Level 2
Nov 15, 2023 12:39 PM UTC
Solved

Tracking on website and customer portal

Hi, there are some old threads about cross domain tracking but wondering if something has changed or people have other ideas for my problem.

We have our munchkin code on our website which works fine (domain 1: www.xyzchargingcard.com). We also have customer portal (domain 2: mycards.xyzchargingcards.com). We'd like to do some web personalisation on our website AND in our customer portal.

i.e. if I see in Marketo that x person hasn't got Product a, show banner for Product a on the website and in the customer portal. We'd use a web personalisation tool for that that is connected to Marketo/SFDC.

Now, I was just thinking we'd add the munchkin code on the customer portal too but presumable they'd just look like anonymous users? Customers do need to log into the portal but that's not a marketo form. Maybe there could be a way to recognize them through that?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Nov 18, 2023 6:43 AM UTC

If the domains don’t share a common private domain suffix (e.g. www.example.com  and pages.example.com share example.com) then they can’t automatically share a cookie.

 

You can, however, pass the session token from one site to another if you control the navigation between the sites. That is, if you control all the links from Site A to Site B, then decorate the links on Site A with the cookie from Site B, and have Site B reuse the token value if it sees one in the URL.

 

There are also ways to do this even if you don’t control all the navigation, by redirecting people from Site B to Site A to get Site A’s cookie, which Site A passes back in a second redirect. You can see this very method in use on many major apps, even it sounds clunky. But you’ll need a skilled developer to implement it.

3 replies

SanfordWhiteman
User Group Leader
User Group Leader
Nov 16, 2023 4:37 AM UTC

Did you purposely leave off the “s” at the end of the website (www) domain?

 

Otherwise, if they share a common parent domain example.com, they are already sharing the same Munchkin session cookie. So if someone is associated on one site, they’re associated on the other, too — not anonymous.

Translate
AnissaBrAuthor
Level 2
Nov 17, 2023 12:10 PM UTC

That was just an example. The domains are different. I initially thought it was a subdomain, but it's not.

Translate
SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Nov 18, 2023 6:43 AM UTC

If the domains don’t share a common private domain suffix (e.g. www.example.com  and pages.example.com share example.com) then they can’t automatically share a cookie.

 

You can, however, pass the session token from one site to another if you control the navigation between the sites. That is, if you control all the links from Site A to Site B, then decorate the links on Site A with the cookie from Site B, and have Site B reuse the token value if it sees one in the URL.

 

There are also ways to do this even if you don’t control all the navigation, by redirecting people from Site B to Site A to get Site A’s cookie, which Site A passes back in a second redirect. You can see this very method in use on many major apps, even it sounds clunky. But you’ll need a skilled developer to implement it.

Translate