I have integrated Facebook Purchase event for our website using Facebook event manager and Google tag manger.
I have set two parameters related with order id and currency used for the purchase. I can see that the purchase event works properly and the parameter consists of proper values when I make a purchase and see it in real time with the help of datalayer, Facebook pixel helper (Chrome extension) and the Overview tab present in Facebook event manager console. However when I view my purchase event in Facebook analytics I cannot find the section where the parameter values of my purchase event in Facebook analytics are recorded.
Steps:
1 - Create a variable in GTM for Transaction Value
2 - In custom HTML Tag put the variable you had just created in step 1 in value.
EG:
<script>
fbq('track', 'Purchase', {
value: {{Transaction Value}}
I am not a FB Analytics expert but I don't think the FB Analytics provide these parameters.
Related
I have an issue in Facebook URL builder.
The issue is I have set in the parameter into URL builder that doesn't shown in Google analytic.
Set Campaign name : facebook
Campaign medium: CPC
Campaign name:FB-Traffic-Jan 2 - 31
But then it doesn't show as Facebook /CPC in Google Analytic.
Anyone knows what the problems???
http://www.xxxxxxxx.com/?utm_source=facebook&utm_medium=CPC&utm_campaign=FB-Traffic-Jan+2+-+31
Thank everyone in advance
Best Regards,
Leon Hon
google analytic screen cap
Facebook URL builder screen cap
Surely it is not a problem of the values โโof the UTM parameters, I just tried with my Property follow a link from Facebook with your UTM:
It is likely that a redirect will make you lose them (try to check the url in address bar when you open the site page by clicking on that Facebook link, probably you can't see the parameters).
If instead the parameters are present, try to wait for the data to be acquired in Analytics report and check in the report of source / medium.
Real-time reporting is not very reliable, especially for campaign values.
We have an angularJS ecommerce website with a Facebook pixel installed - we would like to create a Facebook Product Catalogue using the Facebook pixel as a data source.
According to Facebook we need to add the required metadata tags to each product page we want to add to the catalogue.
Sound simple enough but our website is a single page application so viewing a product goes like this...
User clicks on product link
Application switches to 'Product Page' state and renders a 'loading' html template
An api call is made to get the products details
The api call completes and we update the template html with the product details(and required metadata tags) and remove the 'loading' element
So my question is, will the Facebook pixel be smart enough to detect the metadata tags once they are added to the page in step 4?
Or will the pixel see the page as it initally loads(with no product data and a 'loading' div)?
I have contacted facebook support regarding this but they actually directed me here!
Thanks
I would like to use the Facebook Ad conversion tracking within an iOS app to track an event after the user installs. Facebook has a method to do this on web pages through a Conversion Tracking Pixel, and I've looked through that JavaScript. It is making a GET request to offsite_event.php with the pixel ID:
https://www.facebook.com/offsite_event.php?id=6005000000&value=0
Obviously the pixel ID alone is not enough to know which Facebook user made the request.
So I assume this PHP is reading one of the facebook.com cookies to determine the user.
Can anyone at Facebook divulge which cookies this PHP code needs.
"c_user" perhaps?
To add to Michael's answer.
You done this using "App Events" instead of conversion pixel, which is for website.
To see additional event other than "App Install count" which is default objective for "App Install Ads".
Go to Ads manager > Report > Press "Edit Column" button > Navigate to Metric > Actions > Find Mobile Application category.
My full answer is also # https://stackoverflow.com/a/26644170/4188314
Facebook just added this functionality in the latest 3.2 iOS SDK update.
https://developers.facebook.com/blog/post/2013/02/25/facebook-sdk-3-2-for-ios/
Hi I just define my custom action on facebook using open graph. After creating the action when i want to submit the action it creates the error.
Publish Actions
You must publish at least one action to your Timeline using this action type. Review the documentation.
And give me the link to this page where I can see only the urls of graph api. If I am doing some thing wrong?
Can any body please tell me how to get rid off this error? How can I publish action on my timeline so that I can submit my action for approval?
Regards
I had the same problem. Go to the Graph API Explorer page, select your application in the 'Application' drop-down.
Set Method to 'POST and in the url enter in the format https://graph.facebook.com/YOUR_ID/YOUR_APP_NAMESPACE:YOUR_APP_ACTION
Then click 'Add Field' and in name enter your action type object's name and in value enter the url of an object on your site for example. Also make sure you have included the OpenGraph Meta Tags on each object page with the crucial og:type tag set to YOUR_APP_NAMESPACE:ACTION_OBJECT. An example on mine is
You should test the action first on your site/app. Facebook will check your timeline and then only Facebook approves it.
[EDIT]
Submitting is for allowing public to use those. But admin/developers can use publish actions on Facebook. To publish these actions on timeline, you can use graph api explorer or using php or js or etc
[EDIT]
Actions are defined through the App Dashboard. Once an application has
defined the types of actions that it publishes, the application can
invoke the Graph API to publish action instances to Open Graph -- this
connects the current user with an appropriate object instance via the
action.
POST /me/{namespace}:{action-type-name}
The following call establishes
a Cook connection between the current user and a Pumpkin Pie (an
instance of the Recipe object type):
https://graph.facebook.com/me/recipebox:cook?
recipe=http://www.example.com/pumpkinpie.html&access_token=YOUR_ACCESS_TOKEN
Here is another example using the Javascript SDK:
FB.api('/me/recipebox:cook', 'post', { recipe :
'http://www.example.com/pumpkinpie.html' });
FYI: Post Actions on Timeline
I want to send Facebook friend invitations to some of our friends list without using FBML tags (<fb:request ....)
I am writing code in ASP.NET using fbServices.
How can I send friend requests without using FMBL tags?
Friend requests cannot be done through the Facebook API. The FBML fb:request-form tag is the only way to do this.
I spent a great deal of time looking, and finally came accross a very simple solution.
Using the Facebook Javascript API you can do a friend request with:
<script>
FB.ui(
{
method: 'friends.add',
id: fbid // assuming you set this variable previously...
},
function(param){
console.log(param);
// If they cancel params will show:
// {action:false, ...}
// and if they send the friend request it'll have:
// {action:true, ...}
// and if they closed the pop-up window then:
// param is undefined
}
);
</script>
The callback script can then simply performs an ajax call to your server where
you save info about the action, if needed.
You can test this by using the javascript console app on Facebook:
http://developers.facebook.com/tools/console
Paste in the script above, including the tags, or click the "Examples"
button on the bottom of the text area and find the "fb.ui โ friends.add" example.
fb:request-form is now obsolete and will be deprecated eventually. The new way, announced on 27 January 2011, is the Requests Dialog.
Facebook does not allow you to programatically send friend requests.
I suggest taking a look at their API
Okay. Years later, things has changed:
https://developers.facebook.com/docs/reference/dialogs/
Dialogs provide a simple, consistent interface to provide social
functionality to your users. Dialogs do not require any additional
permissions because they require user interaction. Dialogs can be used
by your application in every context: within a Canvas Page, in a Page
Tab, in a website or mobile web app, and within native iOS and native
Android applications.
There are currently 7 Dialogs available for you to use:
- The Feed Dialog allows a user to post a story to their Timeline and to their friends' News Feeds
- The OAuth Dialog allows a user to authorize an application as part of an authentication flow.
- The Add Page Tab Dialog allows a user to add an application to a Facebook Page which they administer.
- The Friends Dialog allows a user to send a friend request to another user.
- The Pay Dialog allows a user to make a purchase using Facebook Credits.
- The Requests Dialog allows a user to send a request to one or more of their friends
- The Send Dialog allows a user to send a Facebook Message to one or more of their friends.
See also: https://developers.facebook.com/docs/requests/
You can send requests to friends without using FBML as follows
`FB.ui({
method: 'apprequests',
message: 'This is my applicaiton',
title: 'Application Request without FBML',
filters: 'all'
},
// Callback function returning the list of requestObj Ids
function(response){
}
);`
For more info you could refer
Wiki Page for apprequest graph API