Munchkin Code for New Website | Community
Skip to main content
February 5, 2015
Question

Munchkin Code for New Website

  • February 5, 2015
  • 3 replies
  • 2036 views
Hi Everyone!

We are looking to launch a new website, and we currently have munchkin code on our current site. We are wondering that when we put the code on our new site, will it pick up where our old site left off? Will people who visited our old site still be tracked the same as they were on the old site?

Appreciate the input!
Alec
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Josh_Hill13
Level 10
February 5, 2015
People will be tracked on both sites. However, their details won't merge unless they've filled out a form on both sites.

Thus, there will be a cliff when you switch. So you might send an email to the house list to get them to click on the tracked link back to the site and tie their new cookie back.

There is documentation and discussions on this as well.
SanfordWhiteman
Level 10
February 6, 2015
Well, don't really need to send an email.  

Have the new website check if they have a Munchkin tracking cookie.  If they don't, redirect them back to the old site with a special query param that means "please send old cookie value and return to new website." Old site sees param, reads cookie (if there is one), redirects back to new site decorating the URL with the old cookie. New site reads old value, sets cookie accordingly, then loads Munchkin.  Presto, you have copied the cookie. 

http://www.newexample.com --> http://www.oldexample.com?gimme-the-cookie --> http://www.newexample.com?your-cookie-sir=keys:values

A developer with at least intermediate skillz is necessary to make sure you don't end up w/a redirect loop.

This works because the Munchkin tracking cookie is tiny.  If it were a ton of cookie data you couldn't really pass it this way and would have to resort to some other way of getting the users to re-identify themselves.  I'd hate for you to have to do that if you have already associated leads.
May 4, 2016

What if we don't have access to the old site because the domain has stayed the same?

SanfordWhiteman
Level 10
May 4, 2016

If the domain is the same, you don't have to do anything! Browsers send existing cookies regardless of where your site is hosted.

May 4, 2016

No, people will have to convert on the new site and then it will do the cookie match and carry on seemlessly from the old site.