{"id":1523,"date":"2023-01-03T18:58:10","date_gmt":"2023-01-03T10:58:10","guid":{"rendered":"https:\/\/leadsleap.com\/blog\/?p=1523"},"modified":"2023-02-14T10:27:56","modified_gmt":"2023-02-14T02:27:56","slug":"how-to-pass-traffic-source-as-a-variable","status":"publish","type":"post","link":"https:\/\/leadsleap.com\/blog\/how-to-pass-traffic-source-as-a-variable\/","title":{"rendered":"How To Pass Traffic Source As A Variable In Page"},"content":{"rendered":"\n<p>On behalf of LeadsLeap team, I wish all LeadsLeap members a happy and prosperous 2023!<\/p>\n\n\n\n<p>Today, we have a quick update for you.<\/p>\n\n\n\n<p>It is a feature request from 2 members, Abdallah and Edward.<\/p>\n\n\n\n<p>Here&#8217;s the request:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>I&#8217;m hoping for a way to pass the source in the page &#8216;Source&#8217; Tracking as a placeholder, say ~source~. <\/p><p>For example, I can use <strong><em>https:\/\/lllpg.com\/page1\/~source~<\/em><\/strong> or <strong><em>https:\/\/companydomain.com\/userid?=abc&amp;source=~source~<\/em><\/strong><\/p><p>The ~source~ placeholder can then be replaced automatically by the &#8216;Source&#8217; tracker or the referral domain detected by the page.<\/p><\/blockquote>\n\n\n\n<p>Basically, the idea is to pass the traffic &#8216;source&#8217; as a variable in the <strong>Page<\/strong>. This can be done by introducing a placeholder called ~source~. <\/p>\n\n\n\n<p>You can place the ~source~ placeholder anywhere in the <strong>Page<\/strong>. The system will replace it with the traffic source. If no traffic source is detected, the placeholder will be empty.<\/p>\n\n\n\n<h2>How To Use?<\/h2>\n\n\n\n<p>When you go to the Page Builder and add a link, you will see this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"411\" height=\"144\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder1.jpg\" alt=\"\" class=\"wp-image-1526\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder1.jpg 411w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder1-300x105.jpg 300w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><\/figure>\n\n\n\n<p>It is a reminder to show you how to use the ~source~ placeholder.<\/p>\n\n\n\n<p>Below is an example of how to use it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"418\" height=\"179\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder.jpg\" alt=\"\" class=\"wp-image-1525\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder.jpg 418w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder-300x128.jpg 300w\" sizes=\"(max-width: 418px) 100vw, 418px\" \/><\/figure>\n\n\n\n<p>Say if the <span style=\"text-decoration: underline;\">main page<\/span> receives traffic from abc.com, the above link will be shown as <strong>https:\/\/lllpg.com\/hn3gsnfm\/abc.com<\/strong><\/p>\n\n\n\n<p>If the visitor clicks the link, you can track that the traffic comes from abc.com.<\/p>\n\n\n\n<p>It&#8217;s a simple but useful application, especially if the program you are promoting supports source tracking.<\/p>\n\n\n\n<h3><strong>Special Note On Source Tracking For Popup Form<\/strong><\/h3>\n\n\n\n<p>If you add a <strong>Popup Form<\/strong> to your <strong>Page<\/strong>, please note that the &#8216;source&#8217; of the <strong>Page<\/strong> will automatically be passed on to the <strong>Popup Form<\/strong>. You don&#8217;t have to do anything.<\/p>\n\n\n\n<p>The above ~source~ placeholder is only for links and contents of the page.<\/p>\n\n\n\n<h2>Another Possible Use Of ~source~<\/h2>\n\n\n\n<p>Say you promote this page <strong>https:\/\/lllpg.com\/samplepage\/<\/strong> in 2 traffic networks, Abc.com and Xyz.com.<\/p>\n\n\n\n<p>You can use ~source~ in the headline of the page, like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder2-1.jpg\" alt=\"\" class=\"wp-image-1528\" width=\"677\" height=\"224\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder2-1.jpg 824w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder2-1-300x99.jpg 300w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder2-1-768x254.jpg 768w\" sizes=\"(max-width: 677px) 100vw, 677px\" \/><\/figure>\n\n\n\n<p>Then you can promote the page like this:<\/p>\n\n\n\n<p><strong>https:\/\/lllpg.com\/samplepage\/Abc\/<\/strong><\/p>\n\n\n\n<p>When shown, the headline will look like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"672\" height=\"221\" src=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder3.jpg\" alt=\"\" class=\"wp-image-1529\" srcset=\"https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder3.jpg 672w, https:\/\/leadsleap.com\/blog\/wp-content\/uploads\/2023\/01\/pageplaceholder3-300x99.jpg 300w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/figure>\n\n\n\n<p>If you promote in Xyz.com, you can use <strong>https:\/\/lllpg.com\/samplepage\/Xyz\/<\/strong>. <\/p>\n\n\n\n<p>The headline will be &#8216;<strong>Attention To All Xyz Members<\/strong>&#8216;.<\/p>\n\n\n\n<p>This way, you can make the landing page more personalized. This will improve the conversion.<\/p>\n\n\n\n<p>At the same time, you are tracking the traffic source as Abc and Xyz, killing two birds with one stone.<\/p>\n\n\n\n<p>But please note that if you were to use it this way, you have to know that it is a &#8216;garbage in, garbage out&#8217; system.<\/p>\n\n\n\n<p>If you simply promote <strong>https:\/\/lllpg.com\/samplepage\/<\/strong> without any source, the headline will show &#8216;<strong>Attention To All Members<\/strong>&#8216;.<\/p>\n\n\n\n<p>Or sometimes, the website that you promote in may add something to the end of your link. This will mess up your headline. <\/p>\n\n\n\n<p>If you are not sure, it&#8217;s best to limit the use of ~source~ to link tracking.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On behalf of LeadsLeap team, I wish all LeadsLeap members a happy and prosperous 2023! Today, we have a quick update for you. It is a feature request from 2 members, Abdallah and Edward. Here&#8217;s the request: I&#8217;m hoping for a way to pass the source in the page &#8216;Source&#8217; Tracking as a placeholder, say [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[237],"tags":[],"_links":{"self":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/1523"}],"collection":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/comments?post=1523"}],"version-history":[{"count":23,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/1523\/revisions"}],"predecessor-version":[{"id":1580,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/posts\/1523\/revisions\/1580"}],"wp:attachment":[{"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/media?parent=1523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/categories?post=1523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leadsleap.com\/blog\/wp-json\/wp\/v2\/tags?post=1523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}