Ingesting Address Data
Address Fields as Pixel or Webhook Parameters
To send address data in the Rockerbox conversion pixel or via webhook, pass the attributes as individual fields or as a a JSON object.
You MUST use the exact field names. Most specifically, at least one of the fields must contain the text
address
, such as address_street_1
.Specification as individual fields
{
"required": [
"address_country",
"address_state",
"address_city",
"address_street_1",
"address_street_2",
"address_zip_code"
],
"properties": {
"address_country": {
"type": "string"
"format": "ISO-3166-2 Alpha 2 Code"
},
"address_state": {
"type": "string",
"format": "ISO-3166-2 Subdivision Code"
},
"address_city": {
"type": "string"
},
"address_street_1": {
"type": "string"
},
"address_street_2": {
"type": "string"
},
"address_zip_code": {
"type": "string"
}
}
}
Example as individual fields
<script type="text/javascript">
(function(d,RB) {if (!window.RB) { window.RB=RB;RB.queue=RB.queue||[];RB.track=RB.track||function(){RB.queue.push(Array.prototype.slice.call(arguments))};RB.initialize=function(s){RB.source=s};var a = d.createElement("script"); a.type="text/javascript"; a.async=!0; a.src="https://getrockerbox.com/assets/wxyz.js"; f=d.getElementsByTagName("script")[0]; f.parentNode.insertBefore(a,f);} } )(document,window.RB || {});
RB.disablePushState=true;
RB.initialize(CLIENT_AUTH_ID);
RB.track("conv.purchase",{
...
"address_country": "US",
"address_state": "NY",
"address_city": "New York",
"address_street_1": "123 Example Street",
"address_street_2": "Apt 101"
"address_zip_code": "Example Zip Code"
...
});
</script>
Example as an address object
<script type="text/javascript">
(function(d,RB) {if (!window.RB) { window.RB=RB;RB.queue=RB.queue||[];RB.track=RB.track||function(){RB.queue.push(Array.prototype.slice.call(arguments))};RB.initialize=function(s){RB.source=s};var a = d.createElement("script"); a.type="text/javascript"; a.async=!0; a.src="https://getrockerbox.com/assets/wxyz.js"; f=d.getElementsByTagName("script")[0]; f.parentNode.insertBefore(a,f);} } )(document,window.RB || {});
RB.disablePushState=true;
RB.initialize(CLIENT_AUTH_ID);
RB.track("conv.purchase",{
...
{
"rb_address": {
"address_country": "US",
"address_state": "NY",
"address_city": "New York",
"address_street_1": "123 Example Street",
"address_street_2": "Apt 101",
"address_zip_code": "Example Zip Code"
}
}
...
});
</script>
The individual fields and field names should be strings, but the object itself should not be enclosed in quotes