Munchkin Code for New Website

Anonymous
Not applicable

Munchkin Code for New Website

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
Tags (1)
6 REPLIES 6
Josh_Hill13
Level 10 - Champion Alumni

Re: Munchkin Code for New Website

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 - Community Moderator

Re: Munchkin Code for New Website

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.
Anonymous
Not applicable

Re: Munchkin Code for New Website

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

SanfordWhiteman
Level 10 - Community Moderator

Re: Munchkin Code for New Website

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

Anonymous
Not applicable

Re: Munchkin Code for New Website

I like this solution!  Thanks for sharing

Anonymous
Not applicable

Re: Munchkin Code for New Website

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.