{"id":20680,"date":"2022-10-10T00:00:00","date_gmt":"2022-10-10T00:00:00","guid":{"rendered":"https:\/\/www.mailgun.com\/blog\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/"},"modified":"2026-09-15T04:47:36","modified_gmt":"2026-09-15T04:47:36","slug":"utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees","status":"publish","type":"blog","link":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/","title":{"rendered":"5 conseils pour cr\u00e9er des campagnes d&#8217;emailing bas\u00e9es sur les donn\u00e9es"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Spray and pray \u2013 that used to be the name of the email marketing game. But these days, bulk email just doesn&rsquo;t cut it anymore. If only there were a way to make personalized, timely, relevant marketing emails that lead to higher engagements and more user conversions.<\/p>\n\n<p class=\"wp-block-paragraph\">Lucky for you, there <i>is<\/i> a way: <b>data-driven email programs<\/b>. Most businesses collect user data through transactional emails, website engagements, and email engagements. In this article, we\u2019ll go over five tips for using the data you already have on hand to build effective data-driven email campaigns.<\/p>\n\r\n    <nav data-content-type=\"longform\" class=\"toc-block longform-spacings px-5 py-6 px-md-6 px-lg-7 py-md-7 bg-light fs-sm rounded-lg\" aria-labelledby=\"toc-title-1673\"><p class=\"h5 m-0\" id=\"toc-title-1673\">Table des mati\u00e8res<\/p><div class=\"d-flex mt-3\"><div class=\"w-auto fw-bold text-accent d-flex me-2\">01<\/div><div class=\"d-flex flex-column\"><a class=\"fw-bold scrollme link-body-color text-accent\" href=\"#why-is-data-important\">Why is data important?<\/a><\/div><\/div><div class=\"d-flex mt-3\"><div class=\"w-auto fw-bold text-accent d-flex me-2\">02<\/div><div class=\"d-flex flex-column\"><a class=\"fw-bold scrollme link-body-color text-accent\" href=\"#what-data-privacy-protocols-should-i-be-aware-of\">What data privacy protocols should I be aware of?<\/a><\/div><\/div><div class=\"d-flex mt-3\"><div class=\"w-auto fw-bold text-accent d-flex me-2\">03<\/div><div class=\"d-flex flex-column\"><a class=\"fw-bold scrollme link-body-color text-accent\" href=\"#what-are-five-tips-for-using-data-in-your-email-program\">What are five tips for using data in your email program?<\/a><a class=\"scrollme link-body-color\" href=\"#anchor_1-five-data-driven-metrics-to-use-for-your-email-campaigns\">1. Five data-driven metrics to use for your email campaigns<\/a><a class=\"scrollme link-body-color\" href=\"#anchor_2-three-data-proven-attributes-to-segment-your-email-list\">2. Three data-proven attributes to segment your email list<\/a><a class=\"scrollme link-body-color\" href=\"#anchor_3-five-data-points-to-personalize-your-emails\">3. Five data-points to personalize your emails<\/a><a class=\"scrollme link-body-color\" href=\"#anchor_4-two-benchmarks-to-measure-your-email-marketing-campaigns-performance\">4. Two benchmarks to measure your email marketing campaign\u2019s performance<\/a><a class=\"scrollme link-body-color\" href=\"#anchor_5-two-data-points-by-which-to-optimize-your-send-time\">5. Two data points by which to optimize your send time<\/a><\/div><\/div><div class=\"d-flex mt-3\"><div class=\"w-auto fw-bold text-accent d-flex me-2\">04<\/div><div class=\"d-flex flex-column\"><a class=\"fw-bold scrollme link-body-color text-accent\" href=\"#how-does-mailgun-help-me-track-my-triggered-email-campaign\">How does Mailgun help me track my triggered email campaign?<\/a><\/div><\/div><div class=\"d-flex mt-3\"><div class=\"w-auto fw-bold text-accent d-flex me-2\">05<\/div><div class=\"d-flex flex-column\"><a class=\"fw-bold scrollme link-body-color text-accent\" href=\"#how-can-i-use-mailguns-email-templates-feature-to-make-personalized-triggered-emails\">How can I use Mailgun\u2019s email templates feature to make personalized triggered emails?<\/a><\/div><\/div><div class=\"d-flex mt-3\"><div class=\"w-auto fw-bold text-accent d-flex me-2\">06<\/div><div class=\"d-flex flex-column\"><a class=\"fw-bold scrollme link-body-color text-accent\" href=\"#wrapping-up\">Wrapping up<\/a><\/div><\/div><\/nav>\n<h2 class=\"wp-block-heading\">Why is data important?<\/h2>\n\n<p class=\"wp-block-paragraph\"><b>Data is everywhere<\/b>, and your business is constantly collecting it from users. For instance, your business probably collects user data from transactional emails, emails triggered by actions like requesting a password reset or signing up for a newsletter. These metrics provide valuable insight into your user\u2019s demographics, behavioral patterns, and geographical distribution. However, because transactional emails are often automated, they\u2019re usually thought of as <i>separate<\/i> from planned email campaigns with specific goals and contact lists.<\/p>\n\n<p class=\"wp-block-paragraph\">In the growing world of email automation, this separation can be a problem. The lines are starting to blur, and data from transactional emails can be lost or overlooked by marketing. Transactional data should coalesce seamlessly into targeting your marketing audience. In other words, <b>email tracking for transactional emails is a bit of a blind spot when it comes to analyzing metrics.<\/b><\/p>\n\n<p class=\"wp-block-paragraph\">Let\u2019s look at how we can use all of the user data your business collects to improve your email program. Then, we\u2019ll zone in on two ways to make your user data work for you with Mailgun.<\/p>\n\n<h2 class=\"wp-block-heading\">What data privacy protocols should I be aware of?<\/h2>\n\n<p class=\"wp-block-paragraph\">Before we dive into our five tips for using data in your emails, let\u2019s talk about data privacy. We\u2019ve gone over <a href=\"https:\/\/www.mailgun.com\/fr\/blog\/email\/importance-confidentialite-donnees\/\" target=\"_tabs\" rel=\"noopener noreferrer\">data privacy<\/a> in depth elsewhere, as well as groundbreaking legislation like the <a href=\"https:\/\/www.mailgun.com\/fr\/blog\/email\/le-rgpd-arrive\/\" target=\"_tabs\" rel=\"noopener noreferrer\">General Data Protection Regulation (GDPR)<\/a>, but let\u2019s refresh our memories.<\/p>\n\n<p class=\"wp-block-paragraph\">In general, data privacy protocols revolve around three key ideas:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>The data user\u2019s right to not be contacted<\/li>\n\n\n\n<li>The data user\u2019s right to have control over their personal data<\/li>\n\n\n\n<li>The data user\u2019s right to revoke access to their personal data<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\"><b><i>Data user<\/i><\/b> refers to the user from whom your business has collected data. As you can see, data privacy protocols focus on protecting consumers\u2019 rights to privacy. Besides GDPR, there are other compliance standards like the California Consumer Privacy Act (CCPA) and the <a href=\"https:\/\/www.mailgun.com\/blog\/email\/email-hipaa-compliance\/\" target=\"_tabs\" rel=\"noopener noreferrer\">Health Insurance Portability and Accountability Act (HIPAA)<\/a> each stipulate specific data privacy standards to protect individuals.<\/p>\n\n<p class=\"wp-block-paragraph\">Depending on your business and where it operates, you\u2019ll have to work with your Legal Team to determine the best way to meet data privacy standards and to stay on top of changing consumer protections like <a href=\"https:\/\/www.mailgun.com\/fr\/apple-mail-privacy-protection\/\" target=\"_tabs\" rel=\"noopener noreferrer\">Apple\u2019s Mail Protection Program (MPP)<\/a>.<\/p>\n\n<p class=\"wp-block-paragraph\">At Mailgun, we always work to meet the <a href=\"https:\/\/www.mailgun.com\/fr\/blog\/email\/importance-confidentialite-donnees\/\" target=\"_tabs\" rel=\"noopener noreferrer\">highest possible privacy standards<\/a> to protect our users from data privacy problems.<\/p>\n\n<h2 class=\"wp-block-heading\">What are five tips for using data in your email program?<\/h2>\n\n<p class=\"wp-block-paragraph\">So what does this all mean for email? Stay on top of your email game and use data to:<\/p>\n\n<ol class=\"wp-block-list\">\n<li>Get better metrics for your email campaign.<\/li>\n\n\n\n<li>Target your audience with segmentation.<\/li>\n\n\n\n<li>Personalize your emails.<\/li>\n\n\n\n<li>Determine important benchmarks for your email marketing campaign\u2019s performance.<\/li>\n\n\n\n<li>Optimize send time.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">We\u2019ll go over each of these in more detail below.<\/p>\n\n<h3 class=\"wp-block-heading\">1. Five data-driven metrics to use for your email campaigns<\/h3>\n\n<p class=\"wp-block-paragraph\">Ever wanted to get more out of your data? Does your marketing team have questions on the performance of your emails? At Mailgun, we pride ourselves on our <a href=\"https:\/\/www.mailgun.com\/blog\/product\/mailgun-campaign-analytics-taking-analytics-beyond\/\" target=\"_tabs\" rel=\"noopener noreferrer\">email analytics tools<\/a>. Let\u2019s look at how you can leverage data-driven metrics to improve your email campaigns with these actionable metrics:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><b>Conversion rate: <\/b>How many people convert into leads? The volume of your click rates can speak to conversions, and shed light on how effective your user segmentation and targeting is.<\/li>\n\n\n\n<li><b>Average Order Value (AOV): <\/b>What\u2019s the average revenue per subscriber? Per campaign sent? The success of this metric depends largely on deliverability. Are you an ISP trusted sender? <a href=\"https:\/\/www.mailgun.com\/fr\/blog\/email\/comment-ameliorer-taux-ouverture-emails\/\" target=\"_tabs\" rel=\"noopener noreferrer\">How high are your open rates?<\/a><\/li>\n\n\n\n<li><b>Adds to Cart: <\/b>Whether or not your user buys the item, do they even click through and add it to their cart? What does your link performance look like? Use timeline data to find out <i>when<\/i> users are accessing your links and use it to optimize your send time.<\/li>\n\n\n\n<li><b>Return on Investment (ROI): <\/b>This metric looks at the resources (time, energy, finances) that you\u2019ve invested in your email marketing strategy and maps it with revenue from the campaign. Use campaign analytics to dissect each aspect of the user lifestyle and validate your investment.<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">2. Three data-proven attributes to segment your email list<\/h3>\n\n<p class=\"wp-block-paragraph\">Segmenting your <a href=\"https:\/\/www.mailgun.com\/blog\/deliverability\/how-to-build-an-email-list-the-right-way\/\" target=\"_tabs\" rel=\"noopener noreferrer\">mailing list<\/a> is a great way to improve your email deliverability and dodge the <a href=\"https:\/\/www.mailgun.com\/blog\/deliverability\/avoid-emails-going-to-spam\/\" target=\"_tabs\" rel=\"noopener noreferrer\">spam filter<\/a>. But what criteria should you use for segmentation?<\/p>\n\n<p class=\"wp-block-paragraph\">This is where user data comes into play.<\/p>\n    <div data-content-type=\"longform\"  class=\"callout text-body-color px-5 py-6 px-md-6 px-lg-7 py-md-7 longform-spacings rounded-lg bg-light\" data-theme=\"light\">\r\n\r\n        <div class=\"content-body\"> Where sensitive data is concerned, be sure you\u2019re following industry data privacy and compliance standards. <a href=\"https:\/\/www.mailgun.com\/fr\/ressources\/guides\/securite-et-conformite-des-emails\/\">Here\u2019s our downloadable guide<\/a> to securing your email program.<\/div>\r\n    <\/div>\r\n\n<p class=\"wp-block-paragraph\"><b>A good practice is never to purchase user data.<\/b> Instead, you can encourage subscribers to share their data with you by cross-pollinating with social media. For instance, you can have an Instagram campaign that encourages users to sign up for your mailing lists. You can also implement confirmation tools like <a href=\"https:\/\/www.mailgun.com\/blog\/deliverability\/how-to-build-an-email-list-the-right-way\/\" target=\"_tabs\" rel=\"noopener noreferrer\">double opt-in<\/a> to ensure your users <i>want<\/i> to hear from you. This also increases your open rate.<\/p>\n\n<p class=\"wp-block-paragraph\">Need help getting started with segmentation? Here are three key metrics to watch:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><b>Geography: <\/b>Where are your users located? While geographic data can be harder to collect accurately if your subscriber uses a VPN to mask their location, geography encompasses more than just location. By learning the language your user prefers to communicate in, you can get a better idea of where your target audience is and what sort of products their community is\u00a0 interested in. The simplest way to segment audiences is by country, region, population density, city size, and climate zone.<\/li>\n\n\n\n<li><b>Demography: <\/b>Who is your audience? Segment your email list based on demographic factors. For instance, what are the ages, income levels, genders, occupations, religions, or marital status of your users? Here, we\u2019re diving knee-deep into personal information, so ensure you\u2019re staying compliant with data privacy standards and only asking for information that is relevant.<\/li>\n\n\n\n<li><b>Behavior: <\/b>Behavioral data is a\u00a0 powerful way to segment your audience and is based on how your users interact with you. Group together subscribers who behave similarly, whether this means an equally low level of engagement, high engagement and high follow-through, or a middle level of engagement, and use this data to develop your <a href=\"https:\/\/www.mailgun.com\/blog\/deliverability\/promote-strategic-email-engagement\/\" target=\"_tabs\" rel=\"noopener noreferrer\">engagement strategy<\/a>.<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">3. Five data-points to personalize your emails<\/h3>\n\n<p class=\"wp-block-paragraph\">\u201cDear User\u201d just really doesn\u2019t cut it in the subject lines these days. If your subscribers have signed up for your email service, chances are they\u2019ve shared their first names. \u201cDear Taylor\u201d is more likely to get a response than \u201cDear User.\u201d<\/p>\n\n<p class=\"wp-block-paragraph\">Here are five ways you can personalize emails:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><b>Use your user\u2019s first name in the greeting line. <\/b>This is a simple enough task if you build an HTML template and insert variables based on subscriber data. This little addition can go a long way to making your user feel like you\u2019re attempting to connect to them on a personal level.<\/li>\n\n\n\n<li><b>Use your user\u2019s location to help your team determine the type of items they recommend in their marketing emails. <\/b>For instance, if a customer is in Bali, do you want to recommend the latest winter coats?<\/li>\n\n\n\n<li><b>Use your user\u2019s gender to add a touch of personalization.<\/b> Let\u2019s suppose your company sells surfwear for both men and women. You want to send women\u2019s items to women and men\u2019s items to men.<\/li>\n\n\n\n<li><b>Use a <\/b><a href=\"https:\/\/www.mailgun.com\/fr\/products\/inbox\/email-testing-tool\/email-subject-line-tester\/\" target=\"_tabs\" rel=\"noopener noreferrer\"><b>personalized subject line<\/b><\/a><b>.<\/b> An inbox is a crowded place, and your subject line is your first chance to impress. Address your customer by name to add that personal touch and stand out from the masses.<\/li>\n\n\n\n<li><b>Use a personalized Call to Action (CTA).<\/b> Use targeted CTAs that are personal to your customers to entice them to click through to your website or mobile app. One strategy is to track buyer intent on your site and use triggers to help segment your mailing lists. If a user has only ever purchased electric guitars from your company, would you send them promotions for accordions?<\/li>\n<\/ul>\n\n<h3 class=\"wp-block-heading\">4. Two benchmarks to measure your email marketing campaign\u2019s performance<\/h3>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.mailgun.com\/fr\/products\/measure\/email-analytics\/\" target=\"_tabs\" rel=\"noopener noreferrer\">Email marketing benchmarks<\/a> are pieces of marketing data that help you determine the success and health of your email marketing efforts. Two pieces of data you should be aware of include:<\/p>\n\n<ol class=\"wp-block-list\">\n<li><b>Your brand\u2019s benchmarks: <\/b>These include the usual metrics such as Click-through Rate (CTR), Click-to-Open Rate (CTOR), conversion rate, opens, and unsubscribes, alongside any other metrics your brand tracks.<\/li>\n\n\n\n<li><b>Your industry\u2019s email marketing benchmarks: <\/b>These are the average benchmarks for your industry for the same metrics mentioned above.<\/li>\n<\/ol>\n\n<h3 class=\"wp-block-heading\">5. Two data points by which to optimize your send time<\/h3>\n\n<p class=\"wp-block-paragraph\">We\u2019ve talked about <a href=\"https:\/\/www.mailgun.com\/fr\/blog\/email\/meilleur-moment-envoyer-emails-code\/\" target=\"_tabs\" rel=\"noopener noreferrer\">the best time to send emails<\/a>, so we\u2019ll just give you the highlights on why send time optimization is so important.<\/p>\n\n<ul class=\"wp-block-list\">\n<li>You want to catch your audience at the right time, when they are most receptive to emails. If you send out an email when their workday comes to a close on Friday, chances are they\u2019re rushing out the door to enjoy their weekend and will dismiss your message.<\/li>\n\n\n\n<li>It\u2019s good to know if your customers browse your emails from laptops or mobile devices. Customer data points can help you know your audience and their email opening habits.<\/li>\n\n\n\n<li>You also want to keep in mind your objective. If your product is work-related, send out your emails during the workweek. If your product is related to leisure time, outside of work hours might be better.<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">Check out <a href=\"https:\/\/www.mailgun.com\/fr\/fonctionnalites\/email-optimisation-heure-envoi\/\" target=\"_tabs\" rel=\"noopener noreferrer\">Mailgun\u2019s Send Time Optimization tool<\/a>\u00a0and take the guesswork out of send-time optimization.<\/p>\n\n<h2 class=\"wp-block-heading\">How does Mailgun help me track my triggered email campaign?<\/h2>\n\n<p class=\"wp-block-paragraph\">Let\u2019s put some of these tips into practice with Mailgun and learn how to personalize emails with user data to improve your email metrics. One thing to keep in mind; bulk email marketing campaigns with zero <a href=\"https:\/\/www.mailgun.com\/fr\/resources\/videos\/4-astuces-personnalisation-emails\/\" target=\"_tabs\" rel=\"noopener noreferrer\">personalization<\/a> have lower open rates, clicks, and higher complaints.<\/p>\n\n<p class=\"wp-block-paragraph\">With more data-driven email solutions than ever before, you can take your data and create a triggered marketing campaign sequence. These sequences create highly personalized content for the recipient, making it more meaningful for them. Better content leads to higher engagement and triggered marketing campaigns are a great way to do that.<\/p>\n\n<p class=\"wp-block-paragraph\">This practice requires a defined plan set in motion by behavior and contextual data collected from your customer channels.<\/p>\n\n<p class=\"wp-block-paragraph\"><b>The easiest way to explain a triggered email campaign is with an example.<\/b> Let\u2019s take an e-commerce platform, like a travel booking agency, and look at the amount of customer email touchpoints and opportunities that provide useful information to users:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Welcome email<\/li>\n\n\n\n<li>Password reset email<\/li>\n\n\n\n<li>Receipt email<\/li>\n\n\n\n<li>Invoice email<\/li>\n\n\n\n<li>Shipping notification email<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">These touchpoints are examples of information that is required for a large percentage of users on a recurring basis, and it makes sense to automate them with <a href=\"https:\/\/www.mailgun.com\/fr\/solutions\/plateforme-email-transactionnel\/\" target=\"_tabs\" rel=\"noopener noreferrer\">Transaction Emails<\/a>.<\/p>\n\n<p class=\"wp-block-paragraph\">Transactional Emails integrate with your application and are sent based on triggers, or click actions the user performs. Once the triggers are in place, <b>Mailgun tracks the email at each step of the process and provides detailed <\/b><a href=\"https:\/\/documentation.mailgun.com\/en\/latest\/api-events.html#event-structure\" target=\"_tabs\" rel=\"noopener noreferrer\"><b>meta-data<\/b><\/a><b> for events that occur, <\/b>like metrics on email sends in real-time, and changes in your email lists while supporting A\/B tests so you can ensure deliverability.<\/p>\n\n<h2 class=\"wp-block-heading\">How can I use Mailgun\u2019s email templates feature to make personalized triggered emails?<\/h2>\n\n<p class=\"wp-block-paragraph\">Mailgun provides a way for you to upload your <a href=\"https:\/\/www.mailgun.com\/blog\/product\/getting-started-with-our-email-templates-api\/\" target=\"_tabs\" rel=\"noopener noreferrer\">HTML email templates<\/a> to our platform with the Templates API. This feature gives you a lot of room to store and customize your HTML email templates, and supports templates using <a href=\"https:\/\/handlebarsjs.com\/\" target=\"_tabs\" rel=\"noopener noreferrer\">Handlebars v 3.0<\/a> as our template engine. These engines allow us to compile your templates into JavaScript functions for lightning fast execution.<\/p>\n\n<p class=\"wp-block-paragraph\">Returning to our travel booking agency example, we can use the same behavioral data to create a Transaction Email for when a potential prospect signs up with an account but doesn\u2019t make a purchase. You can recognize from elements they interacted with that they preferred two particular cities while browsing your website. With this data, you can create a targeted email that suggests these two cities as popular travel destinations.<\/p>\n\n<p class=\"wp-block-paragraph\">To do this in Mailgun, first design or import a template to be sent to re-engage with the user. The example API request below will demonstrate some code that you can integrate into your application which will store a simple HTML template.<\/p>\n    <div data-content-type=\"longform\" class=\"code-snippet longform-spacings rounded-lg overflow-hidden shadow \" data-count=\"1\">\r\n        <ul class=\"nav nav-buttons code-snippet__tabs longform-except position-relative d-flex gap-2 flex-wrap p-3\" role=\"tablist\">\r\n\r\n                            \r\n                    \r\n                        <li class=\"nav-item\" role=\"presentation\">\r\n                            <button class=\"nav-link active\" data-bs-toggle=\"tab\" data-bs-target=\"#code_0\" type=\"button\" role=\"tab\" aria-controls=\"code_0\" aria-selected=\"true\">\r\n                                Python                            <\/button>\r\n                        <\/li>\r\n\r\n                    \r\n                            \r\n        <\/ul>\r\n        <div class=\"code-snippet__tab-content tab-content\">\r\n\r\n                            \r\n                    <div class=\"tab-pane show active\" id=\"code_0\" role=\"tabpanel\" aria-labelledby=\"code_0\">\r\n                        <div class=\"code-snippet__code-wrapper\">\r\n                            <div class=\"nav nav-buttons code-snippet__copy-wrapper\">\r\n                                <button type=\"button\" class=\"nav-link code-snippet__copy\" data-clipboard-target=\"#code_0_content\" data-clipboard-label=\"Copier dans le presse-papiers\" data-clipboard-success-label=\"Copi\u00e9\u00a0!\" data-clipboard-error-label=\"Impossible de copier\" data-tooltip=\"Copier dans le presse-papiers\" data-tooltip-placement=\"left\" role=\"tooltip\" aria-label=\"Copier dans le presse-papiers\">\r\n                                    <svg class=\"code-snippet__copy-icon code-snippet__copy-icon--default\" width=\"24\" height=\"24\" aria-hidden=\"true\" data-url=\"https:\/\/www.mailgun.com\/wp-content\/plugins\/sinch-core\/assets\/icons\/sinch\/file-stack.svg\"><\/svg>\r\n                                    <svg class=\"code-snippet__copy-icon code-snippet__copy-icon--success\" width=\"24\" height=\"24\" aria-hidden=\"true\" data-url=\"https:\/\/www.mailgun.com\/wp-content\/plugins\/sinch-core\/assets\/icons\/sinch\/badge-check.svg\"><\/svg>\r\n                                <\/button>\r\n                            <\/div>\r\n                            <pre class=\"w-100 h-100 m-0 line-numbers language-Python\">\r\n                                <code id=\"code_0_content\" class=\"language-Python\">\r\n\r\n                                    import requests\r\n\r\ndef send_template_message():\r\n    r = requests.post(\r\n        &quot;https:\/\/api.mailgun.net\/v3\/YOUR_DOMAIN_NAME\/messages&quot;,\r\n        auth=(&quot;api&quot;, api_key),\r\n        data={&quot;from&quot;: &quot;Excited User &quot;,\r\n              &quot;to&quot;: &quot;yourrecipient@domain.com&quot;,\r\n              &quot;subject&quot;: &quot;Hello&quot;,\r\n              &quot;template&quot;: &quot;vacation_template&quot;,\r\n  \t\t\t  &quot;o:tracking&quot;: &quot;yes&quot;,\r\n              &quot;h:X-Mailgun-Variables&quot;: &#039;{&quot;place&quot;: [{ &quot;city&quot;: &quot;Tokyo&quot;, &quot;url&quot;: &quot;https:\/\/www.mailgun.com&quot;}, { &quot;city&quot;: &quot;San Francisco&quot;, &quot;url&quot;: &quot;https:\/\/www.mailgun.com&quot;}]}&#039;})\r\n    print r.json()\r\n    return\r\n\r\nsend_template_message()\r\n                                <\/code>\r\n                            <\/pre>\r\n                        <\/div>\r\n                    <\/div>\r\n                                    <\/div>\r\n    <\/div>\r\n\n<p class=\"wp-block-paragraph\">When this Transactional Email is triggered, the recipient will receive an email that features destination and travel details for their preferred two cities.. Pretty cool, right? This is just a simple example, but you can build sophisticated newsletters, re-engagement campaigns, and even welcome emails tailored to your user base. Get started with the Templates API <a href=\"https:\/\/documentation.mailgun.com\/en\/latest\/api-templates.html#get-template\" target=\"_tabs\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n\n<h2 class=\"wp-block-heading\">Wrapping up<\/h2>\n\n<p class=\"wp-block-paragraph\">With all its metrics and nuances, personalization is a daunting task to many senders, but it doesn\u2019t have to be that way. If you take your data and <b>plug and play with Mailgun\u2019s transaction tools instead of spray and pray with your entire contact list<\/b>, your email programs will stand out to the right people. Better emails mean better engagement, which keeps you out of the spam folder.<\/p>\n\n<p class=\"wp-block-paragraph\">Did you want more tips like our Templates API example or data-driven campaign insights? Subscribe to our Newsletter so you never miss an update!<\/p>\n    <div data-content-type=\"longform\" class=\"longform-spacings\">\r\n        <div class=\"cta bg-primary rounded-lg px-5 py-6 p-md-7 px-md-6\">\r\n                    <div class=\"form-subscription\">\r\n                            <div class=\"h4 mb-3\">\r\n                    Keep me posted! Get great resources in your inbox every week.                <\/div>\r\n                                    <form accept-charset=\"UTF-8\" action=\"\" enctype=\"multipart\/form-data\" data-form-subscription method=\"POST\" style=\"max-width: 400px;\">\r\n                <div class=\"row justify-content-between align-items-top g-2\">\r\n                    <div class=\"col-10\">\r\n                        <input type=\"email\" name=\"email\" class=\"form-control\" placeholder=\"Email\" autocomplete=\"email\" required>\r\n                        <div data-fs=\"error\" role=\"alert\" class=\"invalid-feedback\">\r\n                            Please complete this required field.                        <\/div>\r\n                    <\/div>\r\n                                            <div class=\"col-12 order-last mt-3 fs-xxs\" data-fs=\"acceptance\" style=\"display:none;\">\r\n                            \r\n                                <div class=\"form-check\">\r\n                                    <input id=\"formSubscriptionAcceptance-terms-5976\" class=\"form-check-input\"\r\n                                        type=\"checkbox\" name=\"terms\">\r\n                                    <label for=\"formSubscriptionAcceptance-terms-5976\" class=\"form-check-label text-body-color\">\r\n                                        J&rsquo;ai lu et j&rsquo;accepte les conditions d&rsquo;utilisation.                                        <span class=\"hs-form-required\">*<\/span>\r\n                                    <\/label>\r\n                                <\/div>\r\n\r\n                            \r\n                                <div class=\"form-check\">\r\n                                    <input id=\"formSubscriptionAcceptance-privacy-5629\" class=\"form-check-input\"\r\n                                        type=\"checkbox\" name=\"privacy\">\r\n                                    <label for=\"formSubscriptionAcceptance-privacy-5629\" class=\"form-check-label text-body-color\">\r\n                                        J&rsquo;ai lu et j&rsquo;accepte la politique de confidentialit\u00e9.                                        <span class=\"hs-form-required\">*<\/span>\r\n                                    <\/label>\r\n                                <\/div>\r\n\r\n                                                    <\/div>\r\n                    \r\n                                            <div class=\"col-12 order-last fs-xxs mb-0 mt-2 text-body-color\">\r\n                            Send me the Mailjet Newsletter. I expressly agree to receive the newsletter and know that I can easily unsubscribe at any time.                        <\/div>\r\n                    \r\n                    <div class=\"col-2\">\r\n                        <button type=\"submit\" value=\"Submit\" aria-label=\"Submit\" class=\"btn btn-secondary btn-icon\">\r\n                            <svg aria-hidden=\"true\" data-url=\"https:\/\/www.mailgun.com\/wp-content\/plugins\/sinch-core\/assets\/icons\/layout\/chevron-right.svg\"><\/svg>\r\n                        <\/button>\r\n                    <\/div>\r\n                <\/div>\r\n\r\n                <input type=\"hidden\" name=\"formSubscriptionRecaptchaToken\" data-fs=\"recaptcha-token\">\r\n                <input type=\"hidden\" name=\"customListID\" value=\"\">\r\n\r\n            <\/form>\r\n            <div data-fs=\"message-success\" style=\"display: none;\">\r\n                <p class=\"mb-0 mt-2 text-body-color\">\r\n                    Check your inbox monthly for your Mailjet Newsletter!                <\/p>\r\n            <\/div>\r\n        <\/div>\r\n        <\/div>\r\n    <\/div>\r\n","protected":false},"excerpt":{"rendered":"<p>Les donn\u00e9es sont le moteur de la personnalisation, et les options sont presque infinies. D\u00e9couvrez nos meilleurs conseils pour analyser les donn\u00e9es et les utiliser afin de cr\u00e9er des emails intelligents et cibl\u00e9s qui transmettent votre message aux bonnes personnes.<\/p>\n","protected":false},"author":21,"featured_media":4074,"menu_order":0,"template":"","meta":{"_acf_changed":false,"footnotes":""},"blog_category":[20],"class_list":["post-20680","blog","type-blog","status-publish","has-post-thumbnail","hentry","blog_category-email"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Conseils pour envoyer des campagnes d&#039;emailing cibl\u00e9es bas\u00e9es sur les donn\u00e9es - Transactional Email API Service For Developers | Mailgun<\/title>\n<meta name=\"description\" content=\"L&#039;envoi massif d&#039;emails de marketing \u00e0 l&#039;aveugle ne suffit plus. D\u00e9couvrez nos cinq conseils pour utiliser les donn\u00e9es clients afin d&#039;am\u00e9liorer votre strat\u00e9gie d&#039;email marketing.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conseils pour envoyer des campagnes d&#039;emailing cibl\u00e9es bas\u00e9es sur les donn\u00e9es - Transactional Email API Service For Developers | Mailgun\" \/>\n<meta property=\"og:description\" content=\"L&#039;envoi massif d&#039;emails de marketing \u00e0 l&#039;aveugle ne suffit plus. D\u00e9couvrez nos cinq conseils pour utiliser les donn\u00e9es clients afin d&#039;am\u00e9liorer votre strat\u00e9gie d&#039;email marketing.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/\" \/>\n<meta property=\"og:site_name\" content=\"Transactional Email API Service For Developers | Mailgun\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-15T04:47:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mailgun.com\/wp-content\/uploads\/2025\/07\/MG-Blog-Email.png\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"448\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/\",\"url\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/\",\"name\":\"Conseils pour envoyer des campagnes d'emailing cibl\u00e9es bas\u00e9es sur les donn\u00e9es - Transactional Email API Service For Developers | Mailgun\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mailgun.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/MG-Blog-Email.png\",\"datePublished\":\"2022-10-10T00:00:00+00:00\",\"dateModified\":\"2026-09-15T04:47:36+00:00\",\"description\":\"L'envoi massif d'emails de marketing \u00e0 l'aveugle ne suffit plus. D\u00e9couvrez nos cinq conseils pour utiliser les donn\u00e9es clients afin d'am\u00e9liorer votre strat\u00e9gie d'email marketing.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mailgun.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/MG-Blog-Email.png\",\"contentUrl\":\"https:\\\/\\\/www.mailgun.com\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/MG-Blog-Email.png\",\"width\":720,\"height\":448},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/email\\\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"5 conseils pour cr\u00e9er des campagnes d\u2019emailing bas\u00e9es sur les donn\u00e9es\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/\",\"name\":\"Transactional Email API Service For Developers | Mailgun\",\"description\":\"Des API d\u2019emails transactionnels puissantes qui vous permettent d'envoyer, de recevoir et de suivre des emails, con\u00e7ues pour les d\u00e9veloppeurs. En savoir plus d\u00e8s aujourd'hui !\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/#organization\",\"name\":\"Transactional Email API Service For Developers | Mailgun\",\"url\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mailgun.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-android-chrome-512x512-1.png\",\"contentUrl\":\"https:\\\/\\\/www.mailgun.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-android-chrome-512x512-1.png\",\"width\":512,\"height\":512,\"caption\":\"Transactional Email API Service For Developers | Mailgun\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mailgun.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Conseils pour envoyer des campagnes d'emailing cibl\u00e9es bas\u00e9es sur les donn\u00e9es - Transactional Email API Service For Developers | Mailgun","description":"L'envoi massif d'emails de marketing \u00e0 l'aveugle ne suffit plus. D\u00e9couvrez nos cinq conseils pour utiliser les donn\u00e9es clients afin d'am\u00e9liorer votre strat\u00e9gie d'email marketing.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/","og_locale":"fr_FR","og_type":"article","og_title":"Conseils pour envoyer des campagnes d'emailing cibl\u00e9es bas\u00e9es sur les donn\u00e9es - Transactional Email API Service For Developers | Mailgun","og_description":"L'envoi massif d'emails de marketing \u00e0 l'aveugle ne suffit plus. D\u00e9couvrez nos cinq conseils pour utiliser les donn\u00e9es clients afin d'am\u00e9liorer votre strat\u00e9gie d'email marketing.","og_url":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/","og_site_name":"Transactional Email API Service For Developers | Mailgun","article_modified_time":"2026-09-15T04:47:36+00:00","og_image":[{"width":720,"height":448,"url":"https:\/\/www.mailgun.com\/wp-content\/uploads\/2025\/07\/MG-Blog-Email.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/","url":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/","name":"Conseils pour envoyer des campagnes d'emailing cibl\u00e9es bas\u00e9es sur les donn\u00e9es - Transactional Email API Service For Developers | Mailgun","isPartOf":{"@id":"https:\/\/www.mailgun.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/#primaryimage"},"image":{"@id":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mailgun.com\/wp-content\/uploads\/2025\/07\/MG-Blog-Email.png","datePublished":"2022-10-10T00:00:00+00:00","dateModified":"2026-09-15T04:47:36+00:00","description":"L'envoi massif d'emails de marketing \u00e0 l'aveugle ne suffit plus. D\u00e9couvrez nos cinq conseils pour utiliser les donn\u00e9es clients afin d'am\u00e9liorer votre strat\u00e9gie d'email marketing.","breadcrumb":{"@id":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/#primaryimage","url":"https:\/\/www.mailgun.com\/wp-content\/uploads\/2025\/07\/MG-Blog-Email.png","contentUrl":"https:\/\/www.mailgun.com\/wp-content\/uploads\/2025\/07\/MG-Blog-Email.png","width":720,"height":448},{"@type":"BreadcrumbList","@id":"https:\/\/www.mailgun.com\/fr\/blog\/email\/utiliser-donnees-creer-meilleures-campagnes-emailing-declenchees\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mailgun.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/www.mailgun.com\/fr\/blog\/"},{"@type":"ListItem","position":3,"name":"5 conseils pour cr\u00e9er des campagnes d\u2019emailing bas\u00e9es sur les donn\u00e9es"}]},{"@type":"WebSite","@id":"https:\/\/www.mailgun.com\/fr\/#website","url":"https:\/\/www.mailgun.com\/fr\/","name":"Transactional Email API Service For Developers | Mailgun","description":"Des API d\u2019emails transactionnels puissantes qui vous permettent d'envoyer, de recevoir et de suivre des emails, con\u00e7ues pour les d\u00e9veloppeurs. En savoir plus d\u00e8s aujourd'hui !","publisher":{"@id":"https:\/\/www.mailgun.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mailgun.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.mailgun.com\/fr\/#organization","name":"Transactional Email API Service For Developers | Mailgun","url":"https:\/\/www.mailgun.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.mailgun.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.mailgun.com\/wp-content\/uploads\/2025\/06\/cropped-android-chrome-512x512-1.png","contentUrl":"https:\/\/www.mailgun.com\/wp-content\/uploads\/2025\/06\/cropped-android-chrome-512x512-1.png","width":512,"height":512,"caption":"Transactional Email API Service For Developers | Mailgun"},"image":{"@id":"https:\/\/www.mailgun.com\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/blog\/20680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/types\/blog"}],"author":[{"embeddable":true,"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/users\/21"}],"version-history":[{"count":3,"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/blog\/20680\/revisions"}],"predecessor-version":[{"id":20702,"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/blog\/20680\/revisions\/20702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/media\/4074"}],"wp:attachment":[{"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/media?parent=20680"}],"wp:term":[{"taxonomy":"blog_category","embeddable":true,"href":"https:\/\/www.mailgun.com\/fr\/wp-json\/wp\/v2\/blog_category?post=20680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}