/* 2fa6f487-6f59-4bc6-99d6-8251142946aa */ /*** playzo-pixel 1.0* @author Christoph Suess * @date 22.07.2019** USAGE* =========* 1. Implement the Javascript Pixel Tag into your site at the very bottom of the .* 2. Use the HTTP-GET Parameters &cid=000&aid=000 to track the campaignId (cid) and the adId (aid) on the page where the pixel is put into. They will be saved to db.** * * Hello World** * ** PARAMETERS OF THE PIXEL:* action = string representing the place of integration* uid = int (optional) representing the external user-id (of the project, not backend-user-id!)* puid = int (optional) backend-user-id**/function playzo_parse_query_string(query) {var vars = query.split("&");var query_string = {};for (var i = 0; i < vars.length; i++) {var pair = vars[i].split("=");var key = decodeURIComponent(pair[0]);var value = decodeURIComponent(pair[1]);if (typeof query_string[key] === "undefined") {query_string[key] = decodeURIComponent(value);} else if (typeof query_string[key] === "string") {var arr = [query_string[key], decodeURIComponent(value)];query_string[key] = arr;} else {query_string[key].push(decodeURIComponent(value));}}return query_string;}/*function playzo_setCookie(cname, cvalue, exdays) {var d = new Date();d.setTime(d.getTime() + (exdays*24*60*60*1000));var expires = "expires="+ d.toUTCString();document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";}function playzo_getCookie(cname) {var name = cname + "=";var decodedCookie = decodeURIComponent(document.cookie);var ca = decodedCookie.split(';');for(var i = 0; i