{"id":202322,"date":"2023-09-27T15:25:34","date_gmt":"2023-09-27T19:25:34","guid":{"rendered":"https:\/\/optinmonster.com\/?p=202322&#038;post_type=optinmonster_docs&#038;preview_id=202322"},"modified":"2025-04-14T12:12:54","modified_gmt":"2025-04-14T16:12:54","slug":"how-to-translate-campaigns","status":"publish","type":"optinmonster_docs","link":"https:\/\/optinmonster.com\/docs\/how-to-translate-campaigns\/","title":{"rendered":"How to Translate  Campaigns"},"content":{"rendered":"\n<p>Do you want to translate campaigns and display them in multiple languages? If your website supports different language selections, you may want to serve campaign content in the appropriate language for each visitor.<\/p>\n\n\n\n<p>In this article, you will learn how to create language-specific campaigns and target them based on your site&#8217;s language settings, ensuring a seamless user experience for all visitors.<\/p>\n\n\n\n<p><em><strong>Before you start<\/strong><\/em>, this guide assumes that you already have at least one campaign in your account you wish to translate. If you have not yet created a campaign, get started <a href=\"https:\/\/optinmonster.com\/docs\/creating-your-first-optin\/\">following our guide here<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"enable\">Duplicate Campaign<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To translate a campaign, you need to first duplicate an existing one. Follow our guide <a href=\"https:\/\/optinmonster.com\/docs\/how-to-duplicate-an-optin\/\" title=\"\">here<\/a> to learn how to do it.<\/li>\n\n\n\n<li>When duplicating a campaign, you&#8217;ll be prompted to name the new campaign. When naming the duplicated campaign, it is best practice to add a prefix or suffix indicating the campaign&#8217;s language, such as EN, ES, or FR. For example the original campaign name was &#8220;Newsletter-EN&#8221; and the new one is &#8220;Newsletter-ES&#8221;.<br><img decoding=\"async\" width=\"800\" height=\"771\" class=\"wp-image-202569\" style=\"width: 800px;\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_4.jpg\" alt=\"duplicate campaign submit button\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_4.jpg 1310w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_4-300x289.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_4-1024x987.jpg 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_4-768x740.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"options\">Translate Campaign Content<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Once you&#8217;ve duplicated your campaign, it will open in the <a href=\"https:\/\/optinmonster.com\/docs\/optinmonster-builder-overview\/\" title=\"\">campaign builder<\/a> for you to edit.<\/li>\n\n\n\n<li>In this step, you can translate the campaign text into your preferred language directly within the <a href=\"https:\/\/optinmonster.com\/docs\/optinmonster-builder-overview\/\" title=\"\">campaign builder<\/a>. Be sure to apply these changes across all views.<br><img decoding=\"async\" width=\"800\" height=\"338\" class=\"wp-image-202570\" style=\"width: 800px;\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_5-scaled.jpg\" alt=\"A screenshot showing campaign content translated into spanish\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_5-scaled.jpg 2560w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_5-300x127.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_5-1024x433.jpg 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_5-768x325.jpg 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_5-1536x650.jpg 1536w, https:\/\/optinmonster.com\/wp-content\/uploads\/2023\/09\/t_5-2048x867.jpg 2048w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/li>\n\n\n\n<li>If your campaign contains images, videos, or other media with embedded text, remember to<a href=\"https:\/\/optinmonster.com\/docs\/add-an-image-to-every-optin-type-and-theme\/#Replace_Image\" title=\"\"> replace these assets<\/a> as well, since OptinMonster does not allow direct text edits on images.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Targeting Options<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Targeting by URL path<\/strong><\/h3>\n\n\n\n<p>Now that your campaign content is ready, you need to adjust the <a href=\"https:\/\/optinmonster.com\/docs\/how-to-use-display-rules-in-optinmonster\/\" title=\"\">Display Rules<\/a> to ensure the appropriate campaign is shown to the right visitors based on their language selection.<\/p>\n\n\n\n<p>If your domain includes the language as part of the URL path, you can use <a href=\"https:\/\/optinmonster.com\/docs\/how-to-show-or-hide-your-campaigns-on-specific-pages\/\" title=\"\">URL path targeting<\/a>. For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>test.com\/en\/articles<\/li>\n\n\n\n<li>test.com\/es\/articles<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"365\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_6-1024x365.jpg?wsr\" alt=\"A screenshot demonstrating how to use URL path targeting to display the correct campaign.\" class=\"wp-image-202571\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_6-1024x365.jpg 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_6-300x107.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_6-768x274.jpg 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_6-1536x548.jpg 1536w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_6-2048x730.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Targeting by Query Parameters<\/h3>\n\n\n\n<div class=\"alert-box alert-blue\">\n<p class=\"alert-box-title\">Important!<\/p>\n\n\n\n<p><strong><em>Before you start<\/em><\/strong>, query argument targeting is available with a&nbsp;<a href=\"https:\/\/optinmonster.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">Pro and higher subscription<\/a>.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><a href=\"https:\/\/optinmonster.com\/docs\/how-to-target-campaigns-to-urls-with-query-arguments\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Read more<\/a><\/p>\n<\/div>\n\n\n\n<p>If your domain stores the language as a query parameter, you can use <a href=\"https:\/\/optinmonster.com\/docs\/how-to-target-campaigns-to-urls-with-query-arguments\/\" title=\"\">query argument <\/a>targeting. For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>test.com\/articles?hl=en<\/li>\n\n\n\n<li>test.com\/articles?hl=es<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_7-1024x619.jpg?wsr\" alt=\"A screenshot showing query argument targeting to display proper campaign\" class=\"wp-image-202572\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_7-1024x619.jpg 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_7-300x181.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_7-768x464.jpg 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_7.jpg 1483w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Targeting by Subdomain<\/h3>\n\n\n\n<p>If you host different language campaigns on subdomains of your main domain, such as <strong>es<\/strong>.test.com or <strong>fr<\/strong>.test.com, you can use <a href=\"https:\/\/optinmonster.com\/docs\/how-to-add-edit-or-delete-a-website-in-optinmonster\/#Sub-Domain_Targeting\" title=\"\">subdomain targeting<\/a> to display the campaign according to the language.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"553\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_8-1024x553.jpg?wsr\" alt=\"A screenshot showing subdomain targeting to display proper campaign\" class=\"wp-image-202573\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_8-1024x553.jpg 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_8-300x162.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_8-768x415.jpg 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_8-1536x830.jpg 1536w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_8.jpg 2020w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"alert-box alert-blue\">\n<p class=\"alert-box-title\">Important!<\/p>\n\n\n\n<p><strong><em>Before you start<\/em><\/strong>, Geo-location targeting requires a&nbsp;<a href=\"https:\/\/optinmonster.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">Growth subscription<\/a>.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><a href=\"https:\/\/optinmonster.com\/docs\/how-to-geo-target-your-optins\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Read more<\/a><\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Targeting by Geo-location<\/h3>\n\n\n\n<p>Additionally, you can use <a href=\"https:\/\/optinmonster.com\/docs\/how-to-geo-target-your-optins\/\" title=\"\">Geo-location<\/a> targeting to display the campaign in the appropriate language based on the visitor&#8217;s location. For example, if you want the Spanish version to be shown to visitors from Spain, you can configure the campaign to target users in that region.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"453\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_10-1-1024x453.jpg?wsr\" alt=\"A screenshot showing geolocation targeting to display proper campaign.\" class=\"wp-image-202577\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_10-1-1024x453.jpg 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_10-1-300x133.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_10-1-768x340.jpg 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_10-1-1536x680.jpg 1536w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_10-1-2048x906.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faqs\">FAQs<\/h2>\n\n\n\n<h5 class=\"wp-block-heading\">I have language specifications in the URL or query arguments, but visitors can still change their browser language. I want to display the correct campaign based on the language of the page. Is that possible?<\/h5>\n\n\n\n<div class=\"alert-box alert-blue\">\n<p class=\"alert-box-title\">Important!<\/p>\n\n\n\n<p><strong><em>Before you start<\/em><\/strong>, HTML targeting requires a&nbsp;<a href=\"https:\/\/optinmonster.com\/pricing\" target=\"_blank\" rel=\"noreferrer noopener\">Growth subscription<\/a>.<\/p>\n\n\n\n<p class=\"is-style-arrow-link has-link-color\"><a href=\"https:\/\/optinmonster.com\/docs\/how-to-use-optinmonsters-html-targeting-rule\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Read more<\/a><\/p>\n<\/div>\n\n\n\n<p>When a visitor changes the language in their browser, the <code>html<\/code> lang attribute is updated. For example, it will be <code>lang=\"en\"<\/code> for English or <code>lang=\"es\"<\/code> for Spanish. Since OptinMonster supports <a href=\"https:\/\/optinmonster.com\/docs\/how-to-use-optinmonsters-html-targeting-rule\/\" title=\"\">HTML targeting<\/a>, you can use this to display the appropriate campaign based on the language.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"656\" src=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_9-1-1024x656.jpg?wsr\" alt=\"A screenshot showing HTML targeting to display proper campaign\" class=\"wp-image-202575\" srcset=\"https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_9-1-1024x656.jpg 1024w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_9-1-300x192.jpg 300w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_9-1-768x492.jpg 768w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_9-1-1536x985.jpg 1536w, https:\/\/optinmonster.com\/wp-content\/uploads\/2025\/03\/t_9-1.jpg 1627w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to translate campaigns and display them in multiple languages? If your website supports different language selections, you may want to serve campaign content in the appropriate language for each visitor. In this article, you will learn how to create language-specific campaigns and target them based on your site&#8217;s language settings, ensuring a&nbsp;&hellip;<\/p>\n","protected":false},"author":23255,"comment_status":"open","ping_status":"closed","template":"","documentation\/categories":[96],"documentation\/tags":[31399,31497,31498,31415,31411],"class_list":["post-202322","optinmonster_docs","type-optinmonster_docs","status-publish","hentry","categories-extending"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/202322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/types\/optinmonster_docs"}],"author":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/users\/23255"}],"replies":[{"embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/comments?post=202322"}],"version-history":[{"count":17,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/202322\/revisions"}],"predecessor-version":[{"id":203098,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/202322\/revisions\/203098"}],"wp:attachment":[{"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/media?parent=202322"}],"wp:term":[{"taxonomy":"categories","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/categories?post=202322"},{"taxonomy":"internal_tags","embeddable":true,"href":"https:\/\/optinmonster.com\/wp-json\/wp\/v2\/documentation\/tags?post=202322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}