Skip to main content

#F7F7F70 discutindo

Pardotフォームで離脱の原因を見つけるために、

フォームのレイアウトテンプレートに、 GTMタグ、Clarityタグを埋め込みたいです。

 

ベストプラクティスさまが無料提供されている

下記のレイアウトテンプレートを活用しています。

この中に、どの位置にGTMタグ、Clarityタグを埋め込めば良いかを

アドバイスいただけますと幸いです。

 

--------------

<!DOCTYPE html>

<html lang="ja">

  <head>

    <!-- Pardotフォームテンプレート(Bootstrap版)-->

    <meta charset="utf-8">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <meta name="robots" content="noindex,nofollow">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="description" content="%%description%%">

    <title>%%title%%</title>

    <!-- Bootstrap CDN参照-->

    <!-- version 4.5--><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"

      integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

    <!-- Google Font読み込み-->

    <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap">

    <style>

/* ##### レイアウト共通スタイル ##### */

/* ### フォント設定 | Noto Sans JPを指定 */

body, input, select, textarea { font-family:'Noto Sans JP',sans-serif,system-ui; }

/* ### リンク */

a:link, a:visited { color:#004196; }

a:hover, a:active { color:#005cd3; }

/* ### ボタン(.btn-primaryの置き換え) */

.tplbp-bootstrap4 .btn-primary { background-color:#004196; border-color:transparent; }

.tplbp-bootstrap4 .btn-primary:link, .tplbp-bootstrap4 .btn-primary:visited { background-color:#004196; border-color:transparent; }

.tplbp-bootstrap4 .btn-primary:hover, .tplbp-bootstrap4 .btn-primary:active, .tplbp-bootstrap4 .btn-primary:focus { background-color:#005cd3; border-color:transparent; }

.tplbp-bootstrap4 .btn-primary:disabled { opacity:40% !important; background-color:#005cd3 !important; border-color:transparent !important; }

/* ### 項目ラベル */

.tplbp-bootstrap4 label.form-label { font-weight:700; }

/* ### small */

.tplbp-bootstrap4 small { font-size:.875em; }

/* ### チェックボックス/ラジオボタン */

.tplbp-bootstrap4 .custom-control-input:checked ~ .custom-control-label::before { background-color:#004196; border-color:#004196; }

.tplbp-bootstrap4 .pd-checkbox span.value, .tplbp-bootstrap4 .pd-radio span.value { display:block; overflow:hidden; }

.tplbp-bootstrap4 .pd-checkbox span.value > span, .tplbp-bootstrap4 .pd-radio span.value > span { margin-right:1.25em; }

/* ### 必須項目 */

.tplbp-bootstrap4 .form-field.required .form-label::after, .tplbp-bootstrap4 .form-field.required .col-form-label::after { content:'必須'; margin-left:.5em; font-size:.875em; color:#dc3545; }

/* ### エラー表示 */

.tplbp-bootstrap4 .errors { margin-bottom:2em; padding:1em; border:solid 2px #dc3545; color:#dc3545; }

.tplbp-bootstrap4 .form-text.error { color:#dc3545; }

/* ### Date-Picker対応 */

#ui-datepicker-div { display:none; }

.ui-datepicker.ui-widget { padding:.5rem .75rem; background:#FFFFFF; border:solid 1px #aaaaaa; border-radius:.25rem; box-shadow:2px 2px 4px 0 rgba(0, 0, 0, 0.2); }

.ui-datepicker.ui-widget .ui-datepicker-header { display:flex; flex-wrap:wrap; font-size:.9rem; }

.ui-datepicker.ui-widget .ui-datepicker-header a.ui-datepicker-prev, .ui-datepicker.ui-widget .ui-datepicker-header a.ui-datepicker-next { color:#007bff; text-decoration:underline; }

.ui-datepicker.ui-widget .ui-datepicker-header .ui-datepicker-prev { width:50%; }

.ui-datepicker.ui-widget .ui-datepicker-header .ui-datepicker-next { width:50%; text-align:right; }

.ui-datepicker.ui-widget .ui-datepicker-header .ui-datepicker-title { display:flex; justify-content:center; margin-bottom:.3rem; width:100%; }

.ui-datepicker.ui-widget .ui-datepicker-header .ui-datepicker-title .ui-datepicker-month { margin-right:.1rem; }

.ui-datepicker.ui-widget .ui-datepicker-header .ui-datepicker-title ui-datepicker-year { margin-left:.1rem; }

.ui-datepicker.ui-widget .ui-datepicker-header .ui-datepicker-title select { font-size:.9rem; }

.ui-datepicker.ui-widget table.ui-datepicker-calendar thead th { background:#999999; text-align:center; font-weight:normal; font-size:.9rem; color:#FFFFFF; }

.ui-datepicker.ui-widget table.ui-datepicker-calendar th.td { text-align:center; }

.ui-datepicker.ui-widget td a { display:block; padding:.1rem .25rem; text-align:center; }

.ui-datepicker.ui-widget td.ui-datepicker-week-end a { background:#FFDBC8; }

/* ##### テーブルレイアウト用スタイル ##### */

/* TH(フォーム項目ラベル)セルと、TD(入力エリア)セルの幅指定 */

form#pardot-form table th { width:25%; }

form#pardot-form table td { width:75%; }

/* フォーム項目ラベル セルの背景色 */

form#pardot-form table th { background-color:#f7f7f7; }

/* ##### スタイル ここまで ##### */

    </style>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

  </head>

  <body>

    <div class="container-fluid mt-3 mb-3">

      %%content%%

    </div>

    <script>

      // ### Bootstrap用のClassを追加

      // テキスト

      $('input[type=text]').each(function () {

        $(this).attr('class', $(this).attr('class') + ' text form-control');

      });

      // テキストエリア

      $('textarea').attr('class', 'form-control');

      // セレクトボックス

      $('select').attr('class', 'form-control');

      $('.pd-select select > option:first-child').append('選択してください'); // 最初の選択肢に、文言を追加

      // チェックボックス

      $('.pd-checkbox span.value > span').attr('class', 'custom-control custom-checkbox');

      $('input[type=checkbox]').attr('class', 'custom-control-input');

      $('.pd-checkbox span.value > span > label').attr('class', 'custom-control-label');

      // ラジオボタン

      $('.pd-radio span.value > span').attr('class', 'custom-control custom-radio');

      $('input[type=radio]').attr('class', 'custom-control-input');

      $('.pd-radio span.value > span > label').attr('class', 'custom-control-label');// 送信ボタン処理

      $('#pardot-form').submit(function () { $('#pardot-form :submit').prop('disabled', true); })

      // プレースホルダのサンプル

      // $('.first_name input').attr('placeholder','太郎'); // 例)first_name 項目に、「太郎」と表示

    </script>

    <!-- 作成:株式会社ベスト・プラクティス-->

    <!-- https: //www.best-practice.co.jp/-->

  </body>

</html>

0/9000

Hi all,

 

I have connected MySql to Tableau desktop. However one of the tables has a column that has an HTML file in it.

 

a:11:{s:8:"email_to";s:20:"santorer@hra.nyc.gov";s:2:"cc";s:0:"";s:3:"bcc";s:0:"";s:7:"subject";s:26:"[⌗30866] RSVP Confirmation";s:7:"content";s:4890:"<!DOCTYPE html>

<html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

</head>

<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">

<div style="

background-color: ⌗e6e7e8;

-webkit-text-size-adjust:none !important;

margin:0;

padding: 25px 25px 25px 25px;

">

<div style="

background-color: ⌗ffffff;

-webkit-text-size-adjust:none !important;

margin:0;

border-radius:5px;

">

<table width='100%' style='width:100%; margin:0; font-family:"open sans"' cellspacing="0" cellpadding="0">

<tr>

<td style='padding:0px;border:none; text-align:center;'>

<div style="padding:45px 20px; font-family:'open sans'">

<p style='line-height:110%;font-size:18px; font-style:italic; margin:0'>You have RSVP-ed</p>

<p style='display: inline-block;padding: 5px 10px;border: 1px solid ⌗B7B7B7;'>Yes</p>

<p style='font-size:30px; color:⌗303030; font-weight:bold; text-transform:uppercase; margin-bottom:0px;  margin-top:0;line-height:110%; padding-bottom:15px;padding-top:30px'>T2: CARES Getting Started &#8211; Case Managers</p>

 

<p style='font-size:18px; color:⌗303030; font-weight:normal; text-transform:uppercase; display:block; font-style:italic; margin: 4px 0; line-height:110%;'><span style='color:⌗afafaf; text-transform:none'>Event Time:</span> october 31, 2017 3:00 pm - 4:30 pm</p>

 

<p style='font-size:18px; color:⌗303030; font-weight:normal; text-transform:uppercase; display:block; font-style:italic; margin: 4px 0; line-height:110%; padding-top:10px;'><span style='color:⌗afafaf; text-transform:none'>Event Details:</span><br/><em style='text-transform:none; font-size:14px; line-height:130%;padding:10px 0; display:inline-block'><strong>Consectetuer arcu ipsum ornare pellentesque vehicula</strong>, in vehicula diam, ornare magna erat felis wisi a risus. Justo fermentum id. Malesuada eleifend, tortor molestie, a a vel et. Mauris at suspendisse, neque aliquam faucibus adipiscing, vivamus in. Wisi mattis leo suscipit nec amet, nisl fermentum tempor ac a, augue in eleifend in venenatis, cras sit id in vestibulum felis in, sed ligula. In sodales suspendisse mauris quam etiam erat, quia tellus convallis eros rhoncus diam orci, porta lectus esse adipiscing posuere et, nisl arcu vitae laoreet.

 

[icon name="download" class="" unprefixed_class=""] <a href="#" target="_blank" rel="noopener">Download Course Materials</a></em></p>

 

<p style='font-size:18px; color:⌗303030; font-weight:normal; text-transform:uppercase; display:block; font-style:italic; margin: 4px 0; line-height:110%; padding-top:10px;'><span style='color:⌗afafaf; text-transform:none'>RSVP ID:</span> # 30866</p>

 

<p style='font-size:18px; color:⌗303030; font-weight:normal; text-transform:uppercase; display:block; font-style:italic; margin: 4px 0; line-height:110%;'><span style='color:⌗afafaf; text-transform:none'>Primary Contact on RSVP:</span> Santore Robert</p>

 

<p style='font-size:18px; color:⌗303030; font-weight:normal; text-transform:uppercase; display:block; font-style:italic; margin: 4px 0; line-height:110%; padding-bottom:40px;'><span style='color:⌗afafaf; text-transform:none'>Spaces:</span> 1</p>

 

<p style='color:⌗303030; text-transform:uppercase; font-size:18px; font-style:italic; padding-bottom:0px; margin-bottom:0px; line-height:110%;'>Additional Information</p>

<p style='color:⌗afafaf; font-style:italic;font-size:14px; margin:0 0 10px 0; padding-bottom:10px;'>This is additional information for logged in users only

[icon name="download" class="" unprefixed_class=""] Download Course Materials</p>

 

<!-- location -->

<p style='color:⌗303030; text-transform:uppercase; font-size:18px; font-style:italic; padding-bottom:0px; margin-bottom:0px; line-height:110%;'>Location</p>

<p style='color:⌗afafaf; font-style:italic;font-size:14px; margin:0 0 10px 0; padding-bottom:10px;'>DSS ITS Training Room - 33 Beaver Street, New York, NY 10023</p>

 

<p><a style='font-size:14px; background-color:⌗237ebd; color:⌗ffffff; padding: 5px 10px; text-decoration:none; border-radius:4px; ' href='http://10.232.248.56/training-rsvp-home/wp-admin/admin-ajax.php?action=eventon_ics_download&event_id=30208&sunix=1507042800&eunix=1507048200' target='_blank'>Add to calendar</a></p>

</div>

</td>

</tr>

<tr>

<td  style='padding:20px; border-top:1px dashed ⌗d1d1d1; font-style:italic; color:⌗ADADAD; text-align:center;background-color:⌗f7f7f7;border-radius:0 0 5px 5px;'>

<p style='line-height:110%;margin:0px; padding-bottom:5px;'>We look forward to seeing you!</p>

<p style='line-height:110%;margin:0px;'><a style='' href='http://10.232.248.56/support/'>Contact Us for questions and concerns</a></p>

</td>

</tr>

</table>

 

</div>

    </div>

</body>

</html>";s:11:"sender_name";s:17:"DSS Training RSVP";s:12:"sender_email";s:20:"santorer@hra.nyc.gov";s:10:"debug_mode";s:6:"enable";s:16:"debugging_output";s:159:"'' does not match the expected structure for a DNS hostname, '' does not appear to be a valid URI hostname, '' does not appear to be a valid local network name";s:9:"timestamp";i:1509048014;s:6:"status";s:8:"Not Sent";}

 

When I connect it to Tableau, this file does not pull in. It comes in as:

Email Data

a:11:{s:8:"email_to";s:20:"santorer@hra.nyc.gov";s:2:"cc";s:0:"";s:3:"bcc";s:0:"";s:7:"subject";s:26:"[⌗30866] RSVP Confirmation";s:7:"content";s:4890:"<!DOCTYPE html>

<html>

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

</head>

<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">

<div style="

background-color: ⌗e6e7e8;

-webkit-text-size-adjust:none !important;

margin:0;

padding: 25px 25px 25px 25px;

">

<div style="

background-color: ⌗ffffff;

-webkit-text-size-adjust:none !important;

margin:0;

border-radius:5px;

">

<table width='100%' style='width:100%; margin:0; font-family:"open sans"' cellspacing="0" cellpadding="0">

<tr>

<td style='padding:0px;border:none; text-align:center;'>

<div style="padding:45px 20px; font-family:'open sans'">

<p style='line-height:110%;font-size:18px; font-style:italic; margin:0'>You have RSVP-ed</p>

<p style='display: inline-block;padding: 5px 10px;border: 1px solid ⌗B7B7B

 

I need that file top pull in to extract some data.

 

Any ideas?

1 resposta
  1. 15 de mar. de 2018, 00:20

    Hi Joseph,

     

    Are you need the data in the html column? Or the data from the other columns in the datasource? I'd suggest filtering out that column to get the rest of the data to load if you don't need the information in the html. If you need data from the html, I'm not sure, but hopefully someone in the Community has tackled this issue before and has an idea to share

0/9000

I am trying to set the RSS feed with AMPscript in my email and I am pasting the whole script in the content area of the email template, i am successfully able to pull it in my email however it is unformatted i.e I cannot trim the content to say only display 4 lines of description in the email.  Is it possible to do it?

 

Script I used from here:https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-programmatic-content.meta/mc-programmatic-content/rssFeedEmail.htm

 

Thanks

11 comentários
0/9000

Hi all,

 

Does anyone know how to add multiple custom color palettes? What should the layout look like in the preferences file?

 

Thanks

 

Jag

4 respostas
  1. 3 de jan. de 2017, 15:08

    Hi Jag,

     

    Not sure if you have found the answer to this yet or not, so in case you are still looking:

     

    If you add the following after your first color palette it will indicate the end of the first palette's configuration: </color-palette>

     

    Your preferences file should now look something like this:

    ------------------------------------------------------------------

    <?xml version='1.0'?>

     

    <workbook>

    <preferences>

     

         <color-palette name="My First Awesome Custom Color Palette" type="regular" >

         <color>⌗91bfdb</color>

         <color>⌗ffffbf</color>

         <color>⌗fc8d59</color>

         </color-palette>

     

         <color-palette name="My Second Awesome Custom Color Palette" type="regular" >

         <color>⌗a1d76a</color>

         <color>⌗f7f7f7</color>

         <color>⌗e9a3c9</color>

         </color-palette>

     

    </preferences>

    </workbook>

    ------------------------------------------------------------------

     

    Save your preferences file.

    Restart Tableau.

     

    Both custom color palettes should now appear in the drop down.

     

    I've tried this with two custom palettes, but I'm assuming that this will work with multiple palettes.

     

    Happy Dashboarding!

    Christina

0/9000