Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Facebook App Events Support #52

Open
b099l3 opened this issue Aug 11, 2022 · 4 comments
Open

Request: Facebook App Events Support #52

b099l3 opened this issue Aug 11, 2022 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@b099l3
Copy link
Contributor

b099l3 commented Aug 11, 2022

Context

I am looking to use Facebook App Events, only the Application Installed event, to track ads -> installs.

Current state of play

There is only a native and react-native support for this and Flutter we will have to add in to this repo or fork.

From reading these issues on this repo, I assume there is going to be work towards a "Fully Dynamic and Scalable Segment Integration":

In the meantime it looks like all integrations are done in this repo, with the idea of eventually separating them out:

PRs with integrations:

As for the Application Installed event, it appears there is an issue where it doesn't fire via the dart implementation:

Solutions

what is the best way to take this forward?

  1. Fork this repo and add in my dependancy via the same method as the PRs with integrations above. To avoid adding more PRs to this repo before its changed to "Fully Dynamic and Scalable Segment Integration"
  2. Fork and merge my addition of Facebook App Events
  3. Try to mix together this package and facebook_app_events as mentioned here App installed event tracking problem for iOS #26 (comment) Does @ariefwijaya have an example of this?
@b099l3
Copy link
Contributor Author

b099l3 commented Aug 15, 2022

Went with option 2:

@b099l3
Copy link
Contributor Author

b099l3 commented Aug 16, 2022

Fix for the Application Installed event:

@ariefwijaya
Copy link
Contributor

@b099l3
We can use cloud mode for facebook, no need to add the facebook library in our flutter-segment. Just add facebook destination from segment admin panel.
https://segment.com/docs/connections/destinations/catalog/facebook-app-events/
image

For the advertising id, I fetch it from this plugin https://pub.dev/packages/advertising_id and set it manually using our existing method:

Segment.setContext({
     'device': {
       'adTrackingEnabled': adTrackingEnabled.toString(),
       'advertisingId': advertisingId,
     }
   });

@b099l3
Copy link
Contributor Author

b099l3 commented Oct 29, 2022

See this #54 (comment) for details about why this didn't work in my case.

@danielgomezrico danielgomezrico added the help wanted Extra attention is needed label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants