How do I create a website Custom Audience from a custom event? - facebook-graph-api

How I can add custom audience based on events like click anywhere in website page.
I am planning to use
fbq('track', 'Purchase', {
content_name: 'Really Fast Running Shoes',
content_category: 'Apparel & Accessories > Shoes',
content_ids: ['1234'],
content_type: 'product',
value: 199.50,
currency: 'USD'
});
from
https://developers.facebook.com/docs/ads-for-websites/tag-api/.
I have 2 confusions.
Is audience connected to ad account or custom audience?
Secondly, As pixel id is connected to ad account so my confusing is when I will track events on page using fbq then how it will be connected to specific custom audience?
Am I thinking in right or wrong way? Any suggestions?

Accounts can have many Audiences. One type of Audience is Website Custom Audiences (WCA), which are based on pixel activity. Website Custom Audiences are groups of people that have taken actions resulting in pixel fires that match a certain rule, such as "made a Purchase".
So when a pixel fires, Facebook checks for all the WCA (rules) on that pixel. If any of the rules match the data in the pixel, the person is added to the WCA that corresponds to the rule. A single pixel fire could add a person to more than one audience if multiple WCA rules matched the pixel event.
You can create a WCA based on your pixel by going to https://business.facebook.com/ads/manager/pixel/facebook_pixel/?act=[Account ID] and clicking the "Create Audience" button.

Related

Can the Facebook Marketing API return a list of objects that represent each individual click on an ad, including the FBCLID and spend for each click?

So far I've been able to get an overview of the total number of clicks during a specified time period using the Insights API:
{"impressions":"5547","spend":"160.53","clicks":"206","date_start":"2022-06-08","date_stop":"2022-06-08"}
What I would like instead is a list of objects that represent each individual click during that period, with fields like "fbclid", "date", "spend", etc:
{"fbclid":"jg4k0tkladskds08kds","spend":"0.75", "date":"2022-06-08 12:24:15"}
{"fbclid":"098okjfesdjflsdjffd","spend":"0.72", "date":"2022-06-08 18:36:02"}
{"fbclid":"04538hjfldkjlkdjfdfsdf","spend":"0.67", "date":"2022-06-08 21:12:12"}
etc...
Is this possible with either the Insights API or something else within the Marketing API? I'm using the Facebook Business SDK for PHP in case that's relevant. Thanks!

Maximo: Change work order status by clicking URL

Background:
I have 10,000 sidewalks that get inspected every year by foot (using mobile devices). The sidewalks have inspection work orders that are generated by PMs.
My users need to set the inspection work orders to complete as they walk the sidewalks. I think the best way to do this would be to:
Walk up to the sidewalk; the map would pan to their GPS location.
At their GPS location, the users would click the applicable sidewalk work order.
The action of clicking the work order would set the inspection workorder to complete.
Unfortunately, it is my understanding that there aren't any Maximo products that can do this effectively. My organization has purchased Spatial, Linear, and Anywhere, but I don't think any of those add-ons can do what I've described.
Question:
I might be able to solve this by creating an ESRI web map that shows the work orders in a layer.
The layer would have a calculated URL that, when clicked, would send a request to a Maximo web service, setting the work order to complete.
Is it possible to change a work order status via a URL?
Maximo 7.6.1.1
A few questions - Does the ESRI map know what the WONUM is on the maximo side? If so- you can use the rest API, send a patch and be done with it. I'd write some sort of proxy or queuing mechanism in between the ESRI client and the Maximo Client to enable some sort of intermediary that you can manage.
POST /oslc/os/workorder/{rest id for the workorder}
x-method-override: PATCH
properties:*
{
“Status”:”COMPLETE”,
“description”:”Setting complete by user XXXXXX”
}
Any more questions and feel free to DM me - I work directly with Maximo and Mobile, and think our use-cases aren't that far off.

AWS Pinpoint: How to view custom metrics

It is clear from the documentation that I can add custom metrics for a custom event.
How do I view these metrics in the Pinpoint console? From the Pinpoint console, it is obvious how to view attributes. I can go to Analytics > Events, select my custom event, and narrow down the events to whatever attributes I desire. I am asking about how to view metrics. To be clear, these differ by being continuous values whereas attributes are discrete. The documentation says that I can do this. See below how I can filter by attributes manually: (attribute is circled)
See the docs on custom events here: https://docs.aws.amazon.com/pinpoint/latest/developerguide/integrate-events.html
Similarly, creating a funnel only allows filtering for attributes. How can I filter for metrics?
Thank you for your time!
When I first asked this question, AWS had the ability to record metrics with the Swift SDK, but not view them in the Pinpoint API, which is absurd, because then you can only record metrics. What's the point? I asked in the AWS forums, and a couple months later, they responded something along the lines of "Please wait - coming soon."
This feature is now available, whereas before it simply wasn't.
Go to Pinpoint, your project, then click the Analytics drop-down menu, then click events. You can see that you can sort by metric. If you look at my outdated screenshot above, you'll see that this was not an option.

Testing Firebase Funnels

I wanted to know a simple question regarding setting up my first funnel in Firebase. If we wanted to know which unique users (on a specific day) first opened the app and removed it, would the below simple funnel be sufficient ? Note: On the filter date, I selected "Yesterday".
Question:
Would this selection enable me then to view only those users that did "First Open" (my base) AND "App removal" on the same day (on D0) ? or is this an open funnel of a wider base: i.e. users that somewhere in the past did first_open and did a app_remove yesterday ?
I read that Firebase is only considering open funnels by default, and if we want to make funnels more "closed", we would have to log separate custom properties and filter to form closed funnels (Source: How do you create a closed funnel?). So, there is a bit confusion of how open this funnel really is.
Thanks!
As you mentioned, Firebase Analytics funnels are open; meaning that completion of the first step is not strictly a prerequisite of the second step. In this case, your sequence of events is a strict sequence (i.e. you can't log an app_remove without first having logged a first_open), but still, the query for each step is independent for "Yesterday". In other words, the funnel is effectively as you suspect : step 1 shows users who have logged first_open yesterday and step 2 shows users who have logged app_remove yesterday (regardless of when they first opened the app).
Your options are :
Use the "Last 7 days" date range instead of Yesterday and filter the funnel by the built-in "New users" user property.
Create an audience of users who log app_remove whose First Open Time user property = [some future day] and then after that day passes, use this audience as a filter on your funnel.
Perform this analysis in BigQuery instead.

How can I have 5 visits with with zero unique visitors?

According to Google Analytics, I had 5 visits from zero unique visitors. Is that a bug or did I perhaps implement something wrongly? Or hasn't the data processing finished yet (I created this view 2 days ago)?
The view is based on an include custom filter that's supposed to include only traffic from any of three ip addresses. The regex I used for this is
62\.58\.32\.193|77\.172\.143\.12$|213\.125\.166\.98
My best guess would be the way Google defines unique Visitors. Sometimes I have been visiting my own website periodically and I ended up showing up as a unique visitor (My site isn't so popular so it's easy for me to track that). I would either have to say that it has to do with the nature of visits or the actual way of unique visitors. According to google this is how the find unique visitors
The other Unique Visitors metric calculation (Calculation #2) is based
on the __utma cookie. Calculation #2 is used when segmenting the
Audience Overview report or when viewing Unique Visitors over any
dimension other than date. As such, Calculation #2 is used in custom
reports to allow for the calculation of Unique Visitors over any
dimension, such as browser, city, or traffic source.
source: https://support.google.com/analytics/answer/2992042?hl=en
Occasionally, there are problems with Google Analytics reporting. Check the product forums. For example, here is an issue that happened on Nov 11, 2013:
http://productforums.google.com/forum/#!topic/analytics/fsurDK8AOcY
This issue can also crop up when you are using the page dimension. Unique visitors are only assigned to the first page in a visit as described here. But, it doesn't seem like that is the case for you.
Finally, its possible, analogous to the page dimension situation, that unique visitors are only assigned to the first IP address that a visitor came from. If that is true, then if the people who came to your site had previously come from a different IP address, then they wouldn't show up as unique visitors in your filter.