Hey Make Community.
I am currently struggling with extracting certain items from a collection array, between different runs the values I do like to extract are placed in different array numbers.
Specifically I do like to extract the action type:
“Purchase” and it’s value from the collection.
This is an example of the output from the collection
" {
“actions”: [
{
“action_type”: “onsite_conversion.post_save”,
“value”: “23”
},
{
“action_type”: “onsite_conversion.view_content”,
“value”: “1”
},
{
“action_type”: “post”,
“value”: “13”
},
{
“action_type”: “onsite_web_app_view_content”,
“value”: “24171”
},
{
“action_type”: “landing_page_view”,
“value”: “5242”
},
{
“action_type”: “omni_add_to_cart”,
“value”: “2478”
},
{
“action_type”: “onsite_web_app_add_to_cart”,
“value”: “2478”
},
{
“action_type”: “page_engagement”,
“value”: “10942”
},
{
“action_type”: “purchase”,
** “value”: “484”**
},
{
“action_type”: “comment”,
“value”: “15”
},
{
“action_type”: “onsite_web_app_purchase”,
“value”: “484”
},
{
“action_type”: “post_engagement”,
“value”: “10941”
},
{
“action_type”: “onsite_web_purchase”,
“value”: “484”
},
{
“action_type”: “onsite_web_lead”,
“value”: “155”
},
{
“action_type”: “lead”,
“value”: “155”
},
{
“action_type”: “view_content”,
“value”: “24170”
},
{
“action_type”: “onsite_app_view_content”,
“value”: “1”
},
{
“action_type”: “like”,
“value”: “1”
},
{
“action_type”: “add_to_cart”,
“value”: “2478”
},
{
“action_type”: “onsite_web_add_to_cart”,
“value”: “2478”
},
{
“action_type”: “onsite_web_view_content”,
“value”: “24171”
},
{
“action_type”: “complete_registration”,
“value”: “65”
},
{
“action_type”: “offsite_conversion.fb_pixel_lead”,
“value”: “155”
},
{
“action_type”: “video_view”,
“value”: “2311”
},
{
“action_type”: “omni_view_content”,
“value”: “24171”
},
{
“action_type”: “offsite_conversion.fb_pixel_view_content”,
“value”: “24170”
},
{
“action_type”: “post_reaction”,
“value”: “725”
},
{
“action_type”: “offsite_conversion.fb_pixel_add_to_cart”,
“value”: “2478”
},
{
“action_type”: “offsite_conversion.fb_pixel_complete_registration”,
“value”: “65”
},
{
“action_type”: “offsite_conversion.fb_pixel_custom”,
“value”: “72”
},
{
“action_type”: “offsite_conversion.fb_pixel_purchase”,
“value”: “484”
},
{
“action_type”: “omni_complete_registration”,
“value”: “65”
},
{
“action_type”: “link_click”,
“value”: “7854”
},
{
“action_type”: “omni_purchase”,
“value”: “484”
},
{
“action_type”: “offsite_conversion.custom.1438406536694092”,
“value”: “1808”
}
],
“campaign_name”: “Advantage+ | DE | 15% EXISTING Campaign Campaign | 7 Day Click Campaign”,
“clicks”: “15500”,
“conversions”: [
{
“action_type”: “offsite_conversion.fb_pixel_custom.StoreStockLocatorClick”,
“value”: “72”
}
],
“cost_per_conversion”: [
{
“action_type”: “offsite_conversion.fb_pixel_custom.StoreStockLocatorClick”,
“value”: “49.342917”
}
],
“cost_per_outbound_click”: [
{
“action_type”: “outbound_click”,
“value”: “0.508181”
}"