{"id":14066,"date":"2021-12-01T17:51:57","date_gmt":"2021-12-01T17:51:57","guid":{"rendered":"https:\/\/go.thisisbeacon.com\/?post_type=guide&amp;p=14066"},"modified":"2021-12-01T17:51:57","modified_gmt":"2021-12-01T17:51:57","slug":"dynamic-multi-site-tracking","status":"publish","type":"post","link":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/dynamic-multi-site-tracking\/","title":{"rendered":"Dynamically Creating Links for Multi-Site Tracking"},"content":{"rendered":"<section class=\"l-section wpb_row us_custom_9ccc05f2 scaleMe height_medium\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"wpb_text_column bigP\"><div class=\"wpb_wrapper\"><h1><strong>Dynamically Creating Links for Multi-Site Tracking<\/strong><\/h1>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n<section class=\"l-section wpb_row us_custom_db0d8ac5 scaleMe height_medium\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"g-cols wpb_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span data-contrast=\"none\">Overview<\/span><\/h3>\n<p><span data-contrast=\"auto\">Veracity as a company complies with GDPR to our fullest ability as such our system is built in such a way that in standard operation there is no way to attach a page load on one website to another on a different website. However, we understand some companies use multiple websites or subdomains as part of their brand or product brands. <\/span><\/p>\n<p><span data-contrast=\"auto\">Veracity Multi-site was created to allow a website creator to prove that the secondary website URLs are part of the same website user experience E.G looking for information on www.thisisbeacon.com and being sent to a resource on go.thisisbeacon.com to the web browser these are 2 different website to the user they are not. <\/span><\/p>\n<p><span data-contrast=\"auto\">As the example above www.thisisbeacon.com is not allowed to access browser information about go.thisisbeacon.com so we created a system\u00a0where\u00a0in beacon customers are able to say\u00a0<\/span><span data-contrast=\"none\">www.thisisbeacon.com<\/span><span data-contrast=\"auto\"> and go.thisisbeacon.com are the same website\u00a0this is called a website alias in the\u00a0Veracity\u00a0dashboard. <\/span><\/p>\n<p><span data-contrast=\"auto\">With this technology our system includes our multi-site tie in\u00a0JavaScript\u00a0that will\u00a0on first load identify all links on a website and check if they are going to a website that is an\u00a0alias if they are the current page load\u00a0identifier\u00a0is sent\u00a0through\u00a0to the link on the new website\u00a0with a query string added to them\u00a0`bcnplid={unique_id}`.<\/span><\/p>\n<h3><span data-contrast=\"none\">Using dynamically created links<\/span><\/h3>\n<p><span data-contrast=\"auto\">The Multi-site plugin uses browser technology called Mutation Observer to try and identify links when they are dynamically added however this technology can still miss changes to the structure of a website by JavaScript, and there for fail to notify our system it needs to check the new links. <\/span><\/p>\n<p><span data-contrast=\"auto\">So the first thing to do when using dynamic links is to check to see if the technology is able to work for your setup if it\u2019s not working for your particular set up. Our JavaScript API is there to help.<\/span><\/p>\n<h3><span data-contrast=\"none\">Using the JavaScript to add the unique id to your cross alias links<\/span><\/h3>\n<p><span data-contrast=\"auto\">We have developed an example snippet of\u00a0JavaScript\u00a0to show how this should be correctly done<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">First block of code this should go at the point of your script starting.<\/span><\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><div class=\"g-cols wpb_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3cGJfdGV4dF9jb2x1bW4lMjB3cGJfY29udGVudF9lbGVtZ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JTNFJTBBJTNDcCUzRSU3RCUzQyUyRnAlM0UlMEElM0MlMkZkaXYlM0UlMEElMEElM0MlMkZkaXYlM0UlMEElM0MlMkZkaXYlM0U=[\/vc_raw_html]<\/div><\/div><\/div><\/div><div class=\"g-cols wpb_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>This would then be the code that gets used when your handling the response, please note this makes sure the bcnplid variable is set before it makes any changes so that it won&#8217;t break existing functionality.<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><div class=\"g-cols wpb_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3cGJfdGV4dF9jb2x1bW4lMjB3cGJfY29udGVudF9lbGVtZW50JTIwJTIwY29kZSUyMiUzRSUwQSUwOSUwOSUzQ2RpdiUyMGNsYXNzJTNEJTIyd3BiX3dyYXBwZXIlMjIlM0UlMEElMDklMDklMDklM0NkaXYlMjBpZCUzRCUyMmJveC1vdXQlMjIlM0UlMEElM0NwJTNFJTJGJTJGJTIwdGhpcyUyMGJsb2NrJTIwd291bGQlMjBub3JtYWxseSUyMGdvJTIwanVzdCUyMGJlZm9yZSUyMHlvdSUyMHNldCUyMHRoZSUyNm5ic3AlM0JocmVmJTI2bmJzcCUzQmF0dHJpYnV0ZSUyMHVzaW5nJTIwdGhlJTI2bmJzcCUzQnVybCUyNm5ic3AlM0J2YXJpYWJsZSUzQyUyRnAlM0UlMEElM0NwJTNFaWYlMjh0eXBlb2YlMjZuYnNwJTNCd2luZG93LmJjbnBsaWQlMjZuYnNwJTNCJTIxJTNEJTNEJTI2bmJzcCUzQm51bGwlMjklN0IlM0MlMkZwJTNFJTBBJTNDcCUzRXVybCUyMCUyQiUzR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RpdiUzRSUwQSUwOSUzQyUyRmRpdiUzRQ==[\/vc_raw_html]<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n<section class=\"l-section wpb_row us_custom_9ccc05f2 scaleMe height_medium\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_flex valign_top type_default stacking_default\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"wpb_text_column bigP\"><div class=\"wpb_wrapper\"><h4>Still need help?<\/h4>\n<p>Contact your Veracity account manager or email <a href=\"mailto:support@vtn.live\">support@vtn.live<\/a>.<\/p>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Dynamically Creating Links for Multi-Site Tracking Overview Veracity as a company complies with GDPR to our fullest ability as such our system is built in such a way that in standard operation there is no way to attach a page load on one website to another on a different website. However, we understand some companies...","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-14066","post","type-post","status-publish","format-standard","hentry","category-resources"],"acf":[],"_links":{"self":[{"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/posts\/14066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/comments?post=14066"}],"version-history":[{"count":0,"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/posts\/14066\/revisions"}],"wp:attachment":[{"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/media?parent=14066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/categories?post=14066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darraghkerrigancreative.ie\/veractyai2\/wp-json\/wp\/v2\/tags?post=14066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}