Transformations
Modify your data before it's sent to destinations
Last updated
Modify your data before it's sent to destinations
Last updated
Freshpaint supports three uses for transformations
Standard mappings are used to re-format the data you send to Freshpaint into the structure that a destination accepts and assigns special meaning to. For example, you can use transformations to rename your add_to_cart
event that you're sending to Freshpaint into Facebook or Pinterest's AddToCart
event.
You can use transformations to modify the data Freshpaint sends to destinations in order to match historical data or remove sensitive information before they are sent to a destination.
Identify transformations allow you to re-format OR modify the user data you send to Freshpaint. This can be particularly useful if a certain destination requires a user property in one format, and another destination requires that same user property in a different format.
For example, if one destination enforces a naming convention that the user's operating system must be sent as user_os
while another destination requires the operating system to be sent as os
, you can rename the user property accordingly before the identify event is sent to the destination.
SQL transformations do not apply to identify events at this time.
Use this operation to rename the event. For example, if you have an event named order_complete
, but you want this to be named OrderCompleted
in a destination, you can use this operation.
You can only rename an event once. If you try to add two "Rename Event" operations to a given event + destination combination, you will receive an error.
From the transformation dashboard, you can view and edit your existing transformations, as well as launch the wizard to guide you through creating a new transformation.
Transformations are grouped into sets based on their Transformation Type, Freshpaint Event and Destination.
You can launch the wizard to create a new transformation by clicking the button in the top right.
Expand the transformation set you want to modify by clicking on it. If you just created a new transformation via the wizard, it will already be opened.
2. Click the + button and choose the operation you want to apply. See above for operation descriptions.
Expand the transformation set that contains the operation you want to modify by clicking on it. If you just created a new transformation via the wizard, it will already be opened.
Click on the operation you want to delete or modify. It will highlight and show a pencil icon as you hover over it.
From here you can either change the attributes and click "Save" or delete the operation by clicking "delete."
You can delete an entire set of transformations by clicking on the trash icon on the right side of any transformation set.
Builtin Property Name | Remarks | Example Value |
---|---|---|
Initial Value
Initial Type
Result Value
Result Type
"-1"
Text
-1
Number
"24.6"
Text
24.6
Number
"$812.37"
Text
"$812.37"
Text
1
Number
1
Number
null
Null
null
Null
"button"
Text
"button"
Text
"$fourty-five"
Text
"$fourty-five"
Text
Initial Value
Initial Type
Result Value
Result Type
true
True/False
"true"
Text
1
Number
"1"
Text
null
Null
null
Null
"button"
Text
"button"
Text
{x: 'yes', y: 23}
Object
'{"x": "yes", "y": 23}'
Text (json-encoded)
[1, 2, 3, "no", false]
Array
"[1, 2, 3, 'no', false]"
Text (json-encode)
Initial Value
Initial Type
Result Value
Result Type
't'
Text
true
True/False
'f'
Text
false
True/False
'x'
Text
'x'
Text
'TrUe'
Text
true
True/False
'fAlse'
Text
false
True/False
'truthful'
Text
'truthful'
Text
true
True/False
true
True/False
false
True/False
false
True/False
0
Number
0
Number
42
Number
42
Number
Time
Unix timestamp when the event was captured
1660750813.235
Device ID
User ID
Identifier for the user. Can be a UUID if the user is anonymous, or the user email if logged in.
support@freshpaint.io
OS
Operating System
Mac OS X
Browser
Chrome
Browser Version
104
Current URL
Full url of the page on which the event was captured.
https://yourwebsite.com/pages/target-page.html?param=value
Host
Domain of the page on which the event was captured.
yourwebsite.com
Initial Referrer
Initial Referring Domain
IP
The user's IP Address
Pathname
/pages/target-page.html
Referrer
Referring Domain
Screen Height
Screen height in pixels
1080
Screen Width
Screen width in pixels
1920
UTM Source
UTM Medium
UTM Campaign
UTM Content
UTM Term
Pageview ID
Session ID
Target Text
Text of the element which was clicked on
button text
Href
The href of a link which was clicked on
yourhref.com