How To Create Randomized Subject Lines In Marketo

In this tutorial I will show you how to set up the script and token in Marketo so you can send emails with randomized subject lines.

Why should I add randomized subject lines to my Emails?

It might seem like an odd feature to add to your email sends, but the reason I originally added it was for a follow up email that was being automatically sent to leads that didn’t respond to the prior emails. I wanted the subject line to be random, in case the recipient would receive this campaign multiple times. I thought that adding randomized subject lines would add a nice human element to a seemingly automatic email. Since the first implementation of it, I have also added it to form and white paper auto responders. It adds a nice level of customization and freshness to people that are heavily and actively engaged with our content and product demos.

Step 1: Create a Email Script Program Token

Adding Marketo Email ScriptTo create the token, first go to the root of your program and then go to the My Tokens section. From there you would select the Email Script option and then name it appropriately. For more information about adding a Email Script token section to your programs check out this helpful article from Marketo.

Step 2: Edit Your Token and Add Script

After you have created your email token, double click to edit it. The code editor will come up. From there you can paste in the following code:

You can see in the code example that first I created a list (or array) of possible random subject lines to pick from. You can easily replace my options and add as many of your options in this list as you like.

Next I created a random integer. The function $math.random picks between a span. In my example it will pick a random number between 0 and 7. This corresponds to the array I previously created. The number 0 corresponds to the subject line of “Meeting with your account manager” and the number 1 would correspond with “We would love to meet” and so on and so forth.

Then I created a variable ($subjectLine in my example)  that is the corresponding subject line from the random number.

Finally I printed the variable so that when the token is used the token will return the random subject line.

Step 3: Add the Token to Your Email

The final step is to add the token to the subject line of your email. Once that is done, whenever your email is sent it will run the email script and pick a random subject line email from your list of options! Additionally, for more information on adding email script tokens to your email, here is Marketo’s article about it.

Marketo Random Subject Line

I hope this tutorial has helped and that you have fun with it. Let me know your thoughts!

Top Social Media Networks for Your Church

When you think about the multitude of social media platforms available, it can be easy to feel overwhelmed. Because of this, my desire is to list some of the best social media platforms that you can utilize in your church.

Since most churches desire to have effective communication, I have based my list mainly on the effectiveness of communication each platform offers.



Facebook allows the users to follow people and pages they like. It also allows the users to share various types of media, posts, and events. Facebook is unquestionably the largest social network in the world. This makes it an obvious choice for me.

Another great aspect of Facebook is the awesome admins panel and stats they provide. These things help me figure out what works well and what does not. Some churches have a Facebook page that is more current and up-to-date than their website. If your church does not have a Facebook account, they should definitely start one.



Twitter allows users to follow other users. Users can post short “tweets” that followers can quickly read through. Twitter users can link outside content to tweets to help drive website traffic. It is a great tool for spreading information and sending quick reminders to people.

One of my favorite things about twitter is their ads. They are very affordable and I prefer their targeting plan over Facebook’s. However, our church does not have as many Twitter followers as we do on Facebook, so our ad campaigns are more successful on Facebook.

Church-based networks

One social media platform to consider would be church-based social network. Platforms like The City allow your church to connect with people constantly. Like on Facebook, you can organize events. You can even use this type of platform to set up prayer requests. They allow for a more “Christian” environment than social media does. I would definitely recommend using a church-based social network if you do not already.

Vimeo or Youtube

It is a great idea to have a video social networking platform. It gives your church the opportunity to share any videos your ministry produces. Whether it is the pastor’s sermon from Sunday or an update video, Vimeo or Youtube can be a great way to spread the word.

Instagram or Flickr

Along with video sharing, picture sharing is becoming extremely popular with the advances of cameras on smart phones. Photo sharing networks can be a great way to spread the word about a youth activity or other events.


Pinterest can be a great way for people to connect with one another and share ideas and content from your ministry. This is not as widely used as other social media sites, but Pinterest can give those following your church account a feeling of connection.


Google is definitely a giant on the tech scene. They boast a large number of users on their Google+ network, however not as many people are actively engaged. If a lot of people in your church are using it, this could become very valuable to your ministry.

Tumbler or WordPress

Blog sites are becoming increasingly more popular. They can be a great tool for pastors and other ministry leaders to  share content with their church. It also can be incorporated into community outreach. A church I previously atteneded uses a blog site to help support our quarterly magazine they send it into their community.

Many social media platforms exist. One thing to keep in mind is that what works for another church might not work for yours. You have to find what network and platforms work for you. These are just some of the ones we use and how they benefit our church.