{"id":1138,"date":"2026-04-01T21:15:14","date_gmt":"2026-04-01T21:15:14","guid":{"rendered":"https:\/\/protolinker.com\/?post_type=docs&#038;p=1138"},"modified":"2026-04-01T21:45:55","modified_gmt":"2026-04-01T21:45:55","password":"","slug":"what-is-the-difference-of-tag-and-links-scripts","status":"publish","type":"docs","link":"https:\/\/protolinker.com\/en\/documentation\/what-is-the-difference-of-tag-and-links-scripts\/","title":{"rendered":"What is the difference of Tag and Links scripts?"},"content":{"rendered":"<p class=\"wp-block-paragraph \" style=\"\">A <strong>Tag Script<\/strong> is attached directly to a tag. It changes the value of that tag before the value is sent anywhere else. This means that if the tag is connected to multiple destinations, all of them will receive the value after the same script has been applied and the value will also be updated in the protocol itself.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">A <strong>Link Script<\/strong> is attached to a specific link between two tags. It changes the value only for that one connection. This means that other links from the same tag will continue using the original value and will not be affected by that script.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\"><strong>When should you use each one?<\/strong><\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">Use a <strong>Tag Script<\/strong> when the value should always be processed the same way, no matter where it is sent.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">Use a <strong>Link Script<\/strong> when only one destination needs a different treatment.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\"><strong>Simple example:<\/strong><\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">Think of a tag as a cooking pot and the links as plates being served from it.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">A <strong>Tag Script<\/strong> is like seasoning the whole pot. Every plate served from it will have the same flavor.<\/p>\n\n\n<p class=\"wp-block-paragraph \" style=\"\">A <strong>Link Script<\/strong> is like adding sauce to only one plate. That change affects only that plate, while the others stay the same.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Tag Script is attached directly to a tag. It changes the value of that tag before the value is sent anywhere else. This means that if the tag is connected to multiple destinations, all of them will receive the value after the same script has been applied and the value will also be updated &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[16,15],"doc_tag":[],"class_list":["post-1138","docs","type-docs","status-publish","hentry","doc_category-links","doc_category-tags"],"year_month":"2026-07","word_count":202,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"beraldoigor","author_nicename":"beraldoigor","author_url":"https:\/\/protolinker.com\/en\/author\/beraldoigor\/"},"doc_category_info":[{"term_name":"Links","term_url":"https:\/\/protolinker.com\/en\/docs-category\/links\/"},{"term_name":"Tags","term_url":"https:\/\/protolinker.com\/en\/docs-category\/tags\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/docs\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/comments?post=1138"}],"version-history":[{"count":0,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/docs\/1138\/revisions"}],"wp:attachment":[{"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/media?parent=1138"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/doc_category?post=1138"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/protolinker.com\/en\/wp-json\/wp\/v2\/doc_tag?post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}