{"id":2988,"date":"2024-03-13T11:31:58","date_gmt":"2024-03-13T11:31:58","guid":{"rendered":"https:\/\/support.spoki.com\/?post_type=docs&#038;p=2988"},"modified":"2024-03-13T11:31:59","modified_gmt":"2024-03-13T11:31:59","password":"","slug":"how-to-set-up-a-cta-with-dynamic-field","status":"publish","type":"docs","link":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/","title":{"rendered":"How to set up a CTA with dynamic field"},"content":{"rendered":"\n<p>The button with dynamic link for Whatsapp must necessarily be constructed in the following way: https:\/\/www.dominio.it\/ + dynamic field<\/p>\n\n\n\n<p>For example, if you want to insert the link to an abandoned cart directly into the button, you can do it in the following way. Let&#8217;s take Shopify as an example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Retrieve a link to an abandoned shopping cart on your site;<\/li>\n\n\n\n<li>Insert the first &#8220;fixed&#8221; part and return it to the text part of the button (e.g., www.spoki.it\/)<\/li>\n\n\n\n<li>select the dynamic part by choosing the dynamic field you are interested in (e.g. SHOPIFY_CHECKOUT_LINK)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"980\" height=\"268\" src=\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png\" alt=\"\" class=\"wp-image-2989\" srcset=\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png 980w, https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50-300x82.png 300w, https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50-768x210.png 768w\" sizes=\"(max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p>In the dynamic field Shopify sends the link in full (including the domain part).<\/p>\n\n\n\n<p>Only and exclusively inside the buttons, regardless of which dynamic field is inherited (it does not have to be Shopify&#8217;s, but it applies to any dynamic field) <strong>Spoki automatically removes the duplicated initial part<\/strong>.<\/p>\n\n\n\n<p>This makes the link work.<\/p>\n\n\n\n<p>The last step is to populate the example dynamic field (on the right) so that the link is clickable for approval to Whatsapp. The link should lead to a page that actually exists.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"448\" height=\"274\" src=\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.58.png\" alt=\"\" class=\"wp-image-2992\" srcset=\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.58.png 448w, https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.58-300x183.png 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<p>All you have to do then is to take an actually existing abandoned shopping cart link, copy the fixed part into the button and insert (on the right) in the example field SHOPIFY_CHECKOUT_LINK the remaining part of the link.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The button with dynamic link for Whatsapp must necessarily be constructed in the following way: https:\/\/www.dominio.it\/ + dynamic field For [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[45],"doc_tag":[],"class_list":["post-2988","docs","type-docs","status-publish","hentry","doc_category-how-to-en"],"year_month":"2026-04","word_count":228,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Emanuela Locorotondo","author_nicename":"emanuelalocorotondo","author_url":"https:\/\/support.spoki.com\/en\/author\/emanuelalocorotondo\/"},"doc_category_info":[{"term_name":"How to","term_url":"https:\/\/support.spoki.com\/en\/docs-category\/how-to-en\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to set up a CTA with dynamic field - Supporto Spoki<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up a CTA with dynamic field - Supporto Spoki\" \/>\n<meta property=\"og:description\" content=\"The button with dynamic link for Whatsapp must necessarily be constructed in the following way: https:\/\/www.dominio.it\/ + dynamic field For [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/\" \/>\n<meta property=\"og:site_name\" content=\"Supporto Spoki\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-13T11:31:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/\",\"url\":\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/\",\"name\":\"How to set up a CTA with dynamic field - Supporto Spoki\",\"isPartOf\":{\"@id\":\"https:\/\/support.spoki.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png\",\"datePublished\":\"2024-03-13T11:31:58+00:00\",\"dateModified\":\"2024-03-13T11:31:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#primaryimage\",\"url\":\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png\",\"contentUrl\":\"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/support.spoki.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/support.spoki.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to set up a CTA with dynamic field\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/support.spoki.com\/#website\",\"url\":\"https:\/\/support.spoki.com\/\",\"name\":\"Supporto Spoki\",\"description\":\"Documentation for Spoki use\",\"publisher\":{\"@id\":\"https:\/\/support.spoki.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/support.spoki.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/support.spoki.com\/#organization\",\"name\":\"Supporto Spoki\",\"url\":\"https:\/\/support.spoki.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/support.spoki.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/support.spoki.com\/wp-content\/uploads\/2022\/11\/Logo_Spoki-Primary_Black-01-scaled.jpg\",\"contentUrl\":\"https:\/\/support.spoki.com\/wp-content\/uploads\/2022\/11\/Logo_Spoki-Primary_Black-01-scaled.jpg\",\"width\":2560,\"height\":761,\"caption\":\"Supporto Spoki\"},\"image\":{\"@id\":\"https:\/\/support.spoki.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/spokiapp\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to set up a CTA with dynamic field - Supporto Spoki","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:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/","og_locale":"en_US","og_type":"article","og_title":"How to set up a CTA with dynamic field - Supporto Spoki","og_description":"The button with dynamic link for Whatsapp must necessarily be constructed in the following way: https:\/\/www.dominio.it\/ + dynamic field For [&hellip;]","og_url":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/","og_site_name":"Supporto Spoki","article_modified_time":"2024-03-13T11:31:59+00:00","og_image":[{"url":"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/","url":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/","name":"How to set up a CTA with dynamic field - Supporto Spoki","isPartOf":{"@id":"https:\/\/support.spoki.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#primaryimage"},"image":{"@id":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#primaryimage"},"thumbnailUrl":"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png","datePublished":"2024-03-13T11:31:58+00:00","dateModified":"2024-03-13T11:31:59+00:00","breadcrumb":{"@id":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#primaryimage","url":"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png","contentUrl":"https:\/\/support.spoki.com\/wp-content\/uploads\/2024\/03\/Screenshot-2024-01-05-alle-12.10.50.png"},{"@type":"BreadcrumbList","@id":"https:\/\/support.spoki.com\/en\/docs\/how-to-en\/how-to-set-up-a-cta-with-dynamic-field\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/support.spoki.com\/en\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/support.spoki.com\/docs\/"},{"@type":"ListItem","position":3,"name":"How to set up a CTA with dynamic field"}]},{"@type":"WebSite","@id":"https:\/\/support.spoki.com\/#website","url":"https:\/\/support.spoki.com\/","name":"Supporto Spoki","description":"Documentation for Spoki use","publisher":{"@id":"https:\/\/support.spoki.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/support.spoki.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/support.spoki.com\/#organization","name":"Supporto Spoki","url":"https:\/\/support.spoki.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.spoki.com\/#\/schema\/logo\/image\/","url":"https:\/\/support.spoki.com\/wp-content\/uploads\/2022\/11\/Logo_Spoki-Primary_Black-01-scaled.jpg","contentUrl":"https:\/\/support.spoki.com\/wp-content\/uploads\/2022\/11\/Logo_Spoki-Primary_Black-01-scaled.jpg","width":2560,"height":761,"caption":"Supporto Spoki"},"image":{"@id":"https:\/\/support.spoki.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/spokiapp\/"]}]}},"_links":{"self":[{"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/docs\/2988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/comments?post=2988"}],"version-history":[{"count":1,"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/docs\/2988\/revisions"}],"predecessor-version":[{"id":2995,"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/docs\/2988\/revisions\/2995"}],"wp:attachment":[{"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/media?parent=2988"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/doc_category?post=2988"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/support.spoki.com\/en\/wp-json\/wp\/v2\/doc_tag?post=2988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}