how to sum custom data in fabric - google-fabric

When submit Custom Event in fabric, event data are either show in category attribute (example: itemName) or in metric attributes (example: itemPrice). But the data is not sum like Purchase event which show the total number. Is there any way to set it?

When using custom attributes, there isn't currently a way to show the total number across all of a specific custom attribute.

Related

GA4 e-commerce not tracking revenue./ prices

I'm having a strange issue where I've made triple sure that the GA4 e-commerce events, for example the purchase event, have all required fields set. I can see the items array with "price" properties, have the mandatory item_name and id_id, have a value property for the complete purchase but all the purchases tracked have a value of 0.
Any ideas what might be wrong?
make sure you have added currency parameter. Apparently GA4 doesn't recognize revenue if there is no "Currency" associated with it. If you are using GTM, make sure the tag has Currency under event parameters.

How to see absolute values instead of percents on Events graphs?

I use custom events for tracking statistics about some deprecated modules are used by users. And I`ll want to remove migrations from deprecated module to a new one when amount of usages will be lower a "waterline".
So, it is not enough convenient to track it via clicking on a date on a graph and check amount of events at the date. Could I somehow switch a type of values on a graph to absolute values?
Mike from Fabric here. For the graphs, we will either show the percentage if the custom attribute is a string or the 25th, median and 75th percentiles if the custom attribute is a number. However, the top 10 custom attribute count will be present below the graph.

Can podio's api filter item response with only a mini detail level for each item?

My script needs to check from time to time that all items present in an app are recorded in its own db. Indeed even when using the podio hooks, it happens that my script and podio are getting desynchronised.
It uses the filter item api call by batch of 100 of items. In this case the script doesn't need to know all the fields values, but only the basic informations: item_id, app, title, link and current_revision.
I wonder if it's possible to set a query parameter in the filter function only only get the mini view of each item. This could improve greatly performances.
You can use fields parameter for that.
More details on how it works and how else it could be used are right here: https://developers.podio.com/index/api in "Bundling responses using fields parameter" section.
Using fields to bundle objects can be a way to drastically reduce the amount of API requests you have to make.
Most likely you are looking for fields=items.view(micro) parameter. Podio API will return then only 5 values for each item:
app_item_id
item_id
title
link
revision

How to search after input value that must be between two feature values in prestashop?

To understand it fully I will give a clear example:
Our webshop sells zip ties. Every zip ties can be tightened between a minimum and a maximum diameter. For example say from 0.5" to 2".
In most of the cases the buyer needs a zip tie for a specific needed diameter. What we need is to have a possibility to get an input for the needed diameter and list all the zip ties where this input is between the minimum and maximum diameter.
I have tried different variations with layered navigation but it can not be done with it.
Any help is welcome.
You need to customize blocklayered module, some tips:
let's imagine in shop each product have 2 different features "min diameter" and "max diameter" and you already created filter for them, checkboxes.
hide these blocks by display:none
add in template input field for the actual diameter value.
after customer's input, select all min/max checkboxes that satisfy the condition
call blocklayered method to send the filters.

Count Subrecord w/ NetSuite Custom Field and Forumla

I want to create a custom field that counts subrecords (not sure if I'm using that term properly). For example, I'd like to add a custom field to the Customer entity type that shows a count of messages (emails) associated with that Customer record.
My instinct is to say:
COUNT({messages})
But, it doesn't appear there is a COUNT() function in NetSuite SQL.
Anyone know how do do something like this?
I know this is an old post but this is doable in NetSuite using summary options. If creating the search in the UI you will see the second column in the Results tab is "Summary". Select "Count" for this value and it will count. I would recommend if you are doing this from the customer records to do Messages : InternalId (or as a formula value - {messages.internalid} ). You want to count by an internal id that is unique if you want to know the total number. If you count by say Messages : Subject, then any messages that share the same subject will be counted together. That doesn't sound like what you are looking for.
This is an alternate solution as formula may not be able to achieve this:
Add a custom field on customer to store the count.
Write an "after submit" user event script on message
if(message.getFieldValue('entity') !== null && message.getFieldValue('entitytype' === 'customer')){
//Do a saved search for message where entity equals the current entity
// search result count would point to number of messages for customer
// nlapiSubmitField() for your custom counter field
}