OptinMonster Documentation

Documentation, Reference Materials, and Tutorials for OptinMonster

Home

Docs

How to Create a X Follow Campaign using Canvas

How to Create a X Follow Campaign using Canvas

Want to grow your X (formerly Twitter) following directly from your website? It’s super easy to create a custom X follow button campaign using our blank Canvas template.

In this guide, we’ll walk you through how to set it all up, step by step.

Creating Canvas Campaign

  1. From the Campaigns screen, select the Create New Campaign button.
    The OptinMonster dashboard with an arrow pointing to the Create New Campaign button.
  2. Next, a window will pop up asking for your campaign type. Let’s select Popup.
    The campaign type selection modal with the Popup option highlighted.
    *We’ll use a Popup campaign for this example, but the steps are the same for any campaign type.
  3. Now, you’ll see Create New Campaign modal. Since we’re starting from scratch, choose the Canvas template.
    The template selection screen with an arrow pointing to the Canvas template.
  4. Once you’ve selected a template you’ll be prompted to give it a name and assign it to a site in your account. Select the Start Building button to create the campaign and open it in the builder to customize.
    The modal for naming a campaign and selecting the Start Building button.
  5. Your Canvas campaign will open in the campaign builder with two default elements; an Image Block and a Text Block.
    A new Canvas campaign showing the default image and text blocks
  6. Now, hover your mouse over the default Image block. You’ll see a set of controls appear. Click on the trash can icon to delete the block.
    Hovering over the image block reveals a trash can icon for deletion.
  7. Next, do the same thing for the default Text block. Hover over it and click the trash can icon to remove it.
    Hovering over the text block reveals a trash can icon for deletion.
    Perfect! You now have a completely empty campaign, ready for your custom X button.
    Empty campaign

Adding the X Embed Code

X allows you to generate embed code so you can add it to your campaign.

  1. Now visit the X’s guide to create follow button embed code and copy the embed code after styling it as described in their guidelines. Once you’ve designed your button, select the option to Copy Code. This will save the HTML to your clipboard.
    The X publish tool showing the generated embed code for a follow button.
  2. Now, head back to the OptinMonster campaign builder. To add the code, we need an HTML block. From the left sidebar, find the HTML block and drag it onto your empty campaign.
    Dragging an HTML block from the sidebar into the campaign builder.
  3. Select the new HTML block you just added to the campaign. This will open its settings in the left sidebar.
    Clicking on the HTML block in the campaign builder to open its settings.
  4. In the HTML editor box on the left, paste the entire code you copied from X.
    Pasting the X embed code into the HTML block's settings panel.
    After you paste the code , you will see the follow button on the designer.
  5. You might notice that the campaign looks wider than the button. No worries, you can fix that! Just click the settings icon in the bottom toolbar, then adjust the campaign’s width. For this example, let’s set it to 200px, but feel free to tweak it to whatever works best for your design.
    Adjusting the campaign width in the popup settings panel.
    And that’s it! You’ve successfully created a custom X Follow Button Campaign to display on your site. Don’t forget to save and publish your campaign to make it live!
    Save Button

FAQs

Q: Can I track conversions when visitors select the Follow button in my campaign?

A: Unfortunately, no. X will replace the code added to the Custom HTML field with their own to generate the appearance and functionality of the Follow button. As a result, you cannot add the required om-trigger-conversion class that OptinMonster uses to track conversions on links and custom forms.

There is a possibility of having a Conversion Intent that you can track if you are following our guide on How to Track Conversion Events in an iFrame.


If you’re serious about jumpstarting your website business growth, then get started with OptinMonster today!

Get Started With OptinMonster Today!

BONUS: Done-For-You Campaign Setup ($297 value)

Our conversion experts will design 1 free campaign for you to get maximum results – absolutely FREE!

Click here to get started →


Still stuck?

How can we help?

Last updated on


Start Getting More
Leads & Sales Today
with OptinMonster!

Create and launch smart capture forms today in minutes. What are you waiting for?

Create and launch smart capture forms
today in minutes. What are you waiting for?

OptinMonster has transformed our business. Before integrating their optins, our clients saw a 2% conversion rate from web traffic, which is slightly above the standard for their industry. With the integration of OptinMonster’s lightbox popup, exit-intent technology, split testing, and other tools, our client’s conversion rates soared by an unprecedented 500%. They attracted substantially more customers while spending less on digital advertising. Their success propelled them to the top of their markets, outperforming national chains and other medical spas with much bigger marketing budgets. Our client’s success in their market has distinguished us in our own. We are now one of the most sought-after marketing firms in the industry of aesthetic medicine. We know that the integration of OptinMonster, more than any other tool or marketing strategy, has supported this growth and achievement.

chris zelig medstar media

Chris Zelig

Partner, Medstar Media

OptinMonster has been a game-changer for us. From driving donations to collecting new leads, there is nothing that this simple tool has failed to accomplish. Our lead collection rate has jumped by over 1,000%.

joe lowe american bird conservancy

Joe Lowe

Director of Digital Communications, American Bird Conservancy

Through OptinMonster’s exit-intent popups, we have more than doubled our sales conversion rate. Best of all is the compound effect of using OptinMonster over a long period of time—more conversions mean more customers, which means more word of mouth.

mitch smith, managing director, shockbyte

Mitch Smith

Managing Director, Shockbyte.com