{"id":884,"date":"2019-08-05T08:02:58","date_gmt":"2019-08-05T07:02:58","guid":{"rendered":"http:\/\/www.earlyparrot.com\/support\/?post_type=kbe_knowledgebase&#038;p=884"},"modified":"2020-02-07T10:55:39","modified_gmt":"2020-02-07T09:55:39","slug":"earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page","status":"publish","type":"kbe_knowledgebase","link":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/","title":{"rendered":"EarlyParrot subscribe call API on the next page after the opt-in page"},"content":{"rendered":"\n<p>As a pre-requisite for your Clickfunnels HTML email form integration, you will first need to create <a href=\"https:\/\/www.earlyparrot.com\/support\/kb\/add-earlyparrot-tracking-hidden-fields-to-clickfunnels-opt-in-pages\/\">EarlyParrot tracking hidden fields<\/a>. <\/p>\n\n\n\n<p>Once you have created the required hidden fields in your opt-in form, then you can follow these steps to add <strong>CUSTOM JAVASCRIPT \/ HTML <\/strong>element on the next page after the opt-in step.<\/p>\n\n\n\n<p>Locate the next page after the opt-in step.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"314\" height=\"251\" src=\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-1.png\" alt=\"\" class=\"wp-image-912\"\/><\/figure><\/div>\n\n\n\n<p>Edit the page.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"260\" height=\"76\" src=\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-2.png\" alt=\"\" class=\"wp-image-913\"\/><\/figure><\/div>\n\n\n\n<p>Add a Custom Javascript \/ HTML element.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"741\" height=\"85\" src=\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-3.png\" alt=\"\" class=\"wp-image-914\"\/><\/figure><\/div>\n\n\n\n<p>Paste the following code. Make sure you replace YOUR_CAMPAIGN_ID with your campaign id and YOUR_DOMAIN.com with your full domain (without www).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"709\" height=\"481\" src=\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-4.png\" alt=\"\" class=\"wp-image-915\"\/><\/figure><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script>\n  var epVars = {\n    adminUrl: \"https:\/\/admin.earlyparrot.com\",\n    appUrl: \"https:\/\/app.earlyparrot.com\",\n    campaignId: \"YOUR_CAMPAIGN_ID\"\n};\n&lt;\/script>\n&lt;script>\n(function(w, d, url) {\n    var headElementUtils = d.getElementsByTagName('head')&#91;0];\n    var scriptElementUtils = d.createElement('script');\n    scriptElementUtils.addEventListener('load', function() {\n        epJQuery(document).ready(function() {\n            var emailValue = localStorage&#91;'garlic:'+document.location.host+'*>input.email'];\n            if (emailValue) {\n                var ep_subscribeObj = new Object();\n                ep_subscribeObj.firstName =localStorage&#91;'garlic:'+document.location.host+'*>input.name'];\n                ep_subscribeObj.lastName = \"\";\n                ep_subscribeObj.email = localStorage&#91;'garlic:'+document.location.host+'*>input.email'];\n                ep_subscribeObj.rh = localStorage&#91;'rh'];\n                ep_subscribeObj.sendWelcomeImmediately = 0; \/\/will not send welcome email \n                Cookies.set('epSubmitEmail', ep_subscribeObj.email, {\n                    domain: 'YOUR_DOMAIN.com'\n                });\n                epJQuery.post(\"https:\/\/admin.earlyparrot.com\/api\/campaigns\/YOUR_CAMPAIGN_ID\/subscribe\", ep_subscribeObj)\n                    .then(function(data) {\n                        var headElement = d.getElementsByTagName('head')&#91;0];\n                        var scriptElement = d.createElement('script');\n                        scriptElement.async = 1;\n                        scriptElement.src = \"https:\/\/s3.amazonaws.com\/earlyparrot-production-scripts\/ep-share-page.js\"\n                        headElement.appendChild(scriptElement);\n                    });\n            } else {\n                var headElement = d.getElementsByTagName('head')&#91;0];\n                var scriptElement = d.createElement('script');\n                scriptElement.async = 1;\n                scriptElement.src = \"https:\/\/s3.amazonaws.com\/earlyparrot-production-scripts\/ep-share-page.js\"\n                headElement.appendChild(scriptElement);\n            }\n        });\n    });\n    headElementUtils.async = 1;\n    scriptElementUtils.src = url\n    headElementUtils.appendChild(scriptElementUtils);\n})(window, document, 'https:\/\/s3.amazonaws.com\/earlyparrot-production-scripts\/utilities.js');\n&lt;\/script>\n&lt;style>\n@media (min-width: 576px) {\n  .epWrapper {\n     height: 890px;\n  }\n}\n@media (max-width: 577px) {\n  .epWrapper {\n    height: 890px\n  }\n}\n.epWrapper {\n  position: relative;\n}\n.epWrapper iframe {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n}\n&lt;\/style>\n&lt;div class=\"epWrapper\">\n&lt;iframe id=\"epShare\" allowfullscreen=\"\" frameborder=\"0\" src=\"\">&lt;\/iframe>\n&lt;\/div><\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a pre-requisite for your Clickfunnels HTML email form integration, you will first need to create EarlyParrot tracking hidden fields. Once you have created the required hidden fields in your opt-in form, then you can follow these steps to add CUSTOM JAVASCRIPT \/ HTML element on the next page after the opt-in step. Locate the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","kbe_taxonomy":[],"kbe_tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>EarlyParrot subscribe call API on the next page after the opt-in page<\/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:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"EarlyParrot subscribe call API on the next page after the opt-in page\" \/>\n<meta property=\"og:description\" content=\"As a pre-requisite for your Clickfunnels HTML email form integration, you will first need to create EarlyParrot tracking hidden fields. Once you have created the required hidden fields in your opt-in form, then you can follow these steps to add CUSTOM JAVASCRIPT \/ HTML element on the next page after the opt-in step. Locate the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/\" \/>\n<meta property=\"og:site_name\" content=\"EarlyParrot Support\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-07T09:55:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-1.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\":\"Organization\",\"@id\":\"https:\/\/www.earlyparrot.com\/support\/#organization\",\"name\":\"EarlyParrot\",\"url\":\"https:\/\/www.earlyparrot.com\/support\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.earlyparrot.com\/support\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2022\/02\/parrot.png\",\"contentUrl\":\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2022\/02\/parrot.png\",\"width\":1500,\"height\":1774,\"caption\":\"EarlyParrot\"},\"image\":{\"@id\":\"https:\/\/www.earlyparrot.com\/support\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.earlyparrot.com\/support\/#website\",\"url\":\"https:\/\/www.earlyparrot.com\/support\/\",\"name\":\"EarlyParrot Support\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.earlyparrot.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.earlyparrot.com\/support\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-1.png\",\"contentUrl\":\"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-1.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#webpage\",\"url\":\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/\",\"name\":\"EarlyParrot subscribe call API on the next page after the opt-in page\",\"isPartOf\":{\"@id\":\"https:\/\/www.earlyparrot.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#primaryimage\"},\"datePublished\":\"2019-08-05T07:02:58+00:00\",\"dateModified\":\"2020-02-07T09:55:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.earlyparrot.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\/\/www.earlyparrot.com\/support\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"EarlyParrot subscribe call API on the next page after the opt-in page\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"EarlyParrot subscribe call API on the next page after the opt-in page","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.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/","og_locale":"en_US","og_type":"article","og_title":"EarlyParrot subscribe call API on the next page after the opt-in page","og_description":"As a pre-requisite for your Clickfunnels HTML email form integration, you will first need to create EarlyParrot tracking hidden fields. Once you have created the required hidden fields in your opt-in form, then you can follow these steps to add CUSTOM JAVASCRIPT \/ HTML element on the next page after the opt-in step. Locate the [&hellip;]","og_url":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/","og_site_name":"EarlyParrot Support","article_modified_time":"2020-02-07T09:55:39+00:00","og_image":[{"url":"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.earlyparrot.com\/support\/#organization","name":"EarlyParrot","url":"https:\/\/www.earlyparrot.com\/support\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/www.earlyparrot.com\/support\/#logo","inLanguage":"en-US","url":"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2022\/02\/parrot.png","contentUrl":"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2022\/02\/parrot.png","width":1500,"height":1774,"caption":"EarlyParrot"},"image":{"@id":"https:\/\/www.earlyparrot.com\/support\/#logo"}},{"@type":"WebSite","@id":"https:\/\/www.earlyparrot.com\/support\/#website","url":"https:\/\/www.earlyparrot.com\/support\/","name":"EarlyParrot Support","description":"","publisher":{"@id":"https:\/\/www.earlyparrot.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.earlyparrot.com\/support\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-1.png","contentUrl":"https:\/\/www.earlyparrot.com\/support\/wp-content\/uploads\/2019\/08\/cf-next-1.png"},{"@type":"WebPage","@id":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#webpage","url":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/","name":"EarlyParrot subscribe call API on the next page after the opt-in page","isPartOf":{"@id":"https:\/\/www.earlyparrot.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#primaryimage"},"datePublished":"2019-08-05T07:02:58+00:00","dateModified":"2020-02-07T09:55:39+00:00","breadcrumb":{"@id":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.earlyparrot.com\/support\/kb\/earlyparrot-subscribe-call-api-on-the-next-page-after-the-opt-in-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.earlyparrot.com\/support\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/www.earlyparrot.com\/support\/kb\/"},{"@type":"ListItem","position":3,"name":"EarlyParrot subscribe call API on the next page after the opt-in page"}]}]}},"_links":{"self":[{"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/kbe_knowledgebase\/884"}],"collection":[{"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/kbe_knowledgebase"}],"about":[{"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/types\/kbe_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/comments?post=884"}],"version-history":[{"count":8,"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/kbe_knowledgebase\/884\/revisions"}],"predecessor-version":[{"id":1129,"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/kbe_knowledgebase\/884\/revisions\/1129"}],"wp:attachment":[{"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"kbe_taxonomy","embeddable":true,"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/kbe_taxonomy?post=884"},{"taxonomy":"kbe_tags","embeddable":true,"href":"https:\/\/www.earlyparrot.com\/support\/wp-json\/wp\/v2\/kbe_tags?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}