02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

The Secret of tracking with MailChimp List Fields

List fields can go a lot further than just users names and information fields can be used to mark users and really leverage a lot more out of them.

Video Transcript

00:00The next advanced topic I want to talk about is list fields now
00:05This really demands from you to understand some HTML and maybe even a little bit of JavaScript
00:10Which we both teach on our side zero to geeky calm or zero to skills calm
00:16Let's jump right in now
00:17if it's if it's a bit too confusing just get the
00:19Background how the basics of it how it works and then you could always get your developer to do it
00:25You probably would need a developer if you don't go through our training
00:29Alright, so I'm going to go into my list and I'm gonna click into the list and I'm gonna go all the way down to my
00:35zero to deal list
00:37And you'll notice that in there we have our settings tab and you'll find here list fields and merge tags
00:44now list fields and merge tags are basically variables that we could send to our
00:50Our list when our user is subscribing to our page
00:54now
00:56This is also used as a merge tag
00:59So if we wanted to we could have used this as a merge tag
01:02Remember when we saw in our earlier course and we're gonna want we're gonna see how to use these merge tags again
01:07Later down and a couple of minutes actually
01:09So basically what I did is I added a new merge tag
01:13I could add a new field at any time and I can select what type of field do I want it to be?
01:18Usually I'd probably select a text. But for example, maybe when a user joins you they just paid you
01:24Maybe when the user joined you they just did some sort of an action and you want to record that action
01:29And you want to save it so you could then reference it and know that this user paid me already on the first engagement
01:35So maybe I won't start sending him a lot of free emails
01:38But continue sending him things are relevant to the things that he was interested in that are the premium content
01:45In my case, I added a text item and I called it source and I made it not visible
01:51Because I don't want the user to be able to edit it
01:54Now if I set it to be visible when the user goes into their to manage their profile
01:59It would be visible to them
02:01But we don't want it to be visible
02:03Nor do we want it to be required because if we don't send it we don't send it
02:07It's not the end of the world and then I defined the name of that element
02:12I could have kept it as merge 3, but that name is not very descriptive. So
02:18Now that I have a source basically what I want to do is I want to assign to it
02:22Where did that user come from?
02:24Now most of my users are going to come from the zero to deal site
02:27And what I wanted to do is I'm I'm just going to click on and and look at our source of the page
02:33I'm just going to make it a bit smaller
02:35You know what? Let me open up my editor because if I open this up in an editor
02:39I'm just going to close that down. Let me just open up an editor
02:44Alright, let me just close that up
02:46So I'm just going to paste that inside so like that we could have it nice and big inside of our editor
02:52and it's a
02:53Colors that are contrasting and I'm going to skip all the way into our area where the actual form is and this is basically the HTML
03:01Form and I'll make it even a bit bigger
03:03This is the HTML form that is being used that is that we're sending to MailChimp to send
03:09Information of our user so you can see that the form itself
03:13Which we talked about how to embed forms, but in this case what we're doing
03:16We're adding an extra attribute, which is the type hidden and we're naming it source and the idea source as well
03:23And the value by default is zero to deal because we're in the zero to deal website and look how they compare
03:30We call that merge tag source
03:32We saved it and now we added it in and we set it to zero to deal with that does it enables me to know
03:38What was the source that the user came from and in this case zero to deal defines that they came from my site
03:44zero to deal.com
03:47Now I've been playing around with some Facebook ads and playing around with some AdWords ads
03:52So I wanted to be able as I'm capturing the user and giving them this free
03:56Content to know that I paid for them so I could then look down and look at the trail and history to see is it
04:02Worth my while am I getting my money back from those users that I paid for to get that traffic
04:08So to do that I need this to be a little bit more dynamic
04:11So I'm going to scroll all the way to the top here and we're not going to learn JavaScript here
04:16But I'm going to just talk about this really really quickly
04:20Because it's really important for us to kind of get a good understanding of
04:25How it works don't worry about the code you could always ask a developer to do it
04:29Or you could ask us for the source files or just come on to zero to deal.com and look at the source files directly
04:36That's not a problem. You're more than welcome to explore it
04:40So now we have your function. That's get get up, which is basically
04:45I'm just gonna you know
04:46I'm just gonna explain it as if you know how to program and if you don't then just
04:51Roll with me on this one
04:53so get up is basically a function and this function all it really does is it gets all the
04:59All the search queries that are inside of my page
05:02Now the search queries a search query is basically when a page ends with a question mark
05:08It could end with variables now in our case in this page. We want to we set a variable that is called
05:16Source
05:17Surprisingly, so the variables called source and I could set the variable to be let's say FB for Facebook
05:24And if I click on enter and the user loads the page through the source FB
05:28And you actually go in and check the source file again. You'll see that now the source file will automatically well
05:36You would have to see that in JavaScript, but in
05:41In firebug to be able to see it live
05:44But basically what it does it goes into the value right here
05:48It goes into the value of our hidden source element and replaces the value with whatever value is up here in our question mark source
05:56Equals with that enables me it enables me to tag the user and say hey this user is a Facebook user
06:03That came from and you could be more specific
06:07He made a Facebook ad and this is your first Facebook ad and set it to FB one
06:11What that will do is once you build up that users and you want to do some deeper analysis
06:16You can then follow through with users and see how engaged were they was it a good investment?
06:21Same is true if you're gonna make now a partnership with a site and put up an ad on a specific site
06:25or you're gonna ask or you're gonna put some sort of a
06:29You're gonna write maybe a guest blog post for a site
06:32And you want to be able to measure the value of that guest posting now if there is not a lot of value to it if the
06:38Users are not engaged or not a lot of users join then you know it's not worth for you to do it
06:43So one of the most important things you want to do is to try to track the source
06:47And that's really what the definition of this video and what I wanted to talk about this video even though you have one page
06:54Programmatically you could dynamically create basically dynamic sources now if you don't know how to do it
07:01And you don't have a developer you're always welcome to send us an email for us to hire us to add this
07:06Implementation for you will be more than happy to do it me or one of my staff people
07:11Very easy it shouldn't take long. It's a really simple process
07:15So just send us an email and we'll be happy to help you
07:18Alright, so that covers this video in the next video
07:21We're going to take advantage of this information and try to see some sort of auto responder that we could create knowing
07:27Where our users came from so see you in the next video

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!