While firing the Purchase event not showing duplicates event - facebook

I am using the Facebook pixel and Facebook conversion API. to fire the event viewPage and viewContent etc. everything is working fine. but the issue when I fired Purchase event at that time event_id is same but that is not showing duplicate like other. I have attached that screenshot that can make you understand.

are you using gtm ?
try to edit your event_id, by setting event_name
like: page_view_{{event_id}}
or purchase_{{event_id}}

Related

Real-time feed Reactions - getstream-io

I am implementing a facebook/linked-in like feed using getstream.io. Feed Structure is as below:
I have two feed groups;
1. user (flat feed)
2. timeline (flat feed)
Every user has an own user feed(user:userId) and a timeline feed(timeline:userId).
timeline:userId follows user:userId
When a user put a post to user:userId then corresponding followers get real-time updates to their timeline:userId feeds. That part is working properly.
But when a user put an reaction(i.e. like) to a post, other users(those who has same post on their timeline) not getting any real-time update about that reaction.
So how can I achieve this using getstream.io ?
This is a missing feature and it is being implemented at the moment.
Right now, while adding the reaction, you can add targetFeeds property which will create an activity on other listed feeds that references the reaction being created. It will trigger a real-time update since an activity is added on some feeds. On the client side, you can process this update and ignore the special activity if you want.

Use facebook tracking pixel for registration success that does not redirect to success page

How do I set a facebook pixel event to track registration completion when my registration form completion redirects to my index page not to a registration success page?
Should I use a standard event or a custom event to achieve this, or, do I have to create an intermediate page that the registration form directs to and then redirects to index page?
Fire the Facebook Pixel event when the user clicks on the form submit with 'click' event listener. Standard versus Custom events is a separate issue, but I suggest sticking with Standard events where you can.
https://developers.facebook.com/docs/facebook-pixel/advanced/
Stephen, you provided too few information.
Richy is right that in your case if you can't control where your user lands after submitting the form you should use onClick event to send a pixel event. You can easily validate the form in the code of the onClick event and send it when you're sure data is according to your expectations. You can even do additional requests to your back-end to check the data.
If you can change how your web-site work you can make a landing page where you'd fire an event if all the processing went right.
If you can also easily do it on your index page by loading it with some parameter in the URL that indicates it is visited after the form was submitted. There you can have a simple JS code snipped with condition in it to fire a pixel event if URL parameter is present or do it with Google Tag manager which is even simpler.
There are a couple of good standard events you can use like Subscribe or Submit Application, review them here: https://developers.facebook.com/docs/facebook-pixel/reference#standard-events
You have countless options depending on what level of changes you can do to the site, you coding skills, CMS you use and precision you need.

Google Tag Manager not firing the tag when the Data Layer variable is being pushed

in my website there is a form that allows the users to submit their email. When the user clicks submit, the email is pushed to the Data Layer. I have tested this by checking the data layer values using console:
email: "abc#gmail.com"
I have also set a Google Tag Manager variable called email, and I have created a trigger as shown below:
Now I set my tag to fire when this trigger is true. But my tag does not fire. I don't understand why. Can someone please explain why this may not be working?
This was not working because my website is a single page app and that's why Custom Event Triggers need to be replaced by History Change Triggers

Facebook open graph action not getting updated timestamp after update

I'm using the PHP SDK for adding reviews/ratings of books. Whenever someone updates the rating of a book or a review on my site, I am sending in an update request through the API for the original open graph id associated with the rating/review and it does update the rating/review values but the timestamp on the action is still set to whenever it was first submitted. I want to have the time be reflected of the last update so it shows up in their activity feed/timeline in the right place.
I've tried modifying end_time,start_time and publish_time based on the documentation here: https://developers.facebook.com/docs/opengraph/using-actions/
but nothing does anything to modify the timestamp of the action. Any ideas?
My recommendation would be to delete the action and create a new one altogether.

Facebook Graph API Event Paging not working?

I am trying to access past event via Facebook's Graph API.
I am getting current events just right (the one I attended last month and the one in the future) with
https://graph.facebook.com/me/events?access_token=[ACCESS_TOKEN]
However, the paging components "previous" and "next" don't really work, "previous" actually points to a future event that's already been listed in "me/events". While "next" just returns an empty "data" struct.
I also tried "since" with different previous timestamps (such as "me/events?since=1304238280") and it didn't work, it will always return the events that are the same as the ones returned by "me/events". But I definitely have many more past events when I visit
https://www.facebook.com/events/past/
Am I not using the graph API correctly or what? I also noticed there are quite a few questions regarding Graph API's paging problem but there doesn't seem to be a definitive answer yet.
Any info/suggestion/reference would be greatly appreciated!
From what I've seen, it appears that about two weeks after an event ends, Facebook moves the event data out of the events table and into another one that isn't exposed via the API. The internal Facebook servers have access to this table, so you can see past events from within the Facebook webapp.
I'm assuming this is a privacy thing.
try to add the "before" query string with the ID of the first event ex:https://graph.facebook.com/me/events?&before=388551911259170.
you can refer to the following link: https://developers.facebook.com/docs/reference/api/pagination/