{"id":8006,"date":"2022-10-20T11:00:59","date_gmt":"2022-10-20T11:00:59","guid":{"rendered":"https:\/\/docs.campaignsuite.nl\/docs\/gravity-forms\/measurement\/squeezely\/"},"modified":"2022-10-20T11:03:33","modified_gmt":"2022-10-20T11:03:33","slug":"squeezely","status":"publish","type":"docs","link":"https:\/\/docs.campaignsuite.nl\/en\/docs\/gravity-forms\/measurement\/squeezely\/","title":{"rendered":"Squeezely"},"content":{"rendered":"\n<p><img decoding=\"async\" style=\"width: 250px;\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/squeezely_logo.png\" align=\"right\">With Squeezely you can create the most advanced buyer journeys and personalization applications out-of-the-box. You work on the basis of flawless data and can arrange everything entirely according to your own insight. This tool uses both a tracking pixel on your website or can shoot events via their API. CampaignSuite offers this option in Measurements. Squeezely works on the basis of events. Every measure you set in CampaignSuite must be an event.<\/p>\n\n\n\n<p>To use the Server Side calls via the Squeezely provider you must enter an <strong>Account ID<\/strong> and an <strong>API key<\/strong> in the CampaignSuite settings. Squeezely&#8217;s Client Side calls work with a datalayer.push() and will only work if the Squeezely pixel is installed on the website:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script type=\"text\/javascript\"&gt;\n  (function(s,q,z,l,y){s._sqzl=s._sqzl||&#91;];l=q.createElement('script'),\n  y=q.getElementsByTagName('script')&#91;0];l.async=1;l.type='text\/javascript';\n  l.defer=true;l.src=z;y.parentNode.insertBefore(l,y)})\n  (window,document,'https:\/\/squeezely.tech\/tracker\/&lt;YOUR_IDENTIFIER&gt;\/sqzl.js');\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p>More information on how to use the API can be found on the <a href=\"https:\/\/squeezely.tech\/documentation\" target=\"_blank\" rel=\"noreferrer noopener\">Squeezely documentation page<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Client Side<\/h3>\n\n\n\n<p>The image below shows a simple example of a page switch in a Gravity Forms form:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example of the mapping:<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"913\" height=\"362\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_client.png\" alt=\"\" class=\"wp-image-7992\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_client.png 913w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_client-300x119.png 300w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_client-768x305.png 768w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Example of the Javascript code being executed:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script type=\"text\/javascript\"&gt;\n  window._sqzl = window._sqzl || &#91;];\n  window._sqzl.push({\n    \"event\" : \"page_switch\",\n    \"page\" : 1\n  });\n&lt;\/script&gt;<\/code><\/pre>\n\n\n\n<p>Because the Squeezely pixel is loaded into the website, this event will be captured in Squeezely.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Server Side<\/h3>\n\n\n\n<p>Server Side calls can be set in all six measurement moments. However, with Server Side calls it is mandatory to send a unique identifier in the parameters, otherwise Squeezely will not know to whom the data should be linked in their system.<\/p>\n\n\n\n<p>The image below shows a Server Side call after a successful donation. This call is sent &#8216;underwater&#8217; to Squeezely when a payment is successfully completed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example of the mapping:<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"865\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_server.png\" alt=\"\" class=\"wp-image-7998\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_server.png 914w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_server-300x284.png 300w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_server-768x727.png 768w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_server-16x16.png 16w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_server-18x18.png 18w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2022\/10\/measurement_squeezely_server-20x20.png 20w\" sizes=\"auto, (max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Example of code for API call:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  \"events\" => &#91;\n    &#91;\n      \"event\" => \"Purchase\",\n      \"email\" => \"test@test.nl\",\n      \"firstname\" => \"Test\",\n      \"lastname\" => \"Test,\n      \"orderid\" => 346,\n      \"products\" => &#91;\n        &#91;\n          \"id\" => \"single\",\n          \"name\" => \"One time\",\n          \"price\" => 25,\n          \"quantity\" => 1\n        ]\n      ]\n    ]\n  ]\n];<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Debugging tool<\/h3>\n\n\n\n<p>Squeezely has a tool that allows you to check whether Server Side API calls are coming in properly. It can be found at: <a rel=\"noreferrer noopener\" href=\"https:\/\/app.squeezely.tech\/data\/events\" target=\"_blank\">https:\/\/app.squeezely.tech\/data\/events<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Squeezely you can create the most advanced buyer journeys and personalization applications out-of-the-box. You work on the basis of flawless data and can arrange everything entirely according to your own insight. This tool uses both a tracking pixel on your website or can shoot events via their API. CampaignSuite offers this option in Measurements. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":7768,"menu_order":6,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-8006","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/8006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/comments?post=8006"}],"version-history":[{"count":1,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/8006\/revisions"}],"predecessor-version":[{"id":8009,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/8006\/revisions\/8009"}],"up":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7768"}],"wp:attachment":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/media?parent=8006"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/doc_tag?post=8006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}