{"id":7691,"date":"2021-09-23T09:57:13","date_gmt":"2021-09-23T09:57:13","guid":{"rendered":"https:\/\/docs.campaignsuite.nl\/docs\/gravity-forms\/marketing-cloud\/gutenberg-dynamic-content\/"},"modified":"2022-12-12T11:43:42","modified_gmt":"2022-12-12T11:43:42","slug":"gutenberg-dynamic-content","status":"publish","type":"docs","link":"https:\/\/docs.campaignsuite.nl\/en\/docs\/gravity-forms\/marketing-cloud\/gutenberg-dynamic-content\/","title":{"rendered":"Gutenberg Dynamic Content"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If a connection with Marketing Cloud has been set up, it is also possible to place Dynamic Content from a Marketing Cloud Page on a page in the website. This is done using a wrapper block called&nbsp;<strong>Dynamic Content Wrapper<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"331\" height=\"272\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/dynamic_content_wrapper.png\" alt=\"\" class=\"wp-image-8053\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/dynamic_content_wrapper.png 331w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/dynamic_content_wrapper-300x247.png 300w\" sizes=\"auto, (max-width: 331px) 100vw, 331px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This block has different settings in the right column:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p class=\"wp-block-paragraph\"><strong>Code type<\/strong><br>Dynamic content must always be retrieved based on a campaign code. This value can be sent to Marketing Cloud in several ways:<br><span style=\"text-decoration: underline;\">Page field<\/span><br>The code will be retrieved from the Campaign Code field below the block CampaignSuite page settings<br><span style=\"text-decoration: underline;\">Custom<\/span><br>The code can be entered manually on the Dynamic Content Wrapper block.<br><br><strong>Make campaign code dynamic<\/strong><br>It is also possible to extract the code from the URL of the page. Check this option and enter the parameter name from the URL containing the campaign code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Content type<\/strong><br>There are currently 3 content types available for dynamic content:<br><span style=\"text-decoration: underline;\">Form page<\/span><br>This is content that can often be found on a campaign page.<br><span style=\"text-decoration: underline;\">Thank you page<\/span><br>This is content that can be displayed on the thank you page after a donation<br><span style=\"text-decoration: underline;\">Next best action<\/span><br>This is content that can be used for possible next best actions from a donor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Show advanced settings<\/strong><br>Under advanced settings it is possible to set a custom endpoint. This endpoint will then overrule the default endpoint in CampaignSuite settings. <br>It is also possible to choose whether this dynamic block should be rendered Client side or Server side.<br><span style=\"text-decoration: underline;\">Client side<\/span><br>By default, the texts are and images loaded into a Dynamic Content Wrapper via javascript. To ensure that the visitor does not see a jump in the content, the entire content of the page will first be hidden. As soon as all dynamic content has been loaded, the page will become visible.<br><span style=\"text-decoration: underline;\">Server side<\/span><br>With this option, the server will first make a call to Marketing Cloud to fetch the dynamic content. Then all content will be replaced in the blocks. Eventually the complete page will be loaded.<br><br>The main difference between Server and Client side is the fact that with Server side the page &#8216;keeps loading&#8217; until all content has been replaced. At the Client side, the page has finished loading and the visitor will see a white page for a short time (maximum 1 second). Also, cache plugins can prevent Server side pages from being populated dynamically.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"282\" height=\"625\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/12\/dynamic_content_wrapper_settings.png\" alt=\"\" class=\"wp-image-8055\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/12\/dynamic_content_wrapper_settings.png 282w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/12\/dynamic_content_wrapper_settings-135x300.png 135w\" sizes=\"auto, (max-width: 282px) 100vw, 282px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Elements with dynamic content<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The following Gutenberg blocks within a wrapper can contain dynamic content:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Header<br>&#8211; Paragraph<br>&#8211; Image<br>&#8211; Cover image<br>&#8211; Button<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As soon as one of the above fields is placed in a Dynamic Content Wrapper block, the following option appears in the right column:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"276\" height=\"92\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/12\/dynamic_content_option.png\" alt=\"\" class=\"wp-image-8059\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Check this option to specify that the content of the original block should be replaced with content from Marketing Cloud. If no dynamic content can be retrieved from Marketing Cloud, the original content will remain intact.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If a connection with Marketing Cloud has been set up, it is also possible to place Dynamic Content from a Marketing Cloud Page on a page in the website. This is done using a wrapper block called&nbsp;Dynamic Content Wrapper. This block has different settings in the right column: Code typeDynamic content must always be retrieved [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":7565,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-7691","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/comments?post=7691"}],"version-history":[{"count":6,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7691\/revisions"}],"predecessor-version":[{"id":8068,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7691\/revisions\/8068"}],"up":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7565"}],"wp:attachment":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/media?parent=7691"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/doc_tag?post=7691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}