{"id":7223,"date":"2014-10-24T09:47:36","date_gmt":"2014-10-24T14:47:36","guid":{"rendered":"http:\/\/bobbeaty.com\/wp\/?p=7223"},"modified":"2014-10-26T14:55:47","modified_gmt":"2014-10-26T19:55:47","slug":"cleaning-up-parsing-errors","status":"publish","type":"post","link":"https:\/\/bobbeaty.com\/wp\/archives\/7223","title":{"rendered":"Cleaning Up Parsing Errors"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bobbeaty.com\/wp\/wp-content\/uploads\/2014\/09\/unified-click.jpg\" alt=\"Unified Click\" title=\"unified-click.jpg\" border=\"0\" width=\"125\" height=\"125\" style=\"float:right;\" \/><\/p>\n<p>From time to time, I've been asked to add features to my data stream by groups, and one of these groups at The Shop deals with affiliates directing traffic - and hopefully sales - to the site. If so, they get paid, which is good for everyone. One of the things that's important about this is to <em>accurately<\/em> track who came from where, and all that. To that end, I've had to implement some rather <em>complex<\/em> <tt>if-then-else<\/tt> logic into the code to match what the existing attribution code is.<\/p>\n<p>Well... it seems I probably made a mistake in being a little <em>too inclusive<\/em> with some of the data. I was including a URL in the data I'm being sent when I really didn't want to include the domain in that URL - just the parameters.<\/p>\n<p>When this was pointed out, I realized that the instructions I'd received from the group about this feature were relatively vague, and after I really dug into what they were asking, and comparing the code, it was <em>likely<\/em> the case that I wanted the options, but not the domain in the URL.<\/p>\n<p>Not at all clear, but hey... I can admit that I didn't get it right - easy fix.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From time to time, I&#8217;ve been asked to add features to my data stream by groups, and one of these groups at The Shop deals with affiliates directing traffic &#8211; and hopefully sales &#8211; to the site. If so, they get paid, which is good for everyone. One of the things that&#8217;s important about this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,6,4],"tags":[],"class_list":["post-7223","post","type-post","status-publish","format-standard","hentry","category-clojure-coding","category-cube-life","category-open-source-software"],"_links":{"self":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts\/7223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/comments?post=7223"}],"version-history":[{"count":1,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts\/7223\/revisions"}],"predecessor-version":[{"id":7224,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts\/7223\/revisions\/7224"}],"wp:attachment":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/media?parent=7223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/categories?post=7223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/tags?post=7223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}